Red Bird Racing VCU v2
 
Loading...
Searching...
No Matches
Debug_CAN Namespace Reference

Namespace for CAN debugging functions. More...

Functions

void initialize (MCP2515 *can_interface)
 Initializes the Debug_CAN interface. It should be called before using any other Debug_CAN functions.
 
void send_message (canid_t id, uint8_t data0=0x00, uint8_t data1=0x00, uint8_t data2=0x00, uint8_t data3=0x00, uint8_t data4=0x00, uint8_t data5=0x00, uint8_t data6=0x00, uint8_t data7=0x00)
 Sends arbitrary debug data via CAN with specified message ID and data bytes.
 

Variables

MCP2515 * can_interface = nullptr
 

Detailed Description

Namespace for CAN debugging functions.

Function Documentation

◆ initialize()

void Debug_CAN::initialize ( MCP2515 *  can)

Initializes the Debug_CAN interface. It should be called before using any other Debug_CAN functions.

Parameters
canPointer to the MCP2515 CAN controller instance.

Definition at line 26 of file Debug_can.cpp.

References can_interface.

Referenced by setup().

Here is the caller graph for this function:

◆ send_message()

void Debug_CAN::send_message ( canid_t  id,
uint8_t  data0 = 0x00,
uint8_t  data1 = 0x00,
uint8_t  data2 = 0x00,
uint8_t  data3 = 0x00,
uint8_t  data4 = 0x00,
uint8_t  data5 = 0x00,
uint8_t  data6 = 0x00,
uint8_t  data7 = 0x00 
)

Sends arbitrary debug data via CAN with specified message ID and data bytes.

Parameters
idCAN message ID
data0Byte 0 of CAN data (default 0x00)
data1Byte 1 of CAN data (default 0x00)
data2Byte 2 of CAN data (default 0x00)
data3Byte 3 of CAN data (default 0x00)
data4Byte 4 of CAN data (default 0x00)
data5Byte 5 of CAN data (default 0x00)
data6Byte 6 of CAN data (default 0x00)
data7Byte 7 of CAN data (default 0x00)

Definition at line 46 of file Debug_can.cpp.

References can_interface.

Referenced by DBG_GENERAL_CAN().

Here is the caller graph for this function:

Variable Documentation

◆ can_interface

MCP2515 * Debug_CAN::can_interface = nullptr
extern

Pointer to the MCP2515 CAN controller instance.

Definition at line 18 of file Debug_can.cpp.

Referenced by initialize(), and send_message().