com.sentilla.platform.tmote
Class DigitalPinDriver
java.lang.Object
com.sentilla.system.DriverAdapter
com.sentilla.system.DigitalPinDriver
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
DigitalPinDriver
public DigitalPinDriver()
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.