I have added the function of reading the RX FIFO of the S2-LP.
Two functions have been added.
The first SPL2_Check_RX_FIFO_Status will check if any messages are waiting in the RX FIFO.
The second S2LP_Read_RX_FIFO will fetch the given amount of messages from the RX FIFO. It does this by first checking if there are any messages in the FIFO using SPL2_Check_RX_FIFO_Status, if there are enough bytes available it will fetch as many as requested if there are not it will only fetch as many as are available.
I have added the function of reading the RX FIFO of the S2-LP.
Two functions have been added.
The first SPL2_Check_RX_FIFO_Status will check if any messages are waiting in the RX FIFO.
The second S2LP_Read_RX_FIFO will fetch the given amount of messages from the RX FIFO. It does this by first checking if there are any messages in the FIFO using SPL2_Check_RX_FIFO_Status, if there are enough bytes available it will fetch as many as requested if there are not it will only fetch as many as are available.
Graham D graham.driver@umsats.ca