C# Class HA4IoT.Hardware.CCTools.CCToolsBoardBase

Inheritance: IDevice
Afficher le fichier Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Méthodes publiques

Méthode Description
CommitChanges ( bool force = false ) : void
FetchState ( ) : void

Compares the peeked state and the previous state and fires events if the state has changed. This method calls method PeekState automatically if the state is not peeked.

GetCommittedState ( ) : byte[]
GetState ( ) : byte[]
PeekState ( ) : void

Reads the current state from the port expander but does not fire any events. Call FetchState after all port expanders are polled (peeked) to fire the events.

SetState ( byte state ) : void

Méthodes protégées

Méthode Description
CCToolsBoardBase ( DeviceId id, IPortExpanderDriver portExpanderDriver ) : System
GetPort ( int number ) : CCToolsBoardPort

Private Methods

Méthode Description
GetPortState ( int pinNumber ) : BinaryState
JsonValueToByteArray ( JsonArray value ) : byte[]
SetPortState ( int pinNumber, BinaryState state ) : void

Method Details

CCToolsBoardBase() protected méthode

protected CCToolsBoardBase ( DeviceId id, IPortExpanderDriver portExpanderDriver ) : System
id DeviceId
portExpanderDriver IPortExpanderDriver
Résultat System

CommitChanges() public méthode

public CommitChanges ( bool force = false ) : void
force bool
Résultat void

FetchState() public méthode

Compares the peeked state and the previous state and fires events if the state has changed. This method calls method PeekState automatically if the state is not peeked.
public FetchState ( ) : void
Résultat void

GetCommittedState() public méthode

public GetCommittedState ( ) : byte[]
Résultat byte[]

GetPort() protected méthode

protected GetPort ( int number ) : CCToolsBoardPort
number int
Résultat CCToolsBoardPort

GetState() public méthode

public GetState ( ) : byte[]
Résultat byte[]

PeekState() public méthode

Reads the current state from the port expander but does not fire any events. Call FetchState after all port expanders are polled (peeked) to fire the events.
public PeekState ( ) : void
Résultat void

SetState() public méthode

public SetState ( byte state ) : void
state byte
Résultat void