|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
void |
queryDigitalInputState(int port)
Queries the device for the current state of a digital input. |
void |
sendIR(int port,
int handle,
int freq,
int repeat,
int offset,
int[] states)
Control of IR devices is accomplished through this method. |
void |
sendRS232(byte[] data)
This method will send RS232 data to the IP port assigned to this GlobalCache RS232 module. |
void |
setRelayState(int port,
boolean state)
Sets the current state of a relay. |
void |
stopIR(int port)
Stops/halts a repeating IR transmission. |
Methods inherited from interface com.amx.duet.devicesdk.component.IUtilityComponent2 |
getUtilityComponent, getUtilityComponentCount |
Methods inherited from interface com.amx.duet.devicesdk.component.IUtilityComponent |
addUtilityComponentListener, removeUtilityComponentListener |
Method Detail |
public void sendIR(int port, int handle, int freq, int repeat, int offset, int[] states)
The handle parameter is an unique identifier, chosen by you, for the IR command.
The frequency parameter is in hertz.
The repeat parameter will send the IR command the number of times specified. A value of 0 will repeat the IR pattern until halted or it has been repeated 65535 times.
The offset is used if the repeat count is greater than 1. Used for IR commands that have a preamble in order to avoid repeating the preamble during repeated IR timing patterns. The offset is always an odd value.
The states integer array stores the On and Off periods of the carry frequency. There must be an equal number of On and Off carry frequencies. Each On and Off carry frequency takes values from 1..65635. The first element in the array is always an On carry state followed by an Off carry state in the second position and then another On state in the third position followed by an Off state in the forth and so on....
port
- [1..3]handle
- [0..65535]freq
- [20000..250000]repeat
- [0..31]offset
- [1,3,5,7,9,11,..,511] - odd only -states
- public void stopIR(int port)
port
- [1..3]public void queryDigitalInputState(int port)
port
- [1..3]public void setRelayState(int port, boolean state)
port
- [1..3]state
- public void sendRS232(byte[] data)
data
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |