Function openthread_sys::otPlatDiagGpioSetMode

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

Sets the gpio mode.

@param[in] aGpio The gpio number. @param[out] aMode The gpio mode.

@retval OT_ERROR_NONE Successfully set the gpio mode. @retval OT_ERROR_FAILED A platform error occurred while setting the gpio mode. @retval OT_ERROR_INVALID_ARGS @p aGpio or @p aMode is not supported. @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.