SunSPOT API V3.0


com.sun.spot.sensorboard.hardware
Class SimpleSPIControlledIOChip

java.lang.Object
  extended by com.sun.spot.sensorboard.hardware.SimpleSPIControlledIOChip
All Implemented Interfaces:
ISPIControlledIOChip
Direct Known Subclasses:
ADT7411

public class SimpleSPIControlledIOChip
extends Object
implements ISPIControlledIOChip

Abstract class for SPI IO chips. Its main responsibility is the management of claiming pins and holding an SPI reference.

Author:
jn151271 11-Mar-2005

Constructor Summary
SimpleSPIControlledIOChip(ISPI spi)
          Constructor.
 
Method Summary
 int claimedPins()
           
 void claimPin(int pinNumber)
           
 ISPI getSPI()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleSPIControlledIOChip

public SimpleSPIControlledIOChip(ISPI spi)
Constructor. Stores the SPI reference.

Parameters:
spi - the SPI
Method Detail

getSPI

public ISPI getSPI()
Specified by:
getSPI in interface ISPIControlledIOChip
Returns:
An ISPI interface to the chip.
See Also:
ISPIControlledIOChip.getSPI()

claimPin

public void claimPin(int pinNumber)
Specified by:
claimPin in interface ISPIControlledIOChip
Parameters:
pinNumber - number of the pin to be claimed.
See Also:
ISPIControlledIOChip.claimPin(int)

claimedPins

public int claimedPins()
Specified by:
claimedPins in interface ISPIControlledIOChip
Returns:
the currently claimed pins

SunSPOT API V3.0


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