Class TCustomGPIO

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomGPIO = class abstract(TObject)

Description

Abstract GPIO (General Purpose Input / Output) manager.

Hierarchy

  • TObject
  • TCustomGPIO

Overview

Methods

Protected function GetPinDrive(const Pin: TPinIdentifier): TPinDrive; virtual; abstract;
Protected function GetPinMode(const Pin: TPinIdentifier): TPinMode; virtual; abstract;
Protected function GetPinValue(const Pin: TPinIdentifier): TPinValue; virtual; abstract;
Public procedure SetMux(const Pin: TPinIdentifier; const Value: TPinValue);
Protected procedure SetPinDrive(const Pin: TPinIdentifier; const Value: TPinDrive); virtual; abstract;
Protected procedure SetPinMode(const Pin: TPinIdentifier; const Value: TPinMode); virtual; abstract;
Protected procedure SetPinValue(const Pin: TPinIdentifier; const Value: TPinValue); virtual; abstract;

Properties

Public property PinDrive[constPin:TPinIdentifier]: TPinDrive read GetPinDrive write SetPinDrive;
Public property PinMode[constPin:TPinIdentifier]: TPinMode read GetPinMode write SetPinMode;
Public property PinValue[constPin:TPinIdentifier]: TPinValue read GetPinValue write SetPinValue;

Description

Methods

Protected function GetPinDrive(const Pin: TPinIdentifier): TPinDrive; virtual; abstract;

Returns current drive mode (pull-up/pull-down) for the specified pin number.

Protected function GetPinMode(const Pin: TPinIdentifier): TPinMode; virtual; abstract;

Returns current mode for the specified pin number.

Protected function GetPinValue(const Pin: TPinIdentifier): TPinValue; virtual; abstract;

Returns current value for the specified pin number, both for input and output modes.

Public procedure SetMux(const Pin: TPinIdentifier; const Value: TPinValue);

Configures the specified pin for output and with the specified value, typically used for configuring multiplexers.

Protected procedure SetPinDrive(const Pin: TPinIdentifier; const Value: TPinDrive); virtual; abstract;

Specifies new drive mode (pull-up/pull-down) for the specified pin number.

Protected procedure SetPinMode(const Pin: TPinIdentifier; const Value: TPinMode); virtual; abstract;

Changes mode for the specified pin number, as long as new mode is different than the current one.

Protected procedure SetPinValue(const Pin: TPinIdentifier; const Value: TPinValue); virtual; abstract;

Changes value for the specified pin number, as long as new value is different than the current one.

Properties

Public property PinDrive[constPin:TPinIdentifier]: TPinDrive read GetPinDrive write SetPinDrive;

Currently set drive mode (pull-up/pull-down) for the specified pin number.

Public property PinMode[constPin:TPinIdentifier]: TPinMode read GetPinMode write SetPinMode;

Currently set mode for the specified pin number.

Public property PinValue[constPin:TPinIdentifier]: TPinValue read GetPinValue write SetPinValue;

Currently set signal value for the specified pin number.


Copyright © 2000 - 2017 Yuriy Kotsarenko. Help files generated by PasDoc.