SunSPOT API V3.0


com.sun.spot.peripheral
Interface ISpotPins


public interface ISpotPins

Interface to provide PIOPin objects representing pins assigned to various external functions on the Spot board. This allows the state of the physical pins to be read or written.

Author:
Syntropy

Method Summary
 PIOPin getAttentionPin()
          The pin used by the power control PowerController to signal to the 9200
 PIOPin getBD_REV0()
          The low-order bit of the hardware rev
 PIOPin getBD_REV1()
          The mid-order bit of the hardware rev
 PIOPin getBD_REV2()
          The high-order bit of the hardware rev
 PIOPin getCC2420_CCA_Pin()
          The Channel Clear pin of the CC2420
 PIOPin getCC2420_FIFO_Pin()
          The FIFO empty pin of the CC2420
 PIOPin getCC2420_FIFOP_Pin()
          The FIFO threshold reached pin of the CC2420
 PIOPin getCC2420_RESET_Pin()
          The reset pin of the CC2420
 PIOPin getCC2420_SFD_Pin()
          The Start of Frame Delimiter pin of the CC2420
 PIOPin getCC2420_VREG_EN_Pin()
          The voltage regulator enable pin of the CC2420
 PIOPin getLocalGreenLEDPin()
          Return the pin controlling the green LED on the Spot board.
 PIOPin getLocalRedLEDPin()
          Return the pin controlling the red LED on the Spot board.
 int getPinsNotAvailableToPIO(int pio)
          Return the pins not available to the given PIO because they are used for low-level functions (i.e. are not to be controlled by Java).
 PIOPin getSPI_CLK_Pin()
          Returns the SPI CLK (clock) pin.
 PIOPin getSPI_MISO_Pin()
          Returns the SPI MISO (master in/slave out) pin.
 PIOPin getSPI_MOSI_Pin()
          Returns the SPI MOSI (master out/slave in) pin.
 PIOPin getTC_TCLK(int tcNum)
          The clock input pin for a timer-counter
 PIOPin getTC_TIOA(int tcNum)
          The A pin for a timer-counter
 PIOPin getTC_TIOB(int tcNum)
          The B pin for a timer-counter
 PIOPin getUSB_EN()
          The pin used to select USB "suspend" mode in the LTC3455
 PIOPin getUSB_HP()
          The pin used to select USB high power mode of the LTC3455
 PIOPin getUSB_PWR_MON()
          The pin used to monitor power on the USB connector
 

Method Detail

getAttentionPin

PIOPin getAttentionPin()
The pin used by the power control PowerController to signal to the 9200

Returns:
the pin

getUSB_HP

PIOPin getUSB_HP()
The pin used to select USB high power mode of the LTC3455

Returns:
the pin

getUSB_EN

PIOPin getUSB_EN()
The pin used to select USB "suspend" mode in the LTC3455

Returns:
the pin

getUSB_PWR_MON

PIOPin getUSB_PWR_MON()
The pin used to monitor power on the USB connector

Returns:
the pin

getCC2420_CCA_Pin

PIOPin getCC2420_CCA_Pin()
The Channel Clear pin of the CC2420

Returns:
Returns the CC2420_CCA_Pin.

getCC2420_FIFO_Pin

PIOPin getCC2420_FIFO_Pin()
The FIFO empty pin of the CC2420

Returns:
Returns the CC2420_FIFO_Pin.

getCC2420_FIFOP_Pin

PIOPin getCC2420_FIFOP_Pin()
The FIFO threshold reached pin of the CC2420

Returns:
Returns the CC2420_FIFOP_Pin.

getCC2420_RESET_Pin

PIOPin getCC2420_RESET_Pin()
The reset pin of the CC2420

Returns:
Returns the CC2420_RESET_Pin.

getCC2420_SFD_Pin

PIOPin getCC2420_SFD_Pin()
The Start of Frame Delimiter pin of the CC2420

Returns:
Returns the CC2420_SFD_Pin.

getCC2420_VREG_EN_Pin

PIOPin getCC2420_VREG_EN_Pin()
The voltage regulator enable pin of the CC2420

Returns:
Returns the CC2420_VREG_EN_Pin.

getLocalGreenLEDPin

PIOPin getLocalGreenLEDPin()
Return the pin controlling the green LED on the Spot board.

Returns:
Returns the localGreenLEDPin.

getLocalRedLEDPin

PIOPin getLocalRedLEDPin()
Return the pin controlling the red LED on the Spot board.

Returns:
Returns the localRedLEDPin.

getPinsNotAvailableToPIO

int getPinsNotAvailableToPIO(int pio)
Return the pins not available to the given PIO because they are used for low-level functions (i.e. are not to be controlled by Java).

Parameters:
pio - the PIO whose unavailable pins are to be queried
Returns:
Returns the pins not available to pio.

getSPI_CLK_Pin

PIOPin getSPI_CLK_Pin()
Returns the SPI CLK (clock) pin.

Returns:
Returns the SPI_CLK_Pin.

getSPI_MISO_Pin

PIOPin getSPI_MISO_Pin()
Returns the SPI MISO (master in/slave out) pin.

Returns:
Returns the SPI_MISO_Pin.

getSPI_MOSI_Pin

PIOPin getSPI_MOSI_Pin()
Returns the SPI MOSI (master out/slave in) pin.

Returns:
Returns the SPI_MOSI_Pin.

getTC_TCLK

PIOPin getTC_TCLK(int tcNum)
The clock input pin for a timer-counter

Returns:
Returns the TC_TCLK.

getTC_TIOA

PIOPin getTC_TIOA(int tcNum)
The A pin for a timer-counter

Returns:
Returns the TC_TIOA.

getTC_TIOB

PIOPin getTC_TIOB(int tcNum)
The B pin for a timer-counter

Returns:
Returns the TC_TIOB.

getBD_REV0

PIOPin getBD_REV0()
The low-order bit of the hardware rev

Returns:
Returns the BD_REV0

getBD_REV1

PIOPin getBD_REV1()
The mid-order bit of the hardware rev

Returns:
Returns the BD_REV1

getBD_REV2

PIOPin getBD_REV2()
The high-order bit of the hardware rev

Returns:
Returns the BD_REV2

SunSPOT API V3.0


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