/*! \file ccspi.c
\author Travis Goodspeed
\brief Chipcon SPI Register Interface
+
+ Unfortunately, there is very little similarity between the CC2420
+ and the CC2500, to name just two of the myriad of Chipcon SPI
+ radios. Auto-detection will be a bit difficult, but more to the
+ point, all high level functionality must be moved into the client.
*/
//Higher level left to client application.
RADIOPASSIVE;
//Get the packet.
CLRSS;
- ccspitrans8(CCSPI_R_RX_PAYLOAD);
+ ccspitrans8(CCSPI_RXFIFO);
for(i=0;i<32;i++)
cmddata[i]=ccspitrans8(0xde);
SETSS;
case CCSPI_RX_FLUSH:
//Flush the buffer.
CLRSS;
- ccspitrans8(CCSPI_FLUSH_RX);
+ ccspitrans8(CCSPI_SFLUSHRX);
SETSS;
//Return the packet.