Macros | Functions | Variables
CAN.cpp File Reference
#include "asf.h"
#include "CAN.h"
#include "globals.h"
Include dependency graph for CAN.cpp:

Go to the source code of this file.

Macros

#define MCAN_TEST_RECV_ID_EXT   0x100000A6
 
#define MCAN_TEST_RECV_ID_STD   0x126
 
#define MCAN_TEST_SEND_ID_EXT   0x100000A5
 
#define MCAN_TEST_SEND_ID_STD   0x125
 

Functions

void CAN_init (void)
 
uint8_t mcan_receive_message (uint32_t *id_value, uint8_t *data)
 
bool mcan_send_message (uint32_t id_value, uint8_t *data, uint32_t data_length)
 
int mcan_set_rx_filter (uint32_t id_value)
 
void mcan_test_master (void)
 
void mcan_test_slave (void)
 

Variables

static struct mcan_module mcan_instance
 

Macro Definition Documentation

◆ MCAN_TEST_RECV_ID_EXT

#define MCAN_TEST_RECV_ID_EXT   0x100000A6

Definition at line 22 of file CAN.cpp.

◆ MCAN_TEST_RECV_ID_STD

#define MCAN_TEST_RECV_ID_STD   0x126

Definition at line 21 of file CAN.cpp.

◆ MCAN_TEST_SEND_ID_EXT

#define MCAN_TEST_SEND_ID_EXT   0x100000A5

Definition at line 20 of file CAN.cpp.

◆ MCAN_TEST_SEND_ID_STD

#define MCAN_TEST_SEND_ID_STD   0x125

Definition at line 19 of file CAN.cpp.

Function Documentation

◆ CAN_init()

void CAN_init ( void  )

Definition at line 26 of file CAN.cpp.

◆ mcan_receive_message()

uint8_t mcan_receive_message ( uint32_t *  id_value,
uint8_t *  data 
)

Definition at line 78 of file CAN.cpp.

◆ mcan_send_message()

bool mcan_send_message ( uint32_t  id_value,
uint8_t *  data,
uint32_t  data_length 
)

Definition at line 40 of file CAN.cpp.

◆ mcan_set_rx_filter()

int mcan_set_rx_filter ( uint32_t  id_value)

Definition at line 125 of file CAN.cpp.

◆ mcan_test_master()

void mcan_test_master ( void  )

Definition at line 163 of file CAN.cpp.

◆ mcan_test_slave()

void mcan_test_slave ( void  )

Definition at line 215 of file CAN.cpp.

Variable Documentation

◆ mcan_instance

struct mcan_module mcan_instance
static

Definition at line 24 of file CAN.cpp.



inertial_sense_ros
Author(s):
autogenerated on Sun Feb 28 2021 03:17:58