|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Hold current status of one A/D channel.
Clients interested in changes on channel values should
register as ChannelListeners using the addChannelListener()
method.
Method Summary | |
void |
addChannelListener(ChannelListener l)
Add a listener to this channel. |
int |
getChannelNo()
Get channel number. |
int |
getMode()
Get measurement mode of channel. |
double |
getNormalizedValue()
Get last normalized value read from channel. |
int |
getRawValue()
Get last raw value read from channel. |
int |
getResolution()
Get resolution of channel. |
int |
getSampleCount()
Get oversample count of channel. |
boolean |
isActive()
Get activation status. |
boolean |
read()
Read a new value from channel. |
void |
removeChannelListener(ChannelListener l)
Remove a listener to this channel. |
void |
setActive(boolean b)
Set activation status. |
void |
setMode(int mode)
Set measurement mode of channel. |
void |
setResolution(int resolution)
Set resolution of channel. |
void |
setSampleCount(int count)
Set oversample count of channel. |
Method Detail |
public int getChannelNo()
public boolean isActive()
public void setActive(boolean b)
b
- true if channel is to be automatically polled, false otherwisepublic int getMode()
public int getResolution()
public void setMode(int mode)
public void setResolution(int resolution)
public int getRawValue()
public double getNormalizedValue()
public boolean read() throws java.io.IOException
public void addChannelListener(ChannelListener l)
public void removeChannelListener(ChannelListener l)
public int getSampleCount()
read()
to overcome problems with
jittery input.public void setSampleCount(int count)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |