ESTSettingGPIO0StateReflectingOnLEDEnable
@interface ESTSettingGPIO0StateReflectingOnLEDEnable
: ESTSettingReadWrite <NSCopying>
ESTSettingGPIO0StateReflectingOnLED represents GPIO0StateReflectingOnLEDEnable value.
-
Designated initializer. Validates provided value internally with +validationErrorForValue:.
See
+[ESTSettingGPIO0StateReflectingOnLED validationErrorForValue:]
Declaration
Objective-C
- (nonnull instancetype)initWithValue:(BOOL)gpio0StateReflectingOnLEDEnable;
Swift
init(value gpio0StateReflectingOnLEDEnable: Bool)
Parameters
gpio0StateReflectingOnLEDEnable
GPIO0StateReflectingOnLEDEnable value.
Return Value
Initialized object. Nil if validation fails.
-
Returns current value of GPIO0StateReflectingOnLEDEnable setting.
Declaration
Objective-C
- (BOOL)getValue;
Swift
func getValue() -> Bool
Return Value
GPIO0StateReflectingOnLEDEnable value.
-
Method allows to read value of initialized GPIO0StateReflectingOnLEDEnable setting object.
Declaration
Objective-C
- (void)readValueWithCompletion: (nonnull ESTSettingGPIO0StateReflectingOnLEDCompletionBlock)completion;
Swift
func readValue(completion: @escaping ESTSettingGPIO0StateReflectingOnLEDCompletionBlock)
Parameters
completion
Block to be invoked when operation is complete.
-
Method allows to create write operation from already initialized GPIO0StateReflectingOnLEDEnable setting object. Value provided during initialization will be used as a desired value.
Declaration
Objective-C
- (void)writeValue:(BOOL)gpio0StateReflectingOnLEDEnable completion:(nonnull ESTSettingGPIO0StateReflectingOnLEDCompletionBlock) completion;
Swift
func writeValue(_ gpio0StateReflectingOnLEDEnable: Bool, completion: @escaping ESTSettingGPIO0StateReflectingOnLEDCompletionBlock)
Parameters
gpio0StateReflectingOnLEDEnable
GPIO Config 0 state reflecting on LED value to be written to the device.
completion
Block to be invoked when operation is complete.
-
Method checks if provided value is allowed. Returns nil if validation passes.
Declaration
Objective-C
+ (NSError *_Nullable)validationErrorForValue: (BOOL)gpio0StateReflectingOnLEDEnable;
Swift
class func validationError(forValue gpio0StateReflectingOnLEDEnable: Bool) -> Error?
Parameters
gpio0StateReflectingOnLEDEnable
GPIO Config 0 StateReflectingOnLEDEnable value.
Return Value
Error object describing why validation failed. Nil if validation passes.