zephyr::raw

Function device_is_ready

Source
pub unsafe extern "C" fn device_is_ready(dev: *const device) -> bool
Expand description

@brief Verify that a device is ready for use.

Indicates whether the provided device pointer is for a device known to be in a state where it can be used with its standard API.

This can be used with device pointers captured from DEVICE_DT_GET(), which does not include the readiness checks of device_get_binding(). At minimum this means that the device has been successfully initialized.

@param dev pointer to the device in question.

@retval true If the device is ready for use. @retval false If the device is not ready for use or if a NULL device pointer is passed as argument.