![]() |
RT-Thread RTOS
An open source embedded real-time operating system
|
#include <dev_can.h>
Data Fields | |
| rt_uint32_t | rcverrcnt |
| rt_uint32_t | snderrcnt |
| rt_uint32_t | errcode |
| rt_uint32_t | rcvpkg |
| rt_uint32_t | dropedrcvpkg |
| rt_uint32_t | sndpkg |
| rt_uint32_t | dropedsndpkg |
| rt_uint32_t | bitpaderrcnt |
| rt_uint32_t | formaterrcnt |
| rt_uint32_t | ackerrcnt |
| rt_uint32_t | biterrcnt |
| rt_uint32_t | crcerrcnt |
| rt_uint32_t | rcvchange |
| rt_uint32_t | sndchange |
| rt_uint32_t | lasterrtype |
CAN device status and error statistics structure.
| rt_uint32_t rt_can_status::rcverrcnt |
Receive Error Counter (REC).
| rt_uint32_t rt_can_status::snderrcnt |
Transmit Error Counter (TEC).
| rt_uint32_t rt_can_status::errcode |
The current bus error code (see enum RT_CAN_BUS_ERR).
| rt_uint32_t rt_can_status::rcvpkg |
Total number of successfully received packages.
| rt_uint32_t rt_can_status::dropedrcvpkg |
Number of received packages dropped due to full buffers.
| rt_uint32_t rt_can_status::sndpkg |
Total number of successfully sent packages.
| rt_uint32_t rt_can_status::dropedsndpkg |
Number of sent packages dropped due to full buffers or errors.
| rt_uint32_t rt_can_status::bitpaderrcnt |
Bit stuffing error count.
| rt_uint32_t rt_can_status::formaterrcnt |
Format error count.
| rt_uint32_t rt_can_status::ackerrcnt |
Acknowledgment error count.
| rt_uint32_t rt_can_status::biterrcnt |
Bit error (recessive/dominant) count.
| rt_uint32_t rt_can_status::crcerrcnt |
CRC error count.
| rt_uint32_t rt_can_status::rcvchange |
A flag indicating that the RX buffer status has changed.
| rt_uint32_t rt_can_status::sndchange |
A bitmask indicating which TX mailboxes have changed status.
| rt_uint32_t rt_can_status::lasterrtype |
The type of the last error that occurred.