conf_can.h File Reference


Detailed Description

CAN Configuration File for AVR32 UC3.

This file contains basic functions for the AVR32 CAN, with support for all modes, settings and clock speeds.

Author:
Atmel Corporation: http://www.atmel.com
Support and FAQ: http://support.atmel.no/

Definition in file conf_can.h.

Go to the source code of this file.

Defines

#define BAUDRATE   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz
#define BAUDRATE_PHS1   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS1
#define BAUDRATE_PHS2   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS2
#define BAUDRATE_PRES   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRES
#define BAUDRATE_PRS   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRS
#define BAUDRATE_SJW   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_SJW
#define CAN0_INT_BOFF_LEVEL   AVR32_INTC_INT0
#define CAN0_INT_ERR_LEVEL   AVR32_INTC_INT0
#define CAN0_INT_RX_LEVEL   AVR32_INTC_INT0
#define CAN0_INT_TX_LEVEL   AVR32_INTC_INT0
#define CAN0_INT_WAKE_UP_LEVEL   AVR32_INTC_INT0
#define CAN1_INT_BOFF_LEVEL   AVR32_INTC_INT0
#define CAN1_INT_ERR_LEVEL   AVR32_INTC_INT0
#define CAN1_INT_RX_LEVEL   AVR32_INTC_INT0
#define CAN1_INT_TX_LEVEL   AVR32_INTC_INT0
#define CAN1_INT_WAKE_UP_LEVEL   AVR32_INTC_INT0
#define CAN_AUTOBAUD   FALSE
 Setup the usage of Autobaud feature, here the stack does not support it.
#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz
#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS1   1
#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS2   1
#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRES   1
#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRS   2
#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_SJW   1
#define CAN_LIB_UNDER_INTERRUPT
 Setup the usage of CAN Under interruption.
#define NB_MOB_CHANNEL   16
 Define the number of MOB per channel. It is a fixed value: 16.


Define Documentation

#define BAUDRATE   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz

Definition at line 65 of file conf_can.h.

#define BAUDRATE_PHS1   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS1

Definition at line 69 of file conf_can.h.

#define BAUDRATE_PHS2   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS2

Definition at line 70 of file conf_can.h.

#define BAUDRATE_PRES   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRES

Definition at line 67 of file conf_can.h.

#define BAUDRATE_PRS   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRS

Definition at line 68 of file conf_can.h.

#define BAUDRATE_SJW   CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_SJW

Definition at line 66 of file conf_can.h.

#define CAN0_INT_BOFF_LEVEL   AVR32_INTC_INT0

Definition at line 75 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN0_INT_ERR_LEVEL   AVR32_INTC_INT0

Definition at line 74 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN0_INT_RX_LEVEL   AVR32_INTC_INT0

Definition at line 73 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN0_INT_TX_LEVEL   AVR32_INTC_INT0

Definition at line 72 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN0_INT_WAKE_UP_LEVEL   AVR32_INTC_INT0

Definition at line 76 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN1_INT_BOFF_LEVEL   AVR32_INTC_INT0

Definition at line 81 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN1_INT_ERR_LEVEL   AVR32_INTC_INT0

Definition at line 80 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN1_INT_RX_LEVEL   AVR32_INTC_INT0

Definition at line 79 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN1_INT_TX_LEVEL   AVR32_INTC_INT0

Definition at line 78 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN1_INT_WAKE_UP_LEVEL   AVR32_INTC_INT0

Definition at line 82 of file conf_can.h.

Referenced by can_enable_interrupt().

#define CAN_AUTOBAUD   FALSE

Setup the usage of Autobaud feature, here the stack does not support it.

Definition at line 54 of file conf_can.h.

#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz

Definition at line 58 of file conf_can.h.

#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS1   1

Definition at line 62 of file conf_can.h.

#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PHS2   1

Definition at line 63 of file conf_can.h.

#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRES   1

Definition at line 60 of file conf_can.h.

#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_PRS   2

Definition at line 61 of file conf_can.h.

#define CAN_BAUDRATE_1MHZ_CANCLOCK_16MHz_SJW   1

Definition at line 59 of file conf_can.h.

#define CAN_LIB_UNDER_INTERRUPT

Setup the usage of CAN Under interruption.

Definition at line 56 of file conf_can.h.

#define NB_MOB_CHANNEL   16

Define the number of MOB per channel. It is a fixed value: 16.

Definition at line 52 of file conf_can.h.

Referenced by can_init(), can_mob_alloc(), can_mob_free(), can_mob_get_status(), can_rx(), and can_tx().


Generated on Fri Feb 19 02:24:19 2010 for AVR32 - CANIF Driver by  doxygen 1.5.5