#include <ctre/phoenixpro/networking/Wrappers.hpp>
|
static uint32_t | CompileDeviceHash (Context context, int deviceID, const char *model) |
| Creates the device hash from provided parameters. More...
|
|
static ctre::phoenix::StatusCode | Device_SetConfigValues (Context context, 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 (Context context, const char *network, int deviceHash, double timeoutSeconds, std::string &serializedString) |
| Gets the config value of the device. More...
|
|
◆ CompileDeviceHash()
static uint32_t ctre::phoenixpro::networking::Wrappers::CompileDeviceHash |
( |
Context |
context, |
|
|
int |
deviceID, |
|
|
const char * |
model |
|
) |
| |
|
static |
Creates the device hash from provided parameters.
- Parameters
-
context | What context to use the hash in |
deviceID | Device ID |
model | Device Model |
- Returns
- Hash of the device
◆ Device_GetConfigValues()
static ctre::phoenix::StatusCode ctre::phoenixpro::networking::Wrappers::Device_GetConfigValues |
( |
Context |
context, |
|
|
const char * |
network, |
|
|
int |
deviceHash, |
|
|
double |
timeoutSeconds, |
|
|
std::string & |
serializedString |
|
) |
| |
|
static |
Gets the config value of the device.
- Parameters
-
context | What context to set the config in |
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::phoenixpro::networking::Wrappers::Device_SetConfigValues |
( |
Context |
context, |
|
|
const char * |
network, |
|
|
int |
deviceHash, |
|
|
double |
timeoutSeconds, |
|
|
const std::string & |
serializedString, |
|
|
bool |
futureProofConfigs, |
|
|
bool |
overrideIfDuplicate |
|
) |
| |
|
static |
Sets the config value of the device.
- Parameters
-
context | What context to set the config in |
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: