|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IToneGenerator
Interface to represent a simple tone generator. Should have something like a real frequency response, to participate in this interface.
| Method Summary | |
|---|---|
void |
beep()
Deprecated. Please use startTone(double hz, int dur) instead |
void |
endTone()
Deprecated. Please use stopTone() instead |
double |
getFrequency()
Deprecated. |
void |
setDuration(int dur)
Deprecated. Please use startTone(double hz, int dur) instead |
void |
setFrequency(double hz)
Deprecated. please specify the desired frequency in the call to startTone() |
void |
startTone()
Deprecated. Please use startTone(double hz) instead |
void |
startTone(double hz)
start a tone at the specified frequency |
void |
startTone(double hz,
int dur)
start a tone at the specified frequency for the specified duration |
void |
stopTone()
stop current tone |
| Methods inherited from interface com.sun.spot.resources.transducers.ITransducer |
|---|
createSensorEvent, getDescription, getMaxSamplingRate, saveEventState |
| Methods inherited from interface com.sun.spot.resources.IResource |
|---|
addTag, getTags, getTagValue, hasTag, removeTag |
| Method Detail |
|---|
void startTone(double hz)
hz - value of frequency in Hertz
void startTone(double hz,
int dur)
hz - value of frequency in Hertzdur - the time of the duration in millisecondsvoid stopTone()
void setFrequency(double hz)
hz - value of frequency in Hertzdouble getFrequency()
void setDuration(int dur)
dur - the time of the duration in millisecondsvoid beep()
void startTone()
void endTone()
|
SunSPOT API V6.0 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||