mirror of
https://github.com/espressif/openthread.git
synced 2026-10-16 04:37:42 +00:00
Add platform API to check state of the radio. (#1413)
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user