openthread_sys

Function otThreadGetDeviceRole

Source
pub unsafe extern "C" fn otThreadGetDeviceRole(
    aInstance: *mut otInstance,
) -> otDeviceRole
Expand description

Get the device role.

@param[in] aInstance A pointer to an OpenThread instance.

@retval OT_DEVICE_ROLE_DISABLED The Thread stack is disabled. @retval OT_DEVICE_ROLE_DETACHED The device is not currently participating in a Thread network/partition. @retval OT_DEVICE_ROLE_CHILD The device is currently operating as a Thread Child. @retval OT_DEVICE_ROLE_ROUTER The device is currently operating as a Thread Router. @retval OT_DEVICE_ROLE_LEADER The device is currently operating as a Thread Leader.