Class CANdleFeaturesConfigs
Configs related to general CANdle features.
This includes configs such as disabling the 5V rail and the behavior of VBat output.public class CANdleFeaturesConfigs : IParentConfiguration, ISerializable, ICloneable
- Inheritance
-
CANdleFeaturesConfigs
- Implements
- Inherited Members
Fields
Enable5VRail
Whether the 5V rail is enabled. Disabling the 5V rail will also turn off the onboard LEDs.
public Enable5VRailValue Enable5VRail
Field Value
StatusLedWhenActive
Whether the Status LED is enabled when the CANdle is actively being controlled.
public StatusLedWhenActiveValue StatusLedWhenActive
Field Value
VBatOutputMode
The behavior of the VBat output. CANdle supports modulating VBat output for single-color LED strips.
public VBatOutputModeValue VBatOutputMode
Field Value
Methods
Clone()
Creates a copy of this config group.
public CANdleFeaturesConfigs Clone()
Returns
Deserialize(string)
Deserialize string and put values into this object
public StatusCode Deserialize(string to_deserialize)
Parameters
to_deserializestringString to deserialize
Returns
- StatusCode
OK if deserialization is OK
Serialize()
Serialize this object into a string
public string Serialize()
Returns
- string
This object's data serialized into a string
ToString()
Provides the string representation of this object
public override string ToString()
Returns
WithEnable5VRail(Enable5VRailValue)
Modifies this configuration's Enable5VRail parameter and returns itself for method-chaining and easier to use config API.
Whether the 5V rail is enabled. Disabling the 5V rail will also turn off the onboard LEDs.public CANdleFeaturesConfigs WithEnable5VRail(Enable5VRailValue newEnable5VRail)
Parameters
newEnable5VRailEnable5VRailValueParameter to modify
Returns
- CANdleFeaturesConfigs
Itself
WithStatusLedWhenActive(StatusLedWhenActiveValue)
Modifies this configuration's StatusLedWhenActive parameter and returns itself for method-chaining and easier to use config API.
Whether the Status LED is enabled when the CANdle is actively being controlled.public CANdleFeaturesConfigs WithStatusLedWhenActive(StatusLedWhenActiveValue newStatusLedWhenActive)
Parameters
newStatusLedWhenActiveStatusLedWhenActiveValueParameter to modify
Returns
- CANdleFeaturesConfigs
Itself
WithVBatOutputMode(VBatOutputModeValue)
Modifies this configuration's VBatOutputMode parameter and returns itself for method-chaining and easier to use config API.
The behavior of the VBat output. CANdle supports modulating VBat output for single-color LED strips.public CANdleFeaturesConfigs WithVBatOutputMode(VBatOutputModeValue newVBatOutputMode)
Parameters
newVBatOutputModeVBatOutputModeValueParameter to modify
Returns
- CANdleFeaturesConfigs
Itself