Defines | Functions
irqHandlers.h File Reference

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.

Detailed Description

Contains all interrupt handlers declarations.

Author:
Andrzej Zamojski ( NTNU )
Date:
1 VI 2012

Function Documentation

void clearMCP2515InterruptFlag ( uint8_t  reg,
uint8_t  flag 
)

Function to reset clear flags inside of CAN controller.

Parameters:
[in]regRegister containing a flag
[in]flagFlag to reset
Returns:
void
void hal_msg_poll ( void  )

Function to retry fetching an incoming message left in CAN controller by triggering software interrupt responsible for receiving.

Parameters:
[in]void
Returns:
void
void receiveCanMsg ( uint8_t  regRec)

Internal function in order to receive message from CAN controller (MCP2515)

Parameters:
[in]regRecNumber of register with received message ( defined in MCP2515control.h )
Returns:
void
void sendCanMsg ( struct can_msg msgToSend,
uint8_t  regToSend 
)

Internal function which task is to send message through CAN controller (MCP2515)

Parameters:
[in]msgToSend*Pointer to structure filled with message content
[in]regToSendNumber of register to send message ( defined in MCP2515control.h )
Returns:
void
 All Classes Files Functions Enumerations Enumerator Defines