Go to the documentation of this file.
36 #ifdef MODULE_CAN_MBOX
47 #define RAW_CAN_DEV_UNDEF (-1)
144 #if defined(MODULE_CAN_MBOX) || defined(DOXYGEN)
259 #if defined(MODULE_CAN_TRX) || defined(DOXYGEN)
int16_t kernel_pid_t
Unique process identifier.
int raw_can_unsubscribe_rx_mbox(int ifnum, struct can_filter *filter, mbox_t *mbox, void *param)
Unsubscribe from reception for the given CAN filter and mbox.
int raw_can_set_bitrate(int ifnum, uint32_t bitrate, uint32_t sample_point)
Set the given bitrate/sample_point to the given ifnum.
int raw_can_free_frame(can_rx_data_t *frame)
Free a received frame.
int raw_can_send(int ifnum, const struct can_frame *frame, kernel_pid_t pid)
Send a CAN frame.
Definitions of CAN device interface.
Definitions high-level CAN interface.
candev_dev_t * raw_can_get_dev_by_ifnum(int ifnum)
Get the candev descriptor from a given interface number.
Scheduler API definition.
Controller Area Network filter.
const char * raw_can_get_name_by_ifnum(int ifnum)
Get the interface name of a given interface number.
Definitions of high-level CAN interface.
Generic transceiver descriptor.
CAN generic transceiver interface.
Mailbox struct definition.
int raw_can_subscribe_rx_mbox(int ifnum, struct can_filter *filter, mbox_t *mbox, void *param)
Subscribe to a CAN filter.
int raw_can_get_can_opt(int ifnum, can_opt_t *opt)
Get a CAN option opt from interface ifnum.
Controller Area Network frame.
int raw_can_set_can_opt(int ifnum, can_opt_t *opt)
Set a CAN option opt to interface ifnum.
int raw_can_get_ifnum_by_name(const char *name)
Get the interface number of a given interface.
int raw_can_subscribe_rx(int ifnum, struct can_filter *filter, kernel_pid_t pid, void *param)
Subscribe to a CAN filter.
int raw_can_power_up(int ifnum)
Power up a given interface.
int raw_can_abort(int ifnum, int handle)
Abort a CAN frame.
candev descriptor to pass to the device thread
int raw_can_set_trx(int ifnum, can_trx_t *trx)
Set a transceiver for a given interface.
int raw_can_power_down(int ifnum)
Power down a given interface.
int raw_can_unsubscribe_rx(int ifnum, struct can_filter *filter, kernel_pid_t pid, void *param)
Unsubscribe from reception for the given CAN filter on pid thread.
Structure to pass a CAN option.
int raw_can_send_mbox(int ifnum, const struct can_frame *frame, mbox_t *mbox)
Send a CAN frame.