libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
can.c File Reference
Include dependency graph for can.c:

Go to the source code of this file.

Macros

#define CAN_MSR_INAK_TIMEOUT   0x0000FFFF
 

Functions

void can_reset (uint32_t canport)
 CAN Reset. More...
 
int can_init (uint32_t canport, bool ttcm, bool abom, bool awum, bool nart, bool rflm, bool txfp, uint32_t sjw, uint32_t ts1, uint32_t ts2, uint32_t brp, bool loopback, bool silent)
 CAN Init. More...
 
void can_filter_init (uint32_t nr, bool scale_32bit, bool id_list_mode, uint32_t fr1, uint32_t fr2, uint32_t fifo, bool enable)
 CAN Filter Init. More...
 
void can_filter_id_mask_16bit_init (uint32_t nr, uint16_t id1, uint16_t mask1, uint16_t id2, uint16_t mask2, uint32_t fifo, bool enable)
 CAN Initialize a 16bit Message ID Mask Filter. More...
 
void can_filter_id_mask_32bit_init (uint32_t nr, uint32_t id, uint32_t mask, uint32_t fifo, bool enable)
 CAN Initialize a 32bit Message ID Mask Filter. More...
 
void can_filter_id_list_16bit_init (uint32_t nr, uint16_t id1, uint16_t id2, uint16_t id3, uint16_t id4, uint32_t fifo, bool enable)
 CAN Initialize a 16bit Message ID List Filter. More...
 
void can_filter_id_list_32bit_init (uint32_t nr, uint32_t id1, uint32_t id2, uint32_t fifo, bool enable)
 CAN Initialize a 32bit Message ID List Filter. More...
 
void can_enable_irq (uint32_t canport, uint32_t irq)
 CAN Enable IRQ. More...
 
void can_disable_irq (uint32_t canport, uint32_t irq)
 CAN Disable IRQ. More...
 
int can_transmit (uint32_t canport, uint32_t id, bool ext, bool rtr, uint8_t length, uint8_t *data)
 CAN Transmit Message. More...
 
void can_fifo_release (uint32_t canport, uint8_t fifo)
 CAN Release FIFO. More...
 
void can_receive (uint32_t canport, uint8_t fifo, bool release, uint32_t *id, bool *ext, bool *rtr, uint8_t *fmi, uint8_t *length, uint8_t *data, uint16_t *timestamp)
 CAN Receive Message. More...
 
bool can_available_mailbox (uint32_t canport)
 

Macro Definition Documentation

◆ CAN_MSR_INAK_TIMEOUT

#define CAN_MSR_INAK_TIMEOUT   0x0000FFFF

Definition at line 51 of file can.c.