twai_clear_transmit_queue_v2() function
Clear the transmit queue of a given TWAI driver handle
Arguments
handle
TWAI driver handle returned by `twai_driver_install_v2`
Return value
- ESP_OK: Transmit queue cleared - ESP_ERR_INVALID_STATE: TWAI driver is not installed or TX queue is disabled
Notes
This is an advanced version of `twai_clear_transmit_queue` that can clear the transmit queue of a given TWAI driver handle. Please refer to the documentation of `twai_clear_transmit_queue` for more details.