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 transmit fifo #14

Closed GrahamDrive closed 6 months ago

GrahamDrive commented 6 months ago

I have added the function of writing to the TX FIFO of the S2-LP and the chip select function.

Three functions have been added:

S2LP_Write_TX_Fifo: This function is used to write bytes to the TX FIFO of the SPL2. It will check if there is room in the FIFO and will either write the bytes if there is room otherwise it will return an error indicating there is no space for the data. (Note: TX FIFO has a max 128 bytes)

SPL2_Check_TX_FIFO_Status: This function is used as a helper it fetches how many bytes are currently queued in the SPL2 TX FIFO.

S2LP_nCS: The chip select function for the SPL2.

Still need to resolve merge conflicts

Graham D graham.driver@umsats.ca