|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavaclient.PlayerDevice
javaclient.BlinkenlightInterface
public class BlinkenlightInterface
The blinkenlight interface is used to switch on and off a flashing indicator
light, and to set it's flash period.
This interface accepts no configuration requests.
| Field Summary |
|---|
| Fields inherited from class javaclient.PlayerDevice |
|---|
device, DIFFERENCE_SYNCH_FACTOR, index, is, os, pc, PLAYER_MAX_REQREP_SIZE, PLAYER_STXX, reserved, size, t_sec, t_usec, ts_sec, ts_usec |
| Constructor Summary | |
|---|---|
BlinkenlightInterface(PlayerClient pc,
short indexOfDevice)
Constructor for BlinkenlightInterface. |
|
| Method Summary | |
|---|---|
byte |
getEnable()
Returns the current blinking lights state (zero: disabled, non-zero: enabled). |
int |
getPeriod()
Returns the flash period (one whole on-off cycle) in milliseconds. |
void |
readData()
The blinkenlight data provides the current state of the indicator light. |
void |
set(byte ena,
int period)
Set the blinkenlight state and period. |
| Methods inherited from class javaclient.PlayerDevice |
|---|
getTimeForDataSampled_sec, getTimeForDataSampled_usec, getTimeForDataSampled, getTimeForDataSent_sec, getTimeForDataSent_usec, getTimeForDataSent, handleEARMessage, handleNARMessage, handleResponse, readHeader, sendHeader |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BlinkenlightInterface(PlayerClient pc,
short indexOfDevice)
pc - a reference to the PlayerClient objectindexOfDevice - the index of the device| Method Detail |
|---|
public void readData()
readData in class PlayerDevicepublic byte getEnable()
public int getPeriod()
public void set(byte ena,
int period)
ena - zero: disabled, non-zero: enabledperiod - flash period (one whole on-off cycle) in milliseconds
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||