Function esp_idf_sys::twai_get_status_info_v2

source ยท
pub unsafe extern "C" fn twai_get_status_info_v2(
    handle: twai_handle_t,
    status_info: *mut twai_status_info_t,
) -> esp_err_t
Expand description

@brief Get current status information of a given TWAI driver handle

@note This is an advanced version of twai_get_status_info that can get current status information of a given TWAI driver handle. Please refer to the documentation of twai_get_status_info for more details.

@param[in] handle TWAI driver handle returned by twai_driver_install_v2 @param[out] status_info Status information

@return - ESP_OK: Status information retrieved - ESP_ERR_INVALID_ARG: Arguments are invalid - ESP_ERR_INVALID_STATE: TWAI driver is not installed