|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.system.DriverAdapter
com.sentilla.system.DigitalPinDriver
public abstract class DigitalPinDriver
Create new DigitalPin
system objects. "digpin" is used as the default
driver name.
Field Summary |
---|
Fields inherited from class com.sentilla.system.DriverAdapter |
---|
m_nextDriver |
Constructor Summary | |
---|---|
DigitalPinDriver()
|
Method Summary | |
---|---|
static DigitalPin |
create(int id)
Create a DigitalPin object representing a specific pin on a microcontrollers. |
static DigitalPin |
create(String driver,
int id)
Create a DigitalPin object representing a specific pin on a microcontrollers. |
abstract DigitalPin |
newDigitalPin(int id)
Create a new DigitalPin object with the specified pin id. |
Methods inherited from class com.sentilla.system.DriverAdapter |
---|
getDriverName, getNextDriver, setNextDriver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DigitalPinDriver()
Method Detail |
---|
public abstract DigitalPin newDigitalPin(int id)
id
- Identity of the digital input/output pin
public static DigitalPin create(String driver, int id)
The id of the pin is typically specified in hex by port and then pin number. For example, Port 2, Pin 3, is represented as 0x23.
This factory method should only be used if an alternate DigitalPin platform
driver is needed and specified by the driver
String paramter.
driver
- String representing the driver used to create a DigitalPinid
- Identity of the digital input/output pin
IllegalArgumentException
- when the given id does not have interrupt capability on the target platformpublic static DigitalPin create(int id)
The id of the pin is typically specified in hex by port and then pin number. For example, Port 2, Pin 3, is represented as 0x23.
id
- Identity of the digital input/output pin
IllegalArgumentException
- when the given id does not have interrupt capability on the target platform
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |