Function openthread_sys::otPlatDiagGpioGetMode

source ยท
pub unsafe extern "C" fn otPlatDiagGpioGetMode(
    aGpio: u32,
    aMode: *mut otGpioMode,
) -> otError
Expand description

Gets the gpio mode.

@param[in] aGpio The gpio number. @param[out] aMode A pointer where to put gpio mode.

@retval OT_ERROR_NONE Successfully got the gpio mode. @retval OT_ERROR_FAILED Mode returned by the platform is not implemented in OpenThread or a platform error occurred while getting the gpio mode. @retval OT_ERROR_INVALID_ARGS @p aGpio is not supported or @p aMode is NULL. @retval OT_ERROR_INVALID_STATE Diagnostic mode was not enabled. @retval OT_ERROR_NOT_IMPLEMENTED This function is not implemented or configured on the platform.