mirror of
https://github.com/espressif/openthread.git
synced 2026-08-20 17:39:51 +00:00
Add otPlatRadioGetReceiveSensitivity() API (#1715)
* Add otPlatRadioGetReceiveSensitivity() API * Add a new otPlatRadioGetReceiveSensitivity() API to get sensitivity value; * Use the receive sensitivity value as the noise floor for link metric computation; * Remove some unused noise floor related functions. * Add SPINEL_PROP_PHY_RX_SENSITIVITY Spinel/NCP property
This commit is contained in:
@@ -498,6 +498,15 @@ ThreadError otPlatRadioEnergyScan(otInstance *aInstance, uint8_t aScanChannel, u
|
||||
*/
|
||||
extern void otPlatRadioEnergyScanDone(otInstance *aInstance, int8_t aEnergyScanMaxRssi);
|
||||
|
||||
/**
|
||||
* Get the radio receive sensitivity value.
|
||||
*
|
||||
* @param[in] aInstance The OpenThread instance structure.
|
||||
*
|
||||
* @returns The radio receive sensitivity value in dBm.
|
||||
*/
|
||||
int8_t otPlatRadioGetReceiveSensitivity(otInstance *aInstance);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user