![]() |
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_10MS 16 |
#define | TIME_1000MS 100*TIME_10MS |
Functions | |
ISR (INT0_VECTOR) | |
ISR (INT_SENDING) | |
ISR (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 (struct can_msg *msgRec, 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. |
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.
[in] | void |
void receiveCanMsg | ( | struct can_msg * | msgRec, |
uint8_t | regRec | ||
) |
Internal function in order to receive message from CAN controller (MCP2515)
[in] | can_msg* | Pointer to structure to fill with message content |
[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 ) |