CTRE Phoenix 6 C++ 26.3.0
Loading...
Searching...
No Matches
ctre::phoenix6::hardware::DeviceIdentifier Class Referencefinal

The unique identifier for a device. More...

#include <ctre/phoenix6/hardware/DeviceIdentifier.hpp>

Public Member Functions

 DeviceIdentifier ()=default
 
 DeviceIdentifier (int deviceID, std::string model, CANBus canbus)
 
std::string ToString () const
 

Public Attributes

std::string network
 
std::string model
 
int deviceID {-1}
 
uint32_t deviceHash
 

Detailed Description

The unique identifier for a device.

Constructor & Destructor Documentation

◆ DeviceIdentifier() [1/2]

ctre::phoenix6::hardware::DeviceIdentifier::DeviceIdentifier ( )
default

◆ DeviceIdentifier() [2/2]

ctre::phoenix6::hardware::DeviceIdentifier::DeviceIdentifier ( int deviceID,
std::string model,
CANBus canbus )

Member Function Documentation

◆ ToString()

std::string ctre::phoenix6::hardware::DeviceIdentifier::ToString ( ) const

Member Data Documentation

◆ deviceHash

uint32_t ctre::phoenix6::hardware::DeviceIdentifier::deviceHash

◆ deviceID

int ctre::phoenix6::hardware::DeviceIdentifier::deviceID {-1}

◆ model

std::string ctre::phoenix6::hardware::DeviceIdentifier::model

◆ network

std::string ctre::phoenix6::hardware::DeviceIdentifier::network

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