![]() |
RT-Thread RTOS
An open source embedded real-time operating system
|
#include <dev_can.h>
Data Fields | |
| rt_uint32_t | baud_rate |
| rt_uint32_t | msgboxsz |
| rt_uint32_t | sndboxnumber |
| rt_uint32_t | mode: 8 |
| rt_uint32_t | privmode: 8 |
| rt_uint32_t | reserved: 16 |
| rt_uint32_t | ticks |
CAN device configuration structure.
| rt_uint32_t can_configure::baud_rate |
The baud rate for the arbitration phase (e.g., CAN500kBaud).
| rt_uint32_t can_configure::msgboxsz |
The size of the software receive buffer (in number of messages).
| rt_uint32_t can_configure::sndboxnumber |
The number of hardware mailboxes used for blocking send operations.
| rt_uint32_t can_configure::mode |
The CAN operation mode (e.g., RT_CAN_MODE_NORMAL, RT_CAN_MODE_LOOPBACK).
| rt_uint32_t can_configure::privmode |
Private mode flag. If set, the priv field of rt_can_msg specifies the hardware mailbox.
| rt_uint32_t can_configure::reserved |
Reserved for future use.
| rt_uint32_t can_configure::ticks |
The period in OS ticks for the status-checking timer.