Function esp_idf_sys::twai_read_alerts_v2

source ยท
pub unsafe extern "C" fn twai_read_alerts_v2(
    handle: twai_handle_t,
    alerts: *mut u32,
    ticks_to_wait: TickType_t,
) -> esp_err_t
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