Djordje Trajkovic
/
ccRF
Send&recive two byte over ccRF 2550
Diff: __Lib_RF_CC2550.h
- Revision:
- 0:a669868d99dd
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/__Lib_RF_CC2550.h Tue Jun 30 21:47:55 2015 +0000 @@ -0,0 +1,20 @@ +#ifndef __LIB_RF_CC2550_H +#define __LIB_RF_CC2550_H + +unsigned char RfReceivePacket(unsigned char *rxBuffer, unsigned char *length); + +void RFInit(); +void Reset_CCxxx0(); +void POWER_ON_RESET_CCxxx0(); +void RfSpiWriteReg(unsigned char address, unsigned char value); +void RfSpiWriteBurstReg(unsigned char address, unsigned char *buffer, unsigned char count); +void RfSpiStrobe(unsigned char strobe); +unsigned char RfSpiReadStatus(unsigned char address); +unsigned char RfSpiReadReg(unsigned char address); +void RfSpiReadBurstReg(unsigned char address, unsigned char *buffer, unsigned char count); +void RfWriteRfSettings(RF_SETTINGS *pRfSettings); +void RfWriteRfSettings2500(); +void RfSendPacket(unsigned char *txBuffer, unsigned char size); +unsigned char RfTransmitPacketWithAddress(unsigned char *txBuffer, unsigned char size, unsigned char *attempts); +unsigned char RfReceivePacket(unsigned char *rxBuffer, unsigned char *length); +#endif \ No newline at end of file