SunSPOT API V2.0


com.sun.spot.sensorboard.capabilities
Interface IToneGeneratorController

All Known Subinterfaces:
IDemoBoard
All Known Implementing Classes:
EDemoBoard

public interface IToneGeneratorController

Controller interface for ToneGenerator

Author:
arshan

Method Summary
 IToneGenerator bindToneGenerator(PinDescriptor pidx)
          Register a pin as a tone generator and return the accessor object
 void setTone(PinDescriptor pidx, int period)
          start the tone generator, period of 0 means stop tone
 

Method Detail

bindToneGenerator

IToneGenerator bindToneGenerator(PinDescriptor pidx)
Register a pin as a tone generator and return the accessor object

Parameters:
pidx - pin to register
Returns:
accessor object

setTone

void setTone(PinDescriptor pidx,
             int period)
start the tone generator, period of 0 means stop tone


SunSPOT API V2.0


Copyright © 2007 Sun Microsystems, Inc. All Rights Reserved.