Hallo,
I have a question to the topic ethernet. I have look at the exmaple LEDswitch Client and I don't understand why I need the following code: .. U8 p2val, cnt, lshf; .. p2val = 1; cnt = 0; lshf = 1; ... send_data(p2val); p2val = lshf ? (p2val << 1) : (p2val >> 1); if (p2val == 0x80) lshf = 0; if (p2val == 0x01) lshf = 1;
I don't find anything in the help from keil for what p2val stand and why I to hand this on my funktion send_data? Can something explain it.