Send&recive two byte over ccRF 2550

Dependencies:   mbed

__Lib_RF_CC2550.h

Committer:
djtr
Date:
2015-06-30
Revision:
0:a669868d99dd

File content as of revision 0:a669868d99dd:

#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