|
SunSPOT API V3.0 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use PinDescriptor | |
---|---|
com.sun.spot.sensorboard | Contains highest level interfaces and concrete classes that make up the SunSPOT sensorboard libraries. |
com.sun.spot.sensorboard.capabilities | Interfaces that define how a sensorboard should implement a particular type of controller. |
com.sun.spot.sensorboard.io | Interfaces and concrete implmentations of classes to enable simple low-level i/o to and from the SunSPOT sensorboards. |
com.sun.spot.sensorboard.peripheral | Interfaces and concrete implementations of various peripherals that are either connected to or built into the daughter cards. |
Uses of PinDescriptor in com.sun.spot.sensorboard |
---|
Fields in com.sun.spot.sensorboard declared as PinDescriptor | |
---|---|
static PinDescriptor |
EDemoController.A0
Analog to Digital convertor input pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.A1
Analog to Digital convertor input pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.A2
Analog to Digital convertor input pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.A3
Analog to Digital convertor input pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.A4
Analog-to-Digital convertor input pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.A5
Analog-to-Digital convertor input pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.ACCEL_FULLSCALE
Internal pin used to operate the accelerometer. |
static PinDescriptor |
EDemoController.ACCEL_SELFTEST
Internal pin used to operate the accelerometer. |
static PinDescriptor |
EDemoController.ACCEL_X
Descriptor for X Axis accelerometer reading, this is an internal connection. |
static PinDescriptor |
EDemoController.ACCEL_Y
Descriptor for Y Axis accelerometer reading, this is an internal connection. |
static PinDescriptor |
EDemoController.ACCEL_Z
Descriptor for Z Axis accelerometer reading, this is an internal connection. |
static PinDescriptor |
EDemoController.D0
TTL level general purpose input/output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.D1
TTL level general purpose input/output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.D2
TTL level general purpose input/output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.D3
TTL level general purpose input/output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.D4
TTL level general purpose input/output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.H0
High current output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.H1
High current output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.H2
High current output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.H3
High current output pin, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED1
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED2
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED3
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED4
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED5
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED6
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED7
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LED8
Tri-color LED Identifier, matches silkscreening on the hardware |
static PinDescriptor |
EDemoController.LIGHTSENSOR
Descriptor for LightSensor, this is an internal connection. |
static PinDescriptor |
EDemoController.POWER_ENABLE
Internal pin used to enable the op-amp and shift registers that drive the LEDs. |
static PinDescriptor |
EDemoController.SW1
Switch 0, matches silkscreening on the hardware. |
static PinDescriptor |
EDemoController.SW2
Switch 1, matches silkscreening on the hardware. |
static PinDescriptor |
EDemoController.TEMPERATURE
Descriptor for internal thermometer reading, this is internal to the ADC chip---a virtual pin. |
Methods in com.sun.spot.sensorboard with parameters of type PinDescriptor | |
---|---|
int |
EDemoController.getBlueLEDValue(PinDescriptor pidx)
Get the current blue color value for the indicated LED This method is meant to be used by an accessor object to the ITriColorLEDController. |
int |
EDemoController.getGreenLEDValue(PinDescriptor pidx)
Get the current green color value for the indicated LED This method is meant to be used by an accessor object to the ITriColorLEDController. |
int |
EDemoController.getLightSensorValue(PinDescriptor pidx)
Get the current value of a lightsensor accessor connected to a particular pin. |
boolean |
EDemoController.getPinDirection(PinDescriptor pidx)
Get the current direction for the specified input/output pin. |
boolean |
EDemoController.getPinValue(PinDescriptor pidx)
Returns the value of the pin. |
int |
EDemoController.getPulse(PinDescriptor pidx,
boolean dir,
int timeout)
Ask the controller for a measurement of an incoming pulse on some input pin. |
int |
EDemoController.getRedLEDValue(PinDescriptor pidx)
Get the current red color value for the indicated LED This method is meant to be used by an accessor object to the ITriColorLEDController. |
int |
EDemoController.getScalarValue(PinDescriptor pidx)
Returns a scalar value for indicated pin from the ADC. |
boolean |
EDemoController.getSwitchState(PinDescriptor pidx)
Get the current state of a switch connected to the indicated pin. |
boolean |
EDemoController.isOnLED(PinDescriptor pidx)
Return if the LED is on or off. |
void |
EDemoController.setLEDValue(PinDescriptor pidx,
int r,
int g,
int b)
Set the RGB values of the indicated LED. |
void |
EDemoController.setOnLED(PinDescriptor pidx,
boolean on)
Turn the LED on or off |
void |
EDemoController.setPinDirection(PinDescriptor pidx,
boolean output)
Set the mask for the indicated pin to the indicated direction. |
void |
EDemoController.setPinValue(PinDescriptor pidx,
boolean high)
Set the output value of the indicated pin. |
void |
EDemoController.setPWM(PinDescriptor pidx,
int duty)
Request the controller maintain a pwm signal on a gpio pin. |
void |
EDemoController.setServoPulseWidth(PinDescriptor pidx,
int usec)
Ask the controller to maintain a servo pulsewidth of some length. |
void |
EDemoController.setTone(PinDescriptor pidx,
int period)
Ask the controller to start a tone on the indicated pin. |
void |
EDemoController.startPulse(PinDescriptor pidx,
boolean dir,
int usec)
Ask the controller to issue a pulse on the indicated pin. |
boolean |
EDemoController.supportsThresholdEvents(PinDescriptor pidx)
Returns whether the underlying hardware supports threshold events. |
Uses of PinDescriptor in com.sun.spot.sensorboard.capabilities |
---|
Methods in com.sun.spot.sensorboard.capabilities with parameters of type PinDescriptor | |
---|---|
int |
ITriColorLEDController.getBlueLEDValue(PinDescriptor pidx)
Get the current blue color value for the indicated LED |
int |
ITriColorLEDController.getGreenLEDValue(PinDescriptor pidx)
Get the current green color value for the indicated LED |
int |
ILightSensorController.getLightSensorValue(PinDescriptor pidx)
Ask controller to return current value of lightsensor |
boolean |
IGPIOController.getPinDirection(PinDescriptor pidx)
Get the current direction for the specified input/output pin. |
boolean |
IGPIOController.getPinValue(PinDescriptor pidx)
Get the current value of the pin, this can be called on both outputs and inputs. |
int |
ITriColorLEDController.getRedLEDValue(PinDescriptor pidx)
Get the current red color value for the indicated LED |
int |
IADCController.getScalarValue(PinDescriptor pidx)
Return current value of scalar input idx meant to be used only by the accessor objects. |
boolean |
ISwitchController.getSwitchState(PinDescriptor pidx)
Ask the controller for current switch state. |
boolean |
ITriColorLEDController.isOnLED(PinDescriptor pidx)
Return if the LED is on or off. |
void |
ITriColorLEDController.setLEDValue(PinDescriptor pidx,
int r,
int g,
int b)
Set the RGB value of one of the LEDs being controlled. |
void |
ITriColorLEDController.setOnLED(PinDescriptor pidx,
boolean on)
Turn the LED on or off |
void |
IGPIOController.setPinDirection(PinDescriptor pidx,
boolean output)
Set the mask for the indicated pin to the indicated direction. |
void |
IGPIOController.setPinValue(PinDescriptor pidx,
boolean value)
Ask the controller to set the pin value. |
void |
IServoController.setServoPulseWidth(PinDescriptor pidx,
int usec)
set the pulse width for the servo on the indicated pin |
void |
IToneGeneratorController.setTone(PinDescriptor pidx,
int period)
start the tone generator, period of 0 means stop tone |
boolean |
IADCController.supportsThresholdEvents(PinDescriptor pidx)
Returns whether the underlying hardware supports threshold events. |
Uses of PinDescriptor in com.sun.spot.sensorboard.io |
---|
Fields in com.sun.spot.sensorboard.io declared as PinDescriptor | |
---|---|
protected PinDescriptor |
ScalarInput.index
|
Methods in com.sun.spot.sensorboard.io that return PinDescriptor | |
---|---|
PinDescriptor |
ScalarInput.getIndex()
Return the PinDescriptor associated with this input pin. |
PinDescriptor |
OutputPin.getIndex()
Return the PinDescriptor for this pin. |
PinDescriptor |
IScalarInput.getIndex()
Return the PinDescriptor associated with this input pin. |
PinDescriptor |
IOutputPin.getIndex()
Return the PinDescriptor associated with this output pin. |
PinDescriptor |
IOPin.getIndex()
Return the PinDescriptor associated with this input pin. |
PinDescriptor |
InvertingOutputPin.getIndex()
Return the PinDescriptor associated with this output pin. |
PinDescriptor |
InvertingInputPin.getIndex()
Return the PinDescriptor associated with this input pin. |
PinDescriptor |
InputPin.getIndex()
Return the PinDescriptor associated with this input pin. |
PinDescriptor |
IInputPin.getIndex()
Return the PinDescriptor associated with this input pin. |
PinDescriptor |
BinaryScalar.getIndex()
|
Constructors in com.sun.spot.sensorboard.io with parameters of type PinDescriptor | |
---|---|
InputPin(PinDescriptor idx,
IGPIOController cntrl)
|
|
IOPin(PinDescriptor idx,
IGPIOController cntrl)
|
|
OutputPin(PinDescriptor idx,
IGPIOController cntrl)
|
|
ScalarInput(PinDescriptor idx,
int r,
IADCController cntrl)
|
Uses of PinDescriptor in com.sun.spot.sensorboard.peripheral |
---|
Methods in com.sun.spot.sensorboard.peripheral that return PinDescriptor | |
---|---|
PinDescriptor |
TriColorLED.getIndex()
Return the PinDescriptor associated with this LED. |
PinDescriptor |
ITriColorLED.getIndex()
Return the PinDescriptor associated with this LED. |
Constructors in com.sun.spot.sensorboard.peripheral with parameters of type PinDescriptor | |
---|---|
LightSensor(PinDescriptor pidx,
int r,
IADCController cntrl)
Creates a new instance of LightSensor |
|
TemperatureInput(PinDescriptor pidx,
int r,
IADCController cntrl)
Creates a new instance of TemperatureInput |
|
TriColorLED(PinDescriptor pidx,
ITriColorLEDController cntrl)
Constructor. |
|
SunSPOT API V3.0 |
|||||||||
PREV NEXT | FRAMES NO FRAMES |