![]() |
EVE 1.0
|
CAN driver descriptor: static structure for configuration of driver instance. More...
#include <can.h>
Data Fields | |
const struct spi_t * | Spi |
Pointer to the SPI interface instance. | |
const struct spi_cs_t | SpiCs |
SPI CS settings. | |
uint32_t | SpiBaudrate |
SPI speed. | |
struct can_state_t * | State |
Pointer to the CAN state. | |
uint8_t | PinReset |
Pin number for MCP2562x HW RESET. | |
can_rx_callback_t | CanRxReadyCb [2] |
Rx0/Rx1 interrupt handlers. | |
can_wake_callback_t | CanWakeCb |
CAN wakeup interrupt handler. | |
can_err_callback_t | CanErrorCb |
CAN error interrupt handler. | |
uint8_t | CanCfgCLKPRE:2 |
CLKOUT Pin Prescaler bits. | |
uint8_t | CanCfgCLKEN:1 |
1 : CLKOUT pin is enabled | |
uint8_t | CanCfgOSM:1 |
1 : one-shot mode is on | |
uint8_t | CANCTRLx:4 |
Not used in configuration. | |
uint8_t | CanCfgCANCTRL |
CANCTRL register content. | |
uint8_t | CanCfgRX0IE:1 |
Rx0 Full Interrupt Flag bit - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgRX1IE:1 |
Rx1 Full Interrupt Flag bit - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgTX0IE:1 |
Tx0 Empty Interrupt Flag bit - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgTX1IE:1 |
Tx1 Empty Interrupt Flag bit - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgTX2IE:1 |
Tx2 Empty Interrupt Flag bit - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgERRIE:1 |
Error Interrupt Flag bit (multiple sources in the EFLG register) - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgWAKIE:1 |
Wake-up Interrupt Flag bit - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgMERRE:1 |
Message Error Interrupt Flag bit - must be cleared by MCU to reset interrupt condition. | |
uint8_t | CanCfgCANINTE |
CANINTE register content. | |
uint8_t | CanCfgB0BFM:1 |
RX0BF Pin Operation mode bit: 1 = Rx0 interrupt, 0 = Digital Output mode. | |
uint8_t | CanCfgB1BFM:1 |
RX1BF Pin Operation mode bit: 1 = Rx1 interrupt, 0 = Digital Output mode. | |
uint8_t | CanCfgB0BFE:1 |
RX0BF Pin Function Enable bit: 1 = Pin function enabled, operation mode determined by B0BFM bit. | |
uint8_t | CanCfgB1BFE:1 |
RX1BF Pin Function Enable bit: 1 = Pin function enabled, operation mode determined by B1BFM bit. | |
uint8_t | BFPCTRLx:4 |
Not used in configuration. | |
uint8_t | CanCfgB0RTSM:1 |
TX0RTS Pin mode bit: 1 = RTS of Tx0 on falling edge, 0 = Digital input. | |
uint8_t | CanCfgB1RTSM:1 |
TX1RTS Pin mode bit: 1 = RTS of Tx1 on falling edge, 0 = Digital input. | |
uint8_t | CanCfgB2RTSM:1 |
TX2RTS Pin mode bit: 1 = RTS of Tx2 on falling edge, 0 = Digital input. | |
uint8_t | TXRTSCTRLx:5 |
Not used in configuration. | |
uint8_t | CNF3x:6 |
Not used in configuration. | |
uint8_t | CanCfgWAKFIL:1 |
1 : Wake-up filter enabled | |
uint8_t | CanCfgSOF:1 |
Start-of-Frame Signal bit (!!!only if CLKOUT pin is enabled!!!) | |
uint8_t | RXB0CTRLx1:6 |
Not used in configuration. | |
uint8_t | CanCfgBUKT:1 |
Rollover Enable bit: 1 = Rx0 message will rollover to Rx1 if Rx0 is full. | |
uint8_t | RXB0CTRLx2:2 |
Not used in configuration. | |