Function openthread_sys::otPlatDiagGpioSet
source ยท pub unsafe extern "C" fn otPlatDiagGpioSet(
aGpio: u32,
aValue: bool,
) -> otError
Expand description
Sets the gpio value.
@param[in] aGpio The gpio number. @param[in] aValue true to set the gpio to high level, or false otherwise.
@retval OT_ERROR_NONE Successfully set the gpio. @retval OT_ERROR_FAILED A platform error occurred while setting the gpio. @retval OT_ERROR_INVALID_ARGS @p aGpio is not supported. @retval OT_ERROR_INVALID_STATE Diagnostic mode was not enabled or @p aGpio is not configured as output. @retval OT_ERROR_NOT_IMPLEMENTED This function is not implemented or configured on the platform.