Go to the documentation of this file.
37 #ifndef CAN_MAX_RATE_ERROR
42 #define CAN_MAX_RATE_ERROR (50)
49 #define CAN_DLL_NUMOF (1)
57 #if defined(MODULE_CAN_TRX) || defined(DOXYGEN)
60 #if defined(MODULE_CAN_PM) || defined(DOXYGEN)
74 #if defined(MODULE_CAN_TRX) || defined(DOXYGEN)
77 #if defined(MODULE_CAN_PM) || defined(DOXYGEN)
int16_t kernel_pid_t
Unique process identifier.
uint32_t rx_inactivity_timeout
Min timeout loaded when a frame is received.
Structure to hold driver state.
const char * name
candev name to set
Scheduler API definition.
CAN hardware-dependent bit-timing constant.
struct candev_params candev_params_t
Parameters to initialize a candev.
Generic transceiver descriptor.
CAN generic transceiver interface.
const char * name
device name
uint32_t rx_inactivity_timeout
power management rx timeout value
uint32_t tx_wakeup_timeout
Min timeout loaded when a frame is sent.
Definitions for low-level CAN driver interface.
int ifnum
interface number
struct candev_dev candev_dev_t
candev descriptor to pass to the device thread
uint32_t tx_wakeup_timeout
power management tx wake up value
candev descriptor to pass to the device thread
xtimer_t pm_timer
timer for power management
CAN bit-timing parameters.
uint32_t last_pm_update
time when the pm was updated
can_trx_t * trx
transceiver attached to the device
uint32_t last_pm_value
last pm timer value set
int can_device_calc_bittiming(uint32_t clock, const struct can_bittiming_const *timing_const, struct can_bittiming *bittiming)
Fill in a bittiming structure from bittiming->bitrate and timing_const.
can_trx_t * trx
transceiver to set
Parameters to initialize a candev.
xtimer interface definitions
kernel_pid_t can_device_init(char *stack, int stacksize, char priority, const char *name, candev_dev_t *params)
Initialize a CAN device thread.