![]() |
RTEMS 7.0-rc1
|
This header file is part of CAN/CAN FD bus common support. It implements controller's statistics. More...
Go to the source code of this file.
Data Structures | |
| struct | rtems_can_stats |
| This structure is used to represent CAN statistics. More... | |
Enumerations | |
| enum | can_state { CAN_STATE_ERROR_ACTIVE = 0 , CAN_STATE_ERROR_WARNING , CAN_STATE_ERROR_PASSIVE , CAN_STATE_BUS_OFF , CAN_STATE_STOPPED , CAN_STATE_SLEEPING , CAN_STATE_STOPPING , CAN_STATE_MAX } |
| This enum represents the current state of CAN controller. More... | |
Functions | |
| void | rtems_can_stats_reset (struct rtems_can_stats *stats) |
| This function resets the controller's statistics. | |
This header file is part of CAN/CAN FD bus common support. It implements controller's statistics.
Implementation is based on original LinCAN - Linux CAN bus driver Part of OrtCAN project https://ortcan.sourceforge.net/
| enum can_state |
This enum represents the current state of CAN controller.
| void rtems_can_stats_reset | ( | struct rtems_can_stats * | stats | ) |
This function resets the controller's statistics.
This sets all fields of rtems_can_stats structure to zero. It should be called by the controller after it is started.
| stats | Pointer to rtems_can_stats structure. |