![]() |
Contains all interrupt handlers declarations. More...
#include <stdlib.h>
#include <util/delay.h>
#include "uCmaskFile.h"
#include "functions.h"
#include "MCP2515control.h"
#include "hll.h"
Go to the source code of this file.
Defines | |
#define | TIME_PERIOD 16 |
Functions | |
ISR (CONFIG_MCP_INT) | |
ISR (CONFIG_INT_SENDING) | |
ISR (CONFIG_INT_RECEIVING) | |
ISR (WDT_VECT) | |
ISR (BADISR_vect) | |
void | clearMCP2515InterruptFlag (uint8_t reg, uint8_t flag) |
Function to reset clear flags inside of CAN controller. | |
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. |
Contains all interrupt handlers declarations.
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 ) |