add enable/disable radio promiscuous mode method and simulated posix … (#84)

* add enable/disable radio promiscuous mode method and simulated posix radio that supports promiscuous mode

* fix code style
This commit is contained in:
Lu Wang
2016-05-31 10:13:50 -07:00
committed by Jonathan Hui
parent a091fcaaa7
commit 4131e571b8
4 changed files with 55 additions and 3 deletions
+15
View File
@@ -277,6 +277,21 @@ int8_t otPlatRadioGetNoiseFloor(void);
*/
otRadioCaps otPlatRadioGetCaps(void);
/**
* Enable or disable promiscuous mode.
*
* @param[in] aEnable A value to enable or disable promiscuous mode.
*/
void otPlatRadioSetPromiscuous(bool aEnable);
/**
* Get the status of promiscuous mode.
*
* @retval ::true The promiscuous mode is enabled.
* @retval ::false The promiscuous mode is disabled.
*/
bool otPlatRadioGetPromiscuous(void);
/**
* @}
*