Contains all interrupt handlers definitions and functions declarations
indispensible for proper operation of the handlers.
More...
Functions | ||||
CONFIG_MCP_INT Interrupt handler | ||||
MCP2515 interrupt handler
| ||||
ISR (CONFIG_MCP_INT) | ||||
CONFIG_INT_RECEIVING Interrupt handler | ||||
External Interrupt handler
| ||||
ISR (CONFIG_INT_RECEIVING) | ||||
CONFIG_INT_SENDING Interrupt handler | ||||
External Interrupt handler
| ||||
ISR (CONFIG_INT_SENDING) | ||||
WDT_VECT Watchdog | ||||
Watchdog Timer handler
| ||||
ISR (WDT_VECT) | ||||
BADISR_vect BADisr | ||||
BADISR_vect handler - fired just before processor reset in case of memory problems...
| ||||
ISR (BADISR_vect) | ||||
void | receiveCanMsg (uint8_t regRec) | |||
Internal function in order to receive message from CAN controller (MCP2515) | ||||
void | sendCanMsg (struct can_msg *msgToSend, uint8_t regToSend) | |||
Internal function which task is to send message through CAN controller (MCP2515) | ||||
void | hal_msg_poll (void) | |||
Function to retry fetching an incoming message left in CAN controller by triggering software interrupt responsible for receiving. | ||||
void | clearMCP2515InterruptFlag (uint8_t reg, uint8_t flag) | |||
Function to reset clear flags inside of CAN controller. | ||||
Variables | ||||
volatile uint16_t | time | |||
volatile uint8_t | flag | |||
char * | strMERRE = "MERRE error \r" | |||
char * | strERROR = "Error interrupt occured \r" | |||
volatile uint8_t | readBuffer |
Contains all interrupt handlers definitions and functions declarations
indispensible for proper operation of the handlers.
void clearMCP2515InterruptFlag | ( | uint8_t | reg, |
uint8_t | flag | ||
) |
Function to reset clear flags inside of CAN controller.
[in] | reg | Register containing a flag |
[in] | flag | Flag to reset |
void hal_msg_poll | ( | void | ) |
Function to retry fetching an incoming message left in CAN controller by triggering software interrupt responsible for receiving.
[in] | void |
void receiveCanMsg | ( | uint8_t | regRec | ) |
Internal function in order to receive message from CAN controller (MCP2515)
[in] | regRec | Number of register with received message ( defined in MCP2515control.h ) |
void sendCanMsg | ( | struct can_msg * | msgToSend, |
uint8_t | regToSend | ||
) |
Internal function which task is to send message through CAN controller (MCP2515)
[in] | msgToSend* | Pointer to structure filled with message content |
[in] | regToSend | Number of register to send message ( defined in MCP2515control.h ) |