CTRE Phoenix 6 C++ 24.3.0
ctre::phoenix6::CANBus Class Reference

Static class for getting information about available CAN buses. More...

#include <ctre/phoenix6/CANBus.hpp>

Classes

struct  CANBusStatus
 Contains status information about a CAN bus. More...
 

Static Public Member Functions

static bool IsNetworkFD (std::string const &canbus)
 Gets whether the CAN bus is a CAN FD network. More...
 
static CANBusStatus GetStatus (std::string const &canbus)
 Gets the status of the CAN bus, including the bus utilization and the error counters. More...
 

Detailed Description

Static class for getting information about available CAN buses.

Member Function Documentation

◆ GetStatus()

static CANBusStatus ctre::phoenix6::CANBus::GetStatus ( std::string const &  canbus)
static

Gets the status of the CAN bus, including the bus utilization and the error counters.

Parameters
canbusName of the CAN bus
Returns
Status of the CAN bus

◆ IsNetworkFD()

static bool ctre::phoenix6::CANBus::IsNetworkFD ( std::string const &  canbus)
static

Gets whether the CAN bus is a CAN FD network.

Parameters
canbusName of the CAN bus
Returns
True if the CAN bus is CAN FD

The documentation for this class was generated from the following file: