60 #define SUPPORTED_PART_NUMBER ( 2 )
61 #define RF230_REVA ( 1 )
62 #define RF230_REVB ( 2 )
63 #define SUPPORTED_MANUFACTURER_ID ( 31 )
64 #define RF230_SUPPORTED_INTERRUPT_MASK ( 0x0C )
66 #define RF230_MIN_CHANNEL ( 11 )
67 #define RF230_MAX_CHANNEL ( 26 )
68 #define RF230_MIN_ED_THRESHOLD ( 0 )
69 #define RF230_MAX_ED_THRESHOLD ( 15 )
70 #define RF230_MAX_TX_FRAME_LENGTH ( 127 )
72 #define TX_PWR_3DBM ( 0 )
73 #define TX_PWR_17_2DBM ( 15 )
75 #define BATTERY_MONITOR_HIGHEST_VOLTAGE ( 15 )
76 #define BATTERY_MONITOR_VOLTAGE_UNDER_THRESHOLD ( 0 )
77 #define BATTERY_MONITOR_HIGH_VOLTAGE ( 1 )
78 #define BATTERY_MONITOR_LOW_VOLTAGE ( 0 )
80 #define FTN_CALIBRATION_DONE ( 0 )
81 #define PLL_DCU_CALIBRATION_DONE ( 0 )
82 #define PLL_CF_CALIBRATION_DONE ( 0 )
84 #define RC_OSC_REFERENCE_COUNT_MAX (1.005*F_CPU*31250UL/8000000UL)
85 #define RC_OSC_REFERENCE_COUNT_MIN (0.995*F_CPU*31250UL/8000000UL)
97 #define RADIO_STATUS_START_VALUE ( 0x40 )
129 #define TRAC_SUCCESS 0
130 #define TRAC_SUCCESS_DATA_PENDING 1
131 #define TRAC_SUCCESS_WAIT_FOR_ACK 2
132 #define TRAC_CHANNEL_ACCESS_FAILURE 3
133 #define TRAC_NO_ACK 5
134 #define TRAC_INVALID 7
165 typedef void (*radio_rx_callback) (uint16_t data);
166 extern uint8_t rxMode;
171 radio_rx_callback rx_callback);
172 uint8_t radio_get_saved_rssi_value(
void);
215 uint8_t * radio_frame_data(
void);
216 uint8_t radio_frame_length(
void);
217 #define delay_us( us ) ( _delay_loop_2( ( F_CPU / 4000000UL ) * ( us ) ) )