com.sun.spot.sensorboard.hardware
Class SimpleSPIControlledIOChip
java.lang.Object
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
SimpleSPIControlledIOChip
public SimpleSPIControlledIOChip(ISPI spi)
- Constructor. Stores the SPI reference.
- Parameters:
spi
- the SPI
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
Copyright © 2006, 2007 Sun Microsystems, Inc. All Rights Reserved.