#include <CANHandler.h>
|
| static void | printMsg (CANMessage &msg) |
| | Prints a CANMessage nicely.
|
| |
◆ CANBus
| Enumerator |
|---|
| CANBUS_1 | |
| CANBUS_2 | |
| NOBUS | |
◆ CANHandler() [1/2]
| CANHandler::CANHandler |
( |
| ) |
|
|
inline |
◆ CANHandler() [2/2]
| CANHandler::CANHandler |
( |
PinName |
canRx, |
|
|
PinName |
canTx |
|
) |
| |
|
inline |
◆ attach()
| void CANHandler::attach |
( |
Callback< void()> |
func, |
|
|
CAN::IrqType |
type = CAN::IrqType::RxIrq |
|
) |
| |
|
inline |
◆ getCAN()
| CAN * CANHandler::getCAN |
( |
| ) |
|
|
inline |
◆ getFeedback()
| bool CANHandler::getFeedback |
( |
int * |
id, |
|
|
uint8_t |
bytes[], |
|
|
int |
canbus |
|
) |
| |
|
inline |
Get feedback back from the motor.
◆ printMsg()
| static void CANHandler::printMsg |
( |
CANMessage & |
msg | ) |
|
|
inlinestatic |
Prints a CANMessage nicely.
- Parameters
-
◆ rawRead()
| bool CANHandler::rawRead |
( |
int * |
id, |
|
|
uint8_t |
bytes[], |
|
|
int |
length |
|
) |
| |
|
inline |
◆ rawSend()
| bool CANHandler::rawSend |
( |
int |
id, |
|
|
int8_t |
bytes[] |
|
) |
| |
|
inline |
Raw sending of CAN Messages.
- Parameters
-
| id | the CAN ID you're sending to |
| bytes | the bytes you're sending (8) |
| bus | the bus you're sending the CAN messages to |
◆ updateCANs()
| void CANHandler::updateCANs |
( |
PinName |
canRx, |
|
|
PinName |
canTx |
|
) |
| |
|
inline |
◆ can
◆ exists
| bool CANHandler::exists = false |
The documentation for this class was generated from the following file: