|
ReduxLib C++ 2026.1.2
|
#include <MessageBus.h>
Public Member Functions | |
| MessageBus (uint16_t descriptorId) | |
| uint16_t | GetDescriptor () |
| bool | Equals (MessageBus other) |
Static Public Member Functions | |
| static MessageBus | ByBusString (std::string busString) |
Class representing message buses that may exist on a robot.
|
inline |
Constructs a new bus from a descriptor value.
0 is the Rio's onboard bus, and 0 through 4 inclusive are can_s0 through can_s4 on SystemCore.
| descriptorId | the bus descriptor value. |
|
static |
Constructs or fetches a bus by its bus string. If the bus is not opened, it will attempt to be opened.
If the bus cannot be opened, an error will be thrown.
| busString | bus string, e.g. "halcan", "socketcan:can_s0", or "slcan:115200:/dev/ttyAMA0" |
|
inline |
Returns whether two MessageBus objects refer to the same bus.
| other | other MessageBus object to compare against |
|
inline |
Returns the descriptor ID associated with the CAN bus object. Generally not needed to be used directly.