Class CANdleConfiguration
- All Implemented Interfaces:
ParentConfiguration, Cloneable
CANdle.-
Field Summary
FieldsModifier and TypeFieldDescriptionConfigs related to general CANdle features.Custom Params.booleanTrue if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.Configs related to CANdle LED control. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()final StatusCodedeserialize(String to_deserialize) Take a string and deserialize it to this configuration.final StringGet the serialized form of this configuration.toString()final CANdleConfigurationwithCANdleFeatures(CANdleFeaturesConfigs newCANdleFeatures) Modifies this configuration's CANdleFeatures parameter and returns itself for method-chaining and easier to use config API.final CANdleConfigurationwithCustomParams(CustomParamsConfigs newCustomParams) Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API.final CANdleConfigurationwithLED(LEDConfigs newLED) Modifies this configuration's LED parameter and returns itself for method-chaining and easier to use config API.
-
Field Details
-
FutureProofConfigs
public boolean FutureProofConfigsTrue if we should factory default newer unsupported configs, false to leave newer unsupported configs alone.This flag addresses a corner case where the device may have firmware with newer configs that didn't exist when this version of the API was built. If this occurs and this flag is true, unsupported new configs will be factory defaulted to avoid unexpected behavior.
This is also the behavior in Phoenix 5, so this flag is defaulted to true to match.
-
CustomParams
Custom Params.Custom paramaters that have no real impact on controller.
Parameter list:
-
LED
Configs related to CANdle LED control.All the configs related to controlling LEDs with the CANdle, including LED strip type and brightness.
Parameter list:
-
CANdleFeatures
Configs related to general CANdle features.This includes configs such as disabling the 5V rail and the behavior of VBat output.
Parameter list:
-
-
Constructor Details
-
CANdleConfiguration
public CANdleConfiguration()
-
-
Method Details
-
withCustomParams
Modifies this configuration's CustomParams parameter and returns itself for method-chaining and easier to use config API.Custom Params.
Custom paramaters that have no real impact on controller.
Parameter list:
- Parameters:
newCustomParams- Parameter to modify- Returns:
- Itself
-
withLED
Modifies this configuration's LED parameter and returns itself for method-chaining and easier to use config API.Configs related to CANdle LED control.
All the configs related to controlling LEDs with the CANdle, including LED strip type and brightness.
Parameter list:
- Parameters:
newLED- Parameter to modify- Returns:
- Itself
-
withCANdleFeatures
Modifies this configuration's CANdleFeatures parameter and returns itself for method-chaining and easier to use config API.Configs related to general CANdle features.
This includes configs such as disabling the 5V rail and the behavior of VBat output.
Parameter list:
- Parameters:
newCANdleFeatures- Parameter to modify- Returns:
- Itself
-
toString
-
serialize
Get the serialized form of this configuration.- Specified by:
serializein interfaceParentConfiguration- Returns:
- Serialized form of this config group
-
deserialize
Take a string and deserialize it to this configuration.- Specified by:
deserializein interfaceParentConfiguration- Parameters:
to_deserialize- The serialized configuration- Returns:
- Return code of the deserialize method
-
clone
-