Function esp_idf_svc::sys::twai_read_alerts
source ยท pub unsafe extern "C" fn twai_read_alerts(
alerts: *mut u32,
ticks_to_wait: u32,
) -> i32
Expand description
@brief Read TWAI driver alerts
This function will read the alerts raised by the TWAI driver. If no alert has been issued when this function is called, this function will block until an alert occurs or until it timeouts.
@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
@note Multiple alerts can be raised simultaneously. The application should check for all alerts that have been enabled.
@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