Package jmri.jmrix.anyma
Class AnymaDMX_TrafficController
java.lang.Object
jmri.jmrix.anyma.AnymaDMX_TrafficController
Traffic controller for Anyma DMX.
- Since:
- 4.9.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMake connection to existing PortController (adapter) object.voiddispose()Clean up threads and local storage.voidsetChannelRangeValues(int from, int to, byte[] buf) set the values for a range of channelsvoidsetChannelValue(int channel, byte value) set a channel's value
-
Constructor Details
-
AnymaDMX_TrafficController
public AnymaDMX_TrafficController()Create a new AnymaTrafficController instance.
-
-
Method Details
-
connectPort
Make connection to existing PortController (adapter) object.- Parameters:
p- the AnymaDMX_UsbPortAdapter we're connecting to
-
setChannelValue
set a channel's value- Parameters:
channel- the channel (1 - 512 inclusive)value- the value
-
setChannelRangeValues
set the values for a range of channels- Parameters:
from- the beginning index (inclusive)to- the ending index (inclusive)buf- the data to send note: the from/to indexes are 1-512 (inclusive)
-
dispose
Clean up threads and local storage.
-