CTRE Phoenix 6 C++ 26.3.0
Loading...
Searching...
No Matches
DeviceIdentifier.hpp
Go to the documentation of this file.
1/*
2 * Copyright (C) Cross The Road Electronics.  All rights reserved.
3 * License information can be found in CTRE_LICENSE.txt
4 * For support and suggestions contact support@ctr-electronics.com or file
5 * an issue tracker at https://github.com/CrossTheRoadElec/Phoenix-Releases
6 */
7#pragma once
8
10#include <stdint.h>
11
12namespace ctre {
13namespace phoenix6 {
14namespace hardware {
15
16 /**
17 * \brief The unique identifier for a device.
18 */
19 class DeviceIdentifier final {
20 public:
21 std::string network;
22 std::string model;
23 int deviceID{-1};
24 uint32_t deviceHash;
25
26 DeviceIdentifier() = default;
27 DeviceIdentifier(int deviceID, std::string model, CANBus canbus);
28
29 std::string ToString() const;
30 };
31
32}
33}
34}
Class for getting information about an available CAN bus.
Definition CANBus.hpp:19
The unique identifier for a device.
Definition DeviceIdentifier.hpp:19
std::string model
Definition DeviceIdentifier.hpp:22
DeviceIdentifier(int deviceID, std::string model, CANBus canbus)
int deviceID
Definition DeviceIdentifier.hpp:23
uint32_t deviceHash
Definition DeviceIdentifier.hpp:24
std::string network
Definition DeviceIdentifier.hpp:21
Definition motor_constants.h:14