Function esp_idf_svc::sys::twai_read_alerts_v2
source ยท pub unsafe extern "C" fn twai_read_alerts_v2(
handle: *mut twai_obj_t,
alerts: *mut u32,
ticks_to_wait: u32,
) -> i32
Expand description
@brief Read TWAI driver alerts with a given handle
@note This is an advanced version of twai_read_alerts
that can read TWAI driver alerts with a given handle.
Please refer to the documentation of twai_read_alerts
for more details.
@param[in] handle TWAI driver handle returned by twai_driver_install_v2
@param[out] alerts Bit field of raised alerts (see documentation for alert flags)
@param[in] ticks_to_wait Number of FreeRTOS ticks to block for alert
@return - ESP_OK: Alerts read - ESP_ERR_TIMEOUT: Timed out waiting for alerts - ESP_ERR_INVALID_ARG: Arguments are invalid - ESP_ERR_INVALID_STATE: TWAI driver is not installed