Microchip® Advanced Software Framework

can.c File Reference
#include "avr32/io.h"
#include "can.h"
#include "compiler.h"
#include "preprocessor.h"
#include "intc.h"
#include "canif.h"
#include "delay.h"

Functions

static void can0_int_busoff_handler (void)
 
static void can0_int_cerr_handler (void)
 
static void can0_int_rx_handler (void)
 
static void can0_int_tx_handler (void)
 
static void can0_int_wakeup_handler (void)
 
static void can1_int_busoff_handler (void)
 
static void can1_int_cerr_handler (void)
 
static void can1_int_rx_handler (void)
 
static void can1_int_tx_handler (void)
 
static void can1_int_wakeup_handler (void)
 
void can_clear_status (U8 ch, U8 mob)
 Clear All Status on CAN Channel for a selected MOB. More...
 
U8 can_enable_interrupt (U8 ch)
 Enable interrupt on CAN Channel. More...
 
Union64 can_get_mob_data (U8 ch, U8 handle)
 Get Mob data from a selected MOB. More...
 
U8 can_get_mob_dlc (U8 ch, U8 handle)
 Get Mob dlc from a selected MOB. More...
 
U32 can_get_mob_id (U8 ch, U8 handle)
 Get Mob ID from a selected MOB. More...
 
U8 can_init (U8 ch, U32 can_msg_ram_add, U8 operating_mode, void(*can_msg_callback_channel)(U8 handle, U8 event))
 
U8 can_mob_alloc (U8 ch)
 Allocate one MOB in a specific CAN Channel. More...
 
U8 can_mob_free (U8 ch, U8 handle)
 Free one specific MOB in a specific CAN Channel. More...
 
U8 can_mob_get_status (U8 ch, U8 handle)
 Get Mob status from a selected MOB. More...
 
U8 can_rx (U8 ch, U8 handle, U8 req_type, const can_msg_t *can_msg)
 Start Reception. More...
 
U8 can_tx (U8 ch, U8 handle, U8 dlc, U8 req_type, const can_msg_t *can_msg)
 Start Transmission. More...
 

Variables

struct {
   void(*   can_msg_callback_channel0 )(U8, U8)
 
   void(*   can_msg_callback_channel1 )(U8, U8)
 
can_lib_params
 Output parameters. More...
 
U32 can_mob_alloc_vector0 = 0
 Dynamic Mob Allocation State Vector for Channel 0. More...
 
U32 can_mob_alloc_vector1 = 0
 Dynamic Mob Allocation State Vector for Channel 1. More...
 

static void can0_int_busoff_handler ( void  )
static
static void can0_int_cerr_handler ( void  )
static
static void can0_int_rx_handler ( void  )
static
static void can0_int_tx_handler ( void  )
static
static void can0_int_wakeup_handler ( void  )
static
static void can1_int_busoff_handler ( void  )
static
static void can1_int_cerr_handler ( void  )
static
static void can1_int_rx_handler ( void  )
static
static void can1_int_tx_handler ( void  )
static
static void can1_int_wakeup_handler ( void  )
static

struct { ... } can_lib_params
Initial value:
=
{
.can_msg_callback_channel0 = NULL,
.can_msg_callback_channel1 = NULL
}
#define NULL
Definition: lwip-1.4.1/src/include/lwip/def.h:47

Output parameters.

Referenced by can0_int_busoff_handler(), can0_int_cerr_handler(), can0_int_rx_handler(), can0_int_tx_handler(), can0_int_wakeup_handler(), can1_int_busoff_handler(), can1_int_cerr_handler(), can1_int_rx_handler(), can1_int_tx_handler(), can1_int_wakeup_handler(), and can_init().

U32 can_mob_alloc_vector0 = 0

Dynamic Mob Allocation State Vector for Channel 0.

Referenced by can_mob_alloc(), and can_mob_free().

U32 can_mob_alloc_vector1 = 0

Dynamic Mob Allocation State Vector for Channel 1.

Referenced by can_mob_alloc(), and can_mob_free().

void(* can_msg_callback_channel0)(U8, U8)
void(* can_msg_callback_channel1)(U8, U8)