Static class for getting information about available CAN buses.
Definition: CANBus.hpp:18
static bool IsNetworkFD(std::string const &canbus)
Gets whether the CAN bus is a CAN FD network.
static CANBusStatus GetStatus(std::string const &canbus)
Gets the status of the CAN bus, including the bus utilization and the error counters.
Definition: string_util.hpp:15
Contains status information about a CAN bus.
Definition: CANBus.hpp:23
uint32_t TxFullCount
Transmit buffer full count.
Definition: CANBus.hpp:40
ctre::phoenix::StatusCode Status
Status code response of getting the data.
Definition: CANBus.hpp:27
float BusUtilization
CAN bus utilization, from 0.0 to 1.0.
Definition: CANBus.hpp:32
uint32_t BusOffCount
Bus off count.
Definition: CANBus.hpp:36
uint32_t REC
Receive Error Counter (REC)
Definition: CANBus.hpp:44
uint32_t TEC
Transmit Error Counter (TEC)
Definition: CANBus.hpp:48