Microchip® Advanced Software Framework

can_example2.c File Reference
#include "asf.h"
#include "compiler.h"
#include "board.h"
#include "power_clocks_lib.h"
#include "gpio.h"
#include "pm_uc3c.h"
#include "scif_uc3c.h"
#include "intc.h"
#include "can.h"
#include "canif.h"
#include "usart.h"
#include "print_funcs.h"
#include "conf_can_example.h"

Functions

void can_example_prepare_data (U8 mode)
 Local function to prepare RX and TX buffers. More...
 
void can_out_callback_channel0 (U8 handle, U8 event)
 Call Back prototype. More...
 
int main (void)
 
static void usart_int_handler (void)
 USART interrupt handler, fired each time a character is received. More...
 

Variables

volatile U8 nb_message_received_on_channel0 = 0
 Define the number of message received on CAN Channel 0. More...
 
volatile U16 state_machine = 0
 

void can_example_prepare_data ( U8  mode)

Local function to prepare RX and TX buffers.

Prepare Data on CAN Bus.

References CAN_CMD_REFUSED, can_init(), can_mob_alloc(), can_out_callback_channel0(), can_rx(), can_tx(), and CANIF_CHANNEL_MODE_NORMAL.

Referenced by main().

void can_out_callback_channel0 ( U8  handle,
U8  event 
)

Call Back prototype.

Call Back called by can_drv.

static void usart_int_handler ( void  )
static

USART interrupt handler, fired each time a character is received.

References c, and usart_read_char().

Referenced by main().

volatile U8 nb_message_received_on_channel0 = 0

Define the number of message received on CAN Channel 0.

volatile U16 state_machine = 0