pub unsafe extern "C" fn otPlatDiagGpioGet(
    aGpio: u32,
    aValue: *mut bool
) -> otError
Expand description

Gets the gpio value.

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

@retval OT_ERROR_NONE Successfully got the gpio value. @retval OT_ERROR_FAILED A platform error occurred while getting the gpio value. @retval OT_ERROR_INVALID_ARGS @p aGpio is not supported or @p aValue is NULL. @retval OT_ERROR_INVALID_STATE Diagnostic mode was not enabled or @p aGpio is not configured as input. @retval OT_ERROR_NOT_IMPLEMENTED This function is not implemented or configured on the platform.