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 |
Namespace for CAN debugging functions.
| void Debug_CAN::initialize | ( | MCP2515 * | can | ) |
Initializes the Debug_CAN interface. It should be called before using any other Debug_CAN functions.
| can | Pointer to the MCP2515 CAN controller instance. |
Definition at line 26 of file Debug_can.cpp.
References can_interface.
Referenced by setup().
| 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.
| id | CAN message ID |
| data0 | Byte 0 of CAN data (default 0x00) |
| data1 | Byte 1 of CAN data (default 0x00) |
| data2 | Byte 2 of CAN data (default 0x00) |
| data3 | Byte 3 of CAN data (default 0x00) |
| data4 | Byte 4 of CAN data (default 0x00) |
| data5 | Byte 5 of CAN data (default 0x00) |
| data6 | Byte 6 of CAN data (default 0x00) |
| data7 | Byte 7 of CAN data (default 0x00) |
Definition at line 46 of file Debug_can.cpp.
References can_interface.
Referenced by DBG_GENERAL_CAN().
|
extern |
Pointer to the MCP2515 CAN controller instance.
Definition at line 18 of file Debug_can.cpp.
Referenced by initialize(), and send_message().