From e95236b64282ef1e6200c57a40292537363361ca Mon Sep 17 00:00:00 2001 From: Adam Dunkels Date: Sat, 23 Nov 2013 15:04:35 +0100 Subject: [PATCH] Added header declarations for cc2538_rf_read_rssi() and cc2538_rf_set_promiscous_mode() --- cpu/cc2538/dev/cc2538-rf.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/cpu/cc2538/dev/cc2538-rf.h b/cpu/cc2538/dev/cc2538-rf.h index e6f420fe6..b7dd5f6ad 100644 --- a/cpu/cc2538/dev/cc2538-rf.h +++ b/cpu/cc2538/dev/cc2538-rf.h @@ -167,6 +167,27 @@ uint8_t cc2538_rf_power_set(uint8_t new_power); * are thus simply copied over from there. */ void cc2538_rf_set_addr(uint16_t pan); + +/** + * \brief Reads the current signal strength (RSSI) + * \return The current RSSI + * + * This function reads the current RSSI on the currently configured + * channel. + */ +int cc2538_rf_read_rssi(void); + +/** + * \brief Turn promiscous mode on or off + * \param p If promiscous mode should be on (1) or off (0) + * + * This function turns promiscous mode on or off. In promiscous mode, + * every received frame is returned from the RF core. In + * non-promiscous mode, only broadcast frames or frames with our + * address as the receive address are returned from the RF core. + */ +void cc2538_rf_set_promiscous_mode(char p); + /*---------------------------------------------------------------------------*/ #endif /* CC2538_RF_H__ */