twai_read_alerts_v2() function
Read TWAI driver alerts with a given handle
Arguments
handle
TWAI driver handle returned by `twai_driver_install_v2`
alerts
Bit field of raised alerts (see documentation for alert flags)
ticks_to_wait
Number of FreeRTOS ticks to block for alert
Return value
- 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
Notes
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.