QITH FLAGS
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of TF_conops_BAE1_3 by
Diff: beacon.h
- Revision:
- 1:7185136654ce
- Parent:
- 0:246d1b5f11ae
diff -r 246d1b5f11ae -r 7185136654ce beacon.h --- a/beacon.h Tue Jun 30 05:55:48 2015 +0000 +++ b/beacon.h Mon Jul 06 07:34:00 2015 +0000 @@ -1,19 +1,8 @@ #include "mbed.h" - - #define TIMES 20 #define RX_DATA 240 //in bytes #define TX_DATA 240 //in bytes - -void writereg(uint8_t reg,uint8_t val); -uint8_t readreg(uint8_t reg); -void clearTxBuf(); -void clearRxBuf(); -int setFrequency(float,float); -void FCTN_BEA_INIT(); -void FCTN_BEA_MAIN(); - #define RF22_MAX_MESSAGE_LEN 255 // These values we set for FIFO thresholds #define RF22_TXFFAEM_THRESHOLD 4 @@ -105,4 +94,14 @@ #define RF22_REG_7C_TX_FIFO_CONTROL1 0x7c #define RF22_REG_7D_TX_FIFO_CONTROL2 0x7d #define RF22_REG_7E_RX_FIFO_CONTROL 0x7e -#define RF22_REG_7F_FIFO_ACCESS 0x7f \ No newline at end of file +#define RF22_REG_7F_FIFO_ACCESS 0x7f + + +/******************************************************function headers*******************************************************************/ +void writereg(uint8_t reg,uint8_t val); +uint8_t readreg(uint8_t reg); +void clearTxBuf(); +void clearRxBuf(); +int setFrequency(float,float); +void FCTN_BEA_INIT(); +void FCTN_BEA_TX_MAIN();