Function esp_idf_svc::hal::sys::twai_reconfigure_alerts_v2

source ยท
pub unsafe extern "C" fn twai_reconfigure_alerts_v2(
    handle: *mut twai_obj_t,
    alerts_enabled: u32,
    current_alerts: *mut u32,
) -> i32
Expand description

@brief Reconfigure which alerts are enabled, with a given handle

@note This is an advanced version of twai_reconfigure_alerts that can reconfigure which alerts are enabled with a given handle. Please refer to the documentation of twai_reconfigure_alerts for more details.

@param[in] handle TWAI driver handle returned by twai_driver_install_v2 @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