Added header declarations for cc2538_rf_read_rssi() and cc2538_rf_set_promiscous_mode()

This commit is contained in:
Adam Dunkels 2013-11-23 15:04:35 +01:00
parent 76f2a10c9a
commit e95236b642
1 changed files with 21 additions and 0 deletions

View File

@ -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__ */