![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Final Beacon code for testing
Diff: tx.h
- Revision:
- 2:44b63c859531
- Parent:
- 1:8b18c140a710
--- a/tx.h Mon Oct 05 17:15:24 2015 +0000 +++ b/tx.h Thu Oct 22 04:47:07 2015 +0000 @@ -23,15 +23,14 @@ uint8_t BCN_TX_EN = 1; //hardcoding for now //check where is this variable toggled?? uint8_t BCN_FEN = 0; //This variable is also toggled in P_BCN_FEN process. uint8_t BCN_STANDBY = 0; //hardcoding for now //check where is this variable toggled?? -uint8_t LOW_POWER_COUNTER; //toggled in a function uint8_t BCN_TS_BUFFER; // For Temperature //FUNCTION PROTOTYPING +void P_BCN_TEMP_INIT(); void P_BCN_INIT(); void P_BCN_FEN(); void P_BCN_TX_MAIN(); void Set_BCN_TX_STATUS(uint8_t STATUS); -int check_POWER_LEVEL(); int check_Temperature(); void SHORT_BCN_TX(); void LONG_BCN_TX(); @@ -39,10 +38,10 @@ void writereg(uint8_t reg,uint8_t val); uint8_t readreg(uint8_t reg); void clearTxBuf(); -void clearRxBuf(); -int setFrequency(float,float); +int setFrequency(double); bool Check_ACK_RECEIVED(); -void INC_BCN_LOW_POWER_COUNTER(); + + #define RF22_MAX_MESSAGE_LEN 255