Microchip® Advanced Software Framework

conf_can_task.h File Reference

AVR CAN Task Configuration File.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "avr32/io.h"
#include "compiler.h"
#include "can.h"
#include "board.h"

Macros

#define STDIO_USART   (&AVR32_USART2)
 
#define STDIO_USART_BAUDRATE   57600
 
#define STDIO_USART_IRQ   AVR32_USART2_IRQ
 
#define STDIO_USART_IRQ_LEVEL   AVR32_INTC_INT1
 
#define STDIO_USART_RX_FUNCTION   AVR32_USART2_RXD_0_1_FUNCTION
 
#define STDIO_USART_RX_PIN   AVR32_USART2_RXD_0_1_PIN
 
#define STDIO_USART_TX_FUNCTION   AVR32_USART2_TXD_0_1_FUNCTION
 
#define STDIO_USART_TX_PIN   AVR32_USART2_TXD_0_1_PIN
 

Variables

const char CAN_BusOFFIRQ []
 
const char CAN_Error []
 
const char CAN_Success []
 
const char CAN_WakeUpIRQ []
 
const char Data_Sent_Start_or_Not []
 
const char Demo_Sent_Data []
 
can_msg_t msg_rx_listening
 
can_msg_t msg_tx_sot
 
can_mob_t pCANMOB_message0 [10]
 
can_mob_t pCANMOB_message2 [1]
 
const char txt_logo_atmel []
 

#define STDIO_USART   (&AVR32_USART2)
#define STDIO_USART_BAUDRATE   57600
#define STDIO_USART_IRQ   AVR32_USART2_IRQ
#define STDIO_USART_IRQ_LEVEL   AVR32_INTC_INT1
#define STDIO_USART_RX_FUNCTION   AVR32_USART2_RXD_0_1_FUNCTION
#define STDIO_USART_RX_PIN   AVR32_USART2_RXD_0_1_PIN
#define STDIO_USART_TX_FUNCTION   AVR32_USART2_TXD_0_1_FUNCTION
#define STDIO_USART_TX_PIN   AVR32_USART2_TXD_0_1_PIN

const char CAN_BusOFFIRQ[]
Initial value:
= "\n\r\
=== Error: UC3C CAN Bus OFF IRQ Detected ===\n\r\
\n\r"

Referenced by main().

const char CAN_Error[]
Initial value:
= "\n\r\
=== Error: UC3C CAN Communication Error ===\n\r\
\n\r"

Referenced by main().

const char CAN_Success[]
Initial value:
= "\n\r\
=== OK: UC3C CAN Communication Success ===\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"

Referenced by main().

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"

Referenced by main().

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 = 0x133,
.id_mask = 0x1ff,
},
},
.data.u64 = 0x0102030405060708LL,
}
can_mob_t pCANMOB_message0[10]
Initial value:
= {
{
8,
},
}
can_msg_t msg_tx_sot
Definition: conf_can_task.h:68
#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_example_prepare_data_to_send().

can_mob_t pCANMOB_message2[1]
Initial value:
= {
}
#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
can_msg_t msg_rx_listening
Definition: conf_can_task.h:98

Referenced by can_example_prepare_data_to_receive(), can_out_callback_channel0(), and can_task().

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\
\r\n\
\n\r"

Referenced by main().