I can't say that I completely get their arduino code snip in their sample ( for example, what the heck is going on in the while loops in the SB_SendPacket() function? ).
The while loops in Sb_SendPacket wait for the SPI engine to complete the transmission. That is when the SPIF bit gets set in the SPSR register.
The while loops in Sb_SendPacket wait for the SPI engine to complete the transmission. That is when the SPIF bit gets set in the SPSR register.
Okay. Thanks for that. I will refer to their sample again with that new information in mind -- particularly what kicks off the SPI -- as I recall maybe it is the assignment of their mixed bits into another "special variable"
Bookmarks