C# Class MosziNet.Devices.XBee.RelayDeviceBase

An abstract class that defines the relay basics.
Inheritance: HomeAutomation.Core.DeviceBase, IXBeeDevice
Exibir arquivo Open project: moszinet/HomeAutomation

Protected Properties

Property Type Description
switchStates byte[]

Public Methods

Method Description
ProcessFrame ( IXBeeFrame frame ) : void

Processes any frames sent to this device.

RelayDeviceBase ( Pins relayXBeePin1 ) : System.Collections.Generic
RelayDeviceBase ( Pins relayXBeePin1, Pins relayXBeePin2 ) : System.Collections.Generic
RelayDeviceBase ( Pins relayXBeePin1, Pins relayXBeePin2, Pins relayXBeePin3 ) : System.Collections.Generic
RelayDeviceBase ( Pins relayXBeePin1, Pins relayXBeePin2, Pins relayXBeePin3, Pins relayXBeePin4 ) : System.Collections.Generic
SetRelayState ( ushort relayIndex, byte state ) : void

This is a method that will be invoked by commands sent to the system.

Method Details

ProcessFrame() public method

Processes any frames sent to this device.
public ProcessFrame ( IXBeeFrame frame ) : void
frame IXBeeFrame
return void

RelayDeviceBase() public method

public RelayDeviceBase ( Pins relayXBeePin1 ) : System.Collections.Generic
relayXBeePin1 Pins
return System.Collections.Generic

RelayDeviceBase() public method

public RelayDeviceBase ( Pins relayXBeePin1, Pins relayXBeePin2 ) : System.Collections.Generic
relayXBeePin1 Pins
relayXBeePin2 Pins
return System.Collections.Generic

RelayDeviceBase() public method

public RelayDeviceBase ( Pins relayXBeePin1, Pins relayXBeePin2, Pins relayXBeePin3 ) : System.Collections.Generic
relayXBeePin1 Pins
relayXBeePin2 Pins
relayXBeePin3 Pins
return System.Collections.Generic

RelayDeviceBase() public method

public RelayDeviceBase ( Pins relayXBeePin1, Pins relayXBeePin2, Pins relayXBeePin3, Pins relayXBeePin4 ) : System.Collections.Generic
relayXBeePin1 Pins
relayXBeePin2 Pins
relayXBeePin3 Pins
relayXBeePin4 Pins
return System.Collections.Generic

SetRelayState() public method

This is a method that will be invoked by commands sent to the system.
public SetRelayState ( ushort relayIndex, byte state ) : void
relayIndex ushort
state byte
return void

Property Details

switchStates protected_oe property

protected byte[] switchStates
return byte[]