pub unsafe extern "C" fn MSS_CAN_get_error_status(
this_can: *mut mss_can_instance_t,
status: *mut u32,
) -> u8Expand description
The MSS_CAN_get_error_status() function returns the present error state of the CAN controller. Error state might be error active or error passive or bus-off.
@param this_can The this_can parameter is a pointer to the mss_can_instance_t structure.
@param status The status parameter is a pointer to hold the content of error status register.
@return The function shall return the following codes:
| Codes | Descriptions |
|---|---|
| 0 | error active |
| 1 | error passive |
| 2 | bus-off |
Example: @code e51() { uint8_t return_status = 0; … return_status = MSS_CAN_get_error_status(&g_mss_can_0_lo); … } @endcode