C# 클래스 HA4IoT.Hardware.CCTools.CCToolsBoardBase

상속: IDevice
파일 보기 프로젝트 열기: chkr1011/CK.HomeAutomation 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
CCToolsBoardBase ( DeviceId id, IPortExpanderDriver portExpanderDriver ) : System
GetPort ( int number ) : CCToolsBoardPort

비공개 메소드들

메소드 설명
GetPortState ( int pinNumber ) : BinaryState
JsonValueToByteArray ( JsonArray value ) : byte[]
SetPortState ( int pinNumber, BinaryState state ) : void

메소드 상세

CCToolsBoardBase() 보호된 메소드

protected CCToolsBoardBase ( DeviceId id, IPortExpanderDriver portExpanderDriver ) : System
id DeviceId
portExpanderDriver IPortExpanderDriver
리턴 System

CommitChanges() 공개 메소드

public CommitChanges ( bool force = false ) : void
force bool
리턴 void

FetchState() 공개 메소드

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
리턴 void

GetCommittedState() 공개 메소드

public GetCommittedState ( ) : byte[]
리턴 byte[]

GetPort() 보호된 메소드

protected GetPort ( int number ) : CCToolsBoardPort
number int
리턴 CCToolsBoardPort

GetState() 공개 메소드

public GetState ( ) : byte[]
리턴 byte[]

PeekState() 공개 메소드

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
리턴 void

SetState() 공개 메소드

public SetState ( byte state ) : void
state byte
리턴 void