Function esp_idf_hal::sys::twai_start
source ยท pub unsafe extern "C" fn twai_start() -> i32
Expand description
@brief Start the TWAI driver
This function starts the TWAI driver, putting the TWAI driver into the running state. This allows the TWAI driver to participate in TWAI bus activities such as transmitting/receiving messages. The TX and RX queue are reset in this function, clearing any messages that are unread or pending transmission. This function can only be called when the TWAI driver is in the stopped state.
@return - ESP_OK: TWAI driver is now running - ESP_ERR_INVALID_STATE: Driver is not in stopped state, or is not installed