C# Class HA4IoT.Hardware.CCTools.CCToolsBoardPort

Inheritance: IBinaryInput, IBinaryOutput
Show file Open project: chkr1011/CK.HomeAutomation Class Usage Examples

Public Methods

Method Description
CCToolsBoardPort ( int number, CCToolsBoardBase board ) : System
Read ( ) : BinaryState
WithInvertedState ( ) : CCToolsBoardPort
Write ( BinaryState state, bool commit ) : void

Private Methods

Method Description
CoerceState ( BinaryState state ) : BinaryState
IBinaryInput ( bool value ) : IBinaryInput
IBinaryOutput ( bool value ) : IBinaryOutput
OnControllerStateChanged ( object sender, IOBoardStateChangedEventArgs e ) : void

Method Details

CCToolsBoardPort() public method

public CCToolsBoardPort ( int number, CCToolsBoardBase board ) : System
number int
board CCToolsBoardBase
return System

Read() public method

public Read ( ) : BinaryState
return BinaryState

WithInvertedState() public method

public WithInvertedState ( ) : CCToolsBoardPort
return CCToolsBoardPort

Write() public method

public Write ( BinaryState state, bool commit ) : void
state BinaryState
commit bool
return void