Sun SPOT API
Green Release  


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


Sun SPOT API
Green Release  


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