Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: FreescaleIAP mbed-rtos mbed
Fork of workinQM_5thJan_azad by
Diff: BCN.h
- Revision:
- 20:949d13045431
- Parent:
- 12:af1d7e18b868
- Child:
- 23:c65456ec5e61
- Child:
- 27:61c856be467e
diff -r 79e69017c855 -r 949d13045431 BCN.h --- a/BCN.h Sat Jun 04 11:29:13 2016 +0000 +++ b/BCN.h Fri Jul 01 17:55:30 2016 +0000 @@ -6,10 +6,16 @@ #define BCN_TX_STANDBY 2 #define BCN_TX_FAILURE 3 #define BCN_TX_SUCCESS 4 +#define BCN_TX_INITIALIZED 5 //Size of tx data +/* #define SHORT_TX_DATA 60 //in bytes -#define LONG_TX_DATA 125 //in bytes +#define LONG_TX_DATA 75 //in bytes +*/ + +#define SHORT_TX_DATA 480 //in bytes +#define LONG_TX_DATA 127 //in bytes //#define RF_SILENCE_TIME 35*60 #define RF_SILENCE_TIME 5 //changed for testing @@ -20,15 +26,17 @@ void FCTN_BCN_TX_MAIN(); void Set_BCN_TX_STATUS(uint8_t); uint8_t check_Temperature(); -void SHORT_BCN_TX(); -void LONG_BCN_TX(); +//void SHORT_BCN_TX(); +//void LONG_BCN_TX(); +void BCN_TX(); void Init_BEACON_HW(); void writereg(uint8_t,uint8_t); uint8_t readreg(uint8_t); void clearTxBuf(); uint8_t setFrequency(double); bool Check_ACK_RECEIVED(); -void reset_rfm(); +void init_spi(); +void reset_rfm(uint8_t); #define RF22_MAX_MESSAGE_LEN 255