Microchip® Advanced Software Framework

conf_can_example.h File Reference
#include "avr32/io.h"
#include "compiler.h"
#include "can.h"
#include "board.h"

Macros

#define FPBA_HZ   FOSC0
 
#define UART_USART   (&AVR32_USART2)
 
#define UART_USART_BAUDRATE   57600
 
#define UART_USART_IRQ   AVR32_USART2_IRQ
 
#define UART_USART_IRQ_LEVEL   AVR32_INTC_INT1
 
#define UART_USART_RX_FUNCTION   AVR32_USART2_RXD_0_1_FUNCTION
 
#define UART_USART_RX_PIN   AVR32_USART2_RXD_0_1_PIN
 
#define UART_USART_TX_FUNCTION   AVR32_USART2_TXD_0_1_FUNCTION
 
#define UART_USART_TX_PIN   AVR32_USART2_TXD_0_1_PIN
 

Variables

can_mob_t appli_remote_rx_msg
 
can_mob_t appli_rx_msg
 
can_mob_t appli_tx_msg
 
const char CAN_BusOFFIRQ []
 
const char CAN_Error []
 
const char CAN_Success []
 
const char CAN_Wakeup []
 
const char CAN_WakeupD []
 
const char CAN_WakeUpIRQ []
 
const char Data_Sent_Start_or_Not []
 
const char Demo_Sent_Data []
 
can_msg_t msg_remote_rx
 
can_msg_t msg_rx_listening
 
can_msg_t msg_tx_sot
 
const char txt_logo_atmel []
 

#define FPBA_HZ   FOSC0

Referenced by main().

#define UART_USART   (&AVR32_USART2)
#define UART_USART_BAUDRATE   57600
#define UART_USART_IRQ   AVR32_USART2_IRQ
#define UART_USART_IRQ_LEVEL   AVR32_INTC_INT1
#define UART_USART_RX_FUNCTION   AVR32_USART2_RXD_0_1_FUNCTION
#define UART_USART_RX_PIN   AVR32_USART2_RXD_0_1_PIN
#define UART_USART_TX_FUNCTION   AVR32_USART2_TXD_0_1_FUNCTION
#define UART_USART_TX_PIN   AVR32_USART2_TXD_0_1_PIN

can_mob_t appli_remote_rx_msg
Initial value:
= {
8,
}
can_msg_t msg_remote_rx
Definition: conf_can_example.h:138
#define CAN_STATUS_NOT_COMPLETED
This constant is used as return value for "can_get_status" function.
Definition: can.h:70
#define CAN_REMOTE_FRAME
This constant is used for MOB Initialization request.
Definition: can.h:87
#define CAN_MOB_NOT_ALLOCATED
This constant is used for MOB Allocation status.
Definition: can.h:82
can_mob_t appli_rx_msg
Initial value:
= {
8,
}
can_msg_t msg_rx_listening
Definition: conf_can_example.h:108
#define CAN_STATUS_NOT_COMPLETED
This constant is used as return value for "can_get_status" function.
Definition: can.h:70
#define CAN_DATA_FRAME
This constant is used for MOB Initialization request.
Definition: can.h:85
#define CAN_MOB_NOT_ALLOCATED
This constant is used for MOB Allocation status.
Definition: can.h:82

Referenced by can_out_callback_channel0(), and main().

can_mob_t appli_tx_msg
Initial value:
= {
8,
}
#define CAN_STATUS_NOT_COMPLETED
This constant is used as return value for "can_get_status" function.
Definition: can.h:70
#define CAN_DATA_FRAME
This constant is used for MOB Initialization request.
Definition: can.h:85
can_msg_t msg_tx_sot
Definition: conf_can_example.h:77
#define CAN_MOB_NOT_ALLOCATED
This constant is used for MOB Allocation status.
Definition: can.h:82
const char CAN_BusOFFIRQ[]
Initial value:
= "\n\r\
=== Error: UC3C CAN Bus OFF IRQ Detected ===\n\r\
\n\r"
const char CAN_Error[]
Initial value:
= "\n\r\
=== Error: UC3C CAN Communication Error ===\n\r\
\n\r"
const char CAN_Success[]
Initial value:
= "\n\r\
=== OK: UC3C CAN Communication Succeeded ===\n\r\
\n\r"
const char CAN_Wakeup[]
Initial value:
= "\n\r\
=== Switch into static Mode...Wait CAN communication... ===\n\r\
\n\r"

Referenced by main().

const char CAN_WakeupD[]
Initial value:
= "\n\r\
=== OK: UC3C CAN Wake Up Detected ===\n\r\
\n\r"

Referenced by main().

const char CAN_WakeUpIRQ[]
Initial value:
= "\n\r\
=== Error: UC3C CAN Wake Up IRQ Detected ===\n\r\
\n\r"
const char Data_Sent_Start_or_Not[]
Initial value:
= "\
===Start demo now? Press y or Y - start\n\r\
=== Press n or N - Not start\
\n\r"
const char Demo_Sent_Data[]
Initial value:
= "\n\r\
-0- TxCAN @ 307: 0x133(Std.), L=8, 01-02-03-04-05-06-07-08; \n\r\
\n\r"
can_msg_t msg_remote_rx
Initial value:
=
{
{
{
.id = 0x110,
.id_mask = 0x1ff,
},
},
.data.u64 = 0x55AA00000000AA55,
}
can_msg_t msg_rx_listening
Initial value:
=
{
{
{
.id = 0,
.id_mask = 0,
},
},
.data.u64 = 0x0LL,
}
can_msg_t msg_tx_sot
Initial value:
=
{
{
{
.id = 0x130,
.id_mask = 0x1ff,
},
},
.data.u64 = 0x0102030405060708LL,
}
const char txt_logo_atmel[]
Initial value:
="\r\n\
_____________________________\r\n\
/___ ________________________|\r\n\
___ | | ________ ____ _\r\n\
/ | | | | _ _ \\ | __| | |\r\n\
/ /| | | | | | | | | | | |__ | |\r\n\
/ / | | | | | | | | | | | __| | |\r\n\
/ /_ | | | | | | | | | | | |__ | |__\r\n\
/____||_| |_| |_| |_| |_| |____| |___/\r\n\
,-----------------------------------,\r\n\
1 - Transmission Mode\r\n\
2 - Reception Mode\r\n\
3 - Remote Reception Mode\r\n\
\r\n\
\n\r"