ESTSettingGPIOConfigPort1

@interface ESTSettingGPIOConfigPort1 : ESTSettingReadWrite <NSCopying>

ESTSettingGPIOConfigPort1 represents GPIO ConfigPort1 value.

  • Designated initializer. Validates provided value internally with +validationErrorForValue:.

    See

    +[ESTSettingGPIOConfigPort1 validationErrorForValue:]

    Declaration

    Objective-C

    - (nullable instancetype)initWithValue:(ESTGPIOConfig)config;

    Swift

    init?(value config: ESTGPIOConfig)

    Parameters

    config

    GPIO ConfigPort1 value.

    Return Value

    Initialized object. Nil if validation fails.

  • Returns current value of GPIO ConfigPort1 setting.

    Declaration

    Objective-C

    - (ESTGPIOConfig)getValue;

    Swift

    func getValue() -> ESTGPIOConfig

    Return Value

    GPIO ConfigPort1 value.

  • Method allows to read value of initialized GPIO ConfigPort1 setting object.

    Declaration

    Objective-C

    - (void)readValueWithCompletion:
        (nonnull ESTSettingGPIOConfigPort1CompletionBlock)completion;

    Swift

    func readValue(completion: @escaping ESTSettingGPIOConfigPort1CompletionBlock)

    Parameters

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

  • Method allows to create write operation from already initialized GPIO ConfigPort1 setting object. Value provided during initialization will be used as a desired value.

    Declaration

    Objective-C

    - (void)writeValue:(ESTGPIOConfig)config
            completion:(nonnull ESTSettingGPIOConfigPort1CompletionBlock)completion;

    Swift

    func writeValue(_ config: ESTGPIOConfig, completion: @escaping ESTSettingGPIOConfigPort1CompletionBlock)

    Parameters

    config

    ConfigPort1 value to be written to the device.

    completion

    Block to be invoked when operation is complete.

    Return Value

    Initialized operation object.

  • Method checks if provided value is allowed. Returns nil if validation passes.

    Declaration

    Objective-C

    + (NSError *_Nullable)validationErrorForValue:(ESTGPIOConfig)config;

    Swift

    class func validationError(forValue config: ESTGPIOConfig) -> Error?

    Parameters

    config

    ConfigPort1 value.

    Return Value

    Error object describing why validation failed. Nil if validation passes.