Sun SPOT API
Green Release  


com.sun.spot.sensorboard.capabilities
Interface ISwitchController

All Known Subinterfaces:
IDemoBoard
All Known Implementing Classes:
EDemoBoard

public interface ISwitchController

Controller interface of a Switch Controller

Author:
arshan

Method Summary
 ISwitch bindSwitch(PinDescriptor pidx)
          Register pin and return accessor object for switch
 boolean getSwitchState(PinDescriptor pidx)
          Ask the controller for current switch state.
 

Method Detail

bindSwitch

ISwitch bindSwitch(PinDescriptor pidx)
Register pin and return accessor object for switch

Parameters:
pidx - pin that switch is attached to
Returns:
switch accessor object

getSwitchState

boolean getSwitchState(PinDescriptor pidx)
Ask the controller for current switch state.

Parameters:
pidx - pin that switch is attached to
Returns:
current state of switch

Sun SPOT API
Green Release  


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