com.sentilla.platform.tmote
Class DigitalPinDriver

java.lang.Object
  extended by com.sentilla.system.DriverAdapter
      extended by com.sentilla.system.DigitalPinDriver
          extended by com.sentilla.platform.tmote.DigitalPinDriver
All Implemented Interfaces:
Driver

public class DigitalPinDriver
extends DigitalPinDriver

Driver class for creating Tmote-specific DigitalPin objects for input and output operations on Tmote pins.

See Also:
DigitalPin

Field Summary
 
Fields inherited from class com.sentilla.system.DriverAdapter
m_nextDriver
 
Constructor Summary
DigitalPinDriver()
           
 
Method Summary
 String getDriverName(int n)
          Get the name(s) of this driver.
 DigitalPin newDigitalPin(int id)
          Create a new DigitalPin object with the specified pin id.
 
Methods inherited from class com.sentilla.system.DigitalPinDriver
create, create
 
Methods inherited from class com.sentilla.system.DriverAdapter
getNextDriver, setNextDriver
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DigitalPinDriver

public DigitalPinDriver()
Method Detail

newDigitalPin

public DigitalPin newDigitalPin(int id)
Create a new DigitalPin object with the specified pin id.

Specified by:
newDigitalPin in class DigitalPinDriver
Parameters:
id - Identity of the digital input/output pin, specified in hex by port and then pin
Returns:
DigitalPin object that represents the specific pin id specified

getDriverName

public String getDriverName(int n)
Get the name(s) of this driver. If a driver has N-names, then getDriverName returns a string for n=0 to n=N-1, and returns null for all other values of n.

Specified by:
getDriverName in interface Driver
Specified by:
getDriverName in class DriverAdapter
Parameters:
n - the driver name index
Returns:
driver name as a String, or null


Copyright © 2007 Sentilla Corporation. All Rights Reserved.