Add platform API to check state of the radio. (#1413)

This commit is contained in:
Hubert Miś
2017-03-08 05:17:06 -08:00
committed by Jonathan Hui
parent 1eb61a40f7
commit 6eaacdd4a4
4 changed files with 84 additions and 1 deletions
+13
View File
@@ -200,6 +200,19 @@ void otPlatRadioSetShortAddress(otInstance *aInstance, uint16_t aShortAddress);
*
*/
/**
* Get current state of the radio.
*
* This function is not required by OpenThread. It may be used for debugging and/or application-specific purposes.
*
* @note This function may be not implemented. It does not affect OpenThread.
*
* @param[in] aInstance The OpenThread instance structure.
*
* @return Current state of the radio.
*/
PhyState otPlatRadioGetState(otInstance *aInstance);
/**
* Enable the radio.
*