This file contains basic functions for the AVR32 CAN, with support for all modes, settings and clock speeds.
Definition in file conf_can_task.h.
#include "avr32/io.h"
#include "compiler.h"
#include "can.h"
#include "board.h"
Go to the source code of this file.
Defines | |
| #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) |
Definition at line 61 of file conf_can_task.h.
| #define STDIO_USART_BAUDRATE 57600 |
Definition at line 66 of file conf_can_task.h.
| #define STDIO_USART_IRQ AVR32_USART2_IRQ |
Definition at line 67 of file conf_can_task.h.
| #define STDIO_USART_IRQ_LEVEL AVR32_INTC_INT1 |
Definition at line 68 of file conf_can_task.h.
| #define STDIO_USART_RX_FUNCTION AVR32_USART2_RXD_0_1_FUNCTION |
Definition at line 63 of file conf_can_task.h.
| #define STDIO_USART_RX_PIN AVR32_USART2_RXD_0_1_PIN |
Definition at line 62 of file conf_can_task.h.
| #define STDIO_USART_TX_FUNCTION AVR32_USART2_TXD_0_1_FUNCTION |
Definition at line 65 of file conf_can_task.h.
| #define STDIO_USART_TX_PIN AVR32_USART2_TXD_0_1_PIN |
Definition at line 64 of file conf_can_task.h.
| const char CAN_BusOFFIRQ[] |
Initial value:
"\n\r\ === Error: UC3C CAN Bus OFF IRQ Detected ===\n\r\ \n\r"
Definition at line 138 of file conf_can_task.h.
| const char CAN_Error[] |
Initial value:
"\n\r\ === Error: UC3C CAN Communication Error ===\n\r\ \n\r"
Definition at line 130 of file conf_can_task.h.
| const char CAN_Success[] |
Initial value:
"\n\r\ === OK: UC3C CAN Communication Success ===\n\r\ \n\r"
Definition at line 126 of file conf_can_task.h.
| const char CAN_WakeUpIRQ[] |
Initial value:
"\n\r\ === Error: UC3C CAN Wake Up IRQ Detected ===\n\r\ \n\r"
Definition at line 134 of file conf_can_task.h.
| 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"
Definition at line 161 of file conf_can_task.h.
| 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"
Definition at line 157 of file conf_can_task.h.
| can_msg_t msg_rx_listening |
Initial value:
{
{
{
.id = 0,
.id_mask = 0,
},
},
.data.u64 = 0x0LL,
}
Definition at line 110 of file conf_can_task.h.
| can_msg_t msg_tx_sot |
Initial value:
{
{
{
.id = 0x133,
.id_mask = 0x1ff,
},
},
.data.u64 = 0x0102030405060708LL,
}
Definition at line 80 of file conf_can_task.h.
| can_mob_t pCANMOB_message0[10] |
Initial value:
{
{
CAN_MOB_NOT_ALLOCATED,
&msg_tx_sot,
8,
CAN_DATA_FRAME,
CAN_STATUS_NOT_COMPLETED
},
}
Definition at line 92 of file conf_can_task.h.
Referenced by can_example_prepare_data_to_send().
| can_mob_t pCANMOB_message2[1] |
Initial value:
{
{CAN_MOB_NOT_ALLOCATED,&msg_rx_listening,0,CAN_DATA_FRAME,CAN_STATUS_NOT_COMPLETED}
}
Definition at line 122 of file conf_can_task.h.
Referenced by can_example_prepare_data_to_receive(), can_out_callback_channel0(), can_task(), and lin_master_cb_task_ID12().
| 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"
Definition at line 142 of file conf_can_task.h.
1.5.5