#include <ctre/phoenix6/networking/Wrappers.hpp>
|
static uint32_t | CompileDeviceHash (int deviceID, const char *model, const char *canbus) |
| Creates the device hash from provided parameters. More...
|
|
static ctre::phoenix::StatusCode | Device_SetConfigValues (const char *network, int deviceHash, double timeoutSeconds, const std::string &serializedString, bool futureProofConfigs, bool overrideIfDuplicate) |
| Sets the config value of the device. More...
|
|
static ctre::phoenix::StatusCode | Device_GetConfigValues (const char *network, int deviceHash, double timeoutSeconds, std::string &serializedString) |
| Gets the config value of the device. More...
|
|
◆ CompileDeviceHash()
static uint32_t ctre::phoenix6::networking::Wrappers::CompileDeviceHash |
( |
int |
deviceID, |
|
|
const char * |
model, |
|
|
const char * |
canbus |
|
) |
| |
|
static |
Creates the device hash from provided parameters.
- Parameters
-
deviceID | Device ID |
model | Device Model |
canbus | CAN bus name |
- Returns
- Hash of the device
◆ Device_GetConfigValues()
static ctre::phoenix::StatusCode ctre::phoenix6::networking::Wrappers::Device_GetConfigValues |
( |
const char * |
network, |
|
|
int |
deviceHash, |
|
|
double |
timeoutSeconds, |
|
|
std::string & |
serializedString |
|
) |
| |
|
static |
Gets the config value of the device.
- Parameters
-
network | What network the device is on |
deviceHash | The hash of the device |
timeoutSeconds | How long to wait for the device to acknowledge in seconds |
serializedString | Serialized configs to get |
- Returns
- Status of the config set
◆ Device_SetConfigValues()
static ctre::phoenix::StatusCode ctre::phoenix6::networking::Wrappers::Device_SetConfigValues |
( |
const char * |
network, |
|
|
int |
deviceHash, |
|
|
double |
timeoutSeconds, |
|
|
const std::string & |
serializedString, |
|
|
bool |
futureProofConfigs, |
|
|
bool |
overrideIfDuplicate |
|
) |
| |
|
static |
Sets the config value of the device.
- Parameters
-
network | What network the device is on |
deviceHash | The hash of the device |
timeoutSeconds | How long to wait for the device to acknowledge in seconds |
serializedString | Serialized configs to set |
futureProofConfigs | True to factory default the configs before setting |
overrideIfDuplicate | True to always configure this parameter, even if we detect it's unnecessary |
- Returns
- Status of the config set
The documentation for this class was generated from the following file: