Hi
I am just trying to visualize the TX/RX packet journey through the source code, I have been checking many available codes and there is something
I find it hard to comprehend, what are the usage of the for loop iteration at some stages of TX and RX as in the following samples;
for(uint8_t i = 0 ; i < pktlen + 1; i++) |
{ |
uart_puthex_byte(rxbuffer[i]); |
} |
Serial.print(" |"); |
uart_puthex_byte(rxbuffer[pktlen+1]); |
uart_puthex_byte(rxbuffer[pktlen+2]);
Serial.print(F("RX_FIFO:")); and, |
writeSPI(0xFF); // burst read adresse
MOSIOUT &= ~MOSI;
for(i=1; i<(len+1); i++){
data[i] = readSPI();
}
Kind Regards
Mustafa