UMSATS / cdh-tsat

Contains software for the Command and Data Handling (CDH) board.
https://www.umsats.ca/
10 stars 4 forks source link

S2-LP Read RX FIFO Fuction #13

Closed GrahamDrive closed 6 months ago

GrahamDrive commented 6 months ago

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

GrahamDrive commented 6 months ago

Will merge in 2 hours