Hi
I’m having a hard time understanding the code in example swrc253e for infinite mode transmit. Specifically, in file “cc112x_infinite_packet_length_mode_tx.c” we have the #define AVAILABLE_BYTES_IN_TX_FIFO with a value of 122. The comment next to is says "# of bytes one can write to the TX_FIFO when a falling edge occur on IOCFGx = 0x02 and FIFO_THR = 120". I don’t understand this.
This implication from this comment is that “AVAILABLE_BYTES_IN_TX_FIFO” is the value programmed into FIFO_THR with an addition of “+”2” and I don’t understand where the “+2” comes from. To my mind this suggests that if we were to program FIFO_THR with a value of 127 then we could write 129 bytes to the FIFO, but this does not make sense to me because the FIFO is only 128 bytes long ?
Hopefully, someone can explain.
Thanks
David