Function esp_idf_svc::hal::sys::twai_transmit_v2
source ยท pub unsafe extern "C" fn twai_transmit_v2(
handle: *mut twai_obj_t,
message: *const twai_message_t,
ticks_to_wait: u32,
) -> i32
Expand description
@brief Transmit a TWAI message via a given handle
@note This is an advanced version of twai_transmit
that can transmit a TWAI message with a given handle.
Please refer to the documentation of twai_transmit
for more details.
@param[in] handle TWAI driver handle returned by twai_driver_install_v2
@param[in] message Message to transmit
@param[in] ticks_to_wait Number of FreeRTOS ticks to block on the TX queue
@return - ESP_OK: Transmission successfully queued/initiated - ESP_ERR_INVALID_ARG: Arguments are invalid - ESP_ERR_TIMEOUT: Timed out waiting for space on TX queue - ESP_FAIL: TX queue is disabled and another message is currently transmitting - ESP_ERR_INVALID_STATE: TWAI driver is not in running state, or is not installed - ESP_ERR_NOT_SUPPORTED: Listen Only Mode does not support transmissions