CTRE Phoenix Pro C++ 23.0.12
ctre::phoenixpro::networking::Wrappers Class Reference

#include <ctre/phoenixpro/networking/Wrappers.hpp>

Static Public Member Functions

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...
 

Member Function Documentation

◆ 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
contextWhat context to use the hash in
deviceIDDevice ID
modelDevice 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
contextWhat context to set the config in
networkWhat network the device is on
deviceHashThe hash of the device
timeoutSecondsHow long to wait for the device to acknowledge in seconds
serializedStringSerialized 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
contextWhat context to set the config in
networkWhat network the device is on
deviceHashThe hash of the device
timeoutSecondsHow long to wait for the device to acknowledge in seconds
serializedStringSerialized configs to set
futureProofConfigsTrue to factory default the configs before setting
overrideIfDuplicateTrue 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: