|
BlinkenlightProxy Class Reference
[Proxies]
#include <playerclient.h>
Inherits ClientProxy.
List of all members.
Detailed Description
The BlinkenlightProxy class is used to enable and disable a flashing indicator light, and to set its period, via a blinkenlight device
Constructor & Destructor Documentation
BlinkenlightProxy::BlinkenlightProxy |
( |
PlayerClient * |
pc, |
|
|
unsigned short |
index, |
|
|
unsigned char |
access = 'c' |
|
) |
[inline] |
|
|
Constructor. Leave the access field empty to start unconnected. |
Member Function Documentation
void BlinkenlightProxy::FillData |
( |
player_msghdr_t |
hdr, |
|
|
const char * |
buffer |
|
) |
[virtual] |
|
|
All proxies must provide this method. It is used internally to parse new data when it is received.
Reimplemented from ClientProxy. |
void BlinkenlightProxy::Print |
( |
|
) |
[virtual] |
|
|
Print out the current status.
Reimplemented from ClientProxy. |
int BlinkenlightProxy::SetLight |
( |
bool |
enable, |
|
|
int |
period_ms |
|
) |
|
|
|
Set the state of the indicator light. A period of zero means the light will be unblinkingly on or off. Returns 0 on success, else -1. |
Member Data Documentation
|
true: indicator light enabled, false: disabled.
|
|
The current period (one whole on/off cycle) of the blinking light. If the period is zero and the light is enabled, the light is on. |
The documentation for this class was generated from the following file:
Generated on Tue May 3 14:15:47 2005 for Player by 1.3.6
|