Microchip® Advanced Software Framework

can_example1.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"

Macros

#define CAN_CHANNEL_EXAMPLE   0
 CAN Example Channel Used: 0 means CAN Channel 0. More...
 
#define CAN_WAKEUP_MASK_EXAMPLE   AVR32_PM_AWEN_CANIF0WEN_MASK
 CAN Wakeup Mask example. More...
 

Functions

void can_example_prepare_data_to_send (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)
 Main function to configure the CAN, and begin transfers. More...
 

Variables

volatile can_msg_t mob_ram_ch0 [NB_MOB_CHANNEL]
 Local allocation for MOB buffer. More...
 
volatile U8 nb_message_received_on_channel0 = 0
 Define the number of message received on CAN Channel 0. More...
 

#define CAN_CHANNEL_EXAMPLE   0

CAN Example Channel Used: 0 means CAN Channel 0.

Referenced by main().

#define CAN_WAKEUP_MASK_EXAMPLE   AVR32_PM_AWEN_CANIF0WEN_MASK

CAN Wakeup Mask example.

Referenced by main().

void can_example_prepare_data_to_send ( U8  mode)

Local function to prepare RX and TX buffers.

void can_out_callback_channel0 ( U8  handle,
U8  event 
)

Call Back prototype.

Call Back called by can_drv.

volatile can_msg_t mob_ram_ch0[NB_MOB_CHANNEL]

Local allocation for MOB buffer.

volatile U8 nb_message_received_on_channel0 = 0

Define the number of message received on CAN Channel 0.