Class for communicating with an open collector output device.
function RelayOutputDevice(master:Master, deviceId:Number)This constructor creates a new object for communicating with an open collector output device.
master | contains a pointer to the master object, see Master. |
deviceId | is the unique device identifier which you can find on the board or using the Master.requestDeviceTable method of the Master. |
function requestSetOutput(side:String, gate:Number, state:Boolean)Use this method if you want to change the state of a seperate output.
gate | contains the output number, valid are 1 through 8. |
state | contains a boolean, true will turn the output on, while false will turn it off. |
function requestSetOutputs(mask:Number, states:Number)Use this method if you want to change the boolean state of a group of outputs.
mask | containing a 16-bit mask telling which outputs to change. |
states | containing a 16-bit value telling the new states of the outputs enable in the mask. |