Function esp_idf_svc::sys::twai_reconfigure_alerts
source ยท pub unsafe extern "C" fn twai_reconfigure_alerts(
alerts_enabled: u32,
current_alerts: *mut u32,
) -> i32
Expand description
@brief Reconfigure which alerts are enabled
This function reconfigures which alerts are enabled. If there are alerts which have not been read whilst reconfiguring, this function can read those alerts.
@param[in] alerts_enabled Bit field of alerts to enable (see documentation for alert flags) @param[out] current_alerts Bit field of currently raised alerts. Set to NULL if unused
@return - ESP_OK: Alerts reconfigured - ESP_ERR_INVALID_STATE: TWAI driver is not installed