com.sentilla.system
Class InterruptPinDriver

java.lang.Object
  extended by com.sentilla.system.DriverAdapter
      extended by com.sentilla.system.InterruptPinDriver
All Implemented Interfaces:
Driver

public abstract class InterruptPinDriver
extends DriverAdapter

Create new InterruptPin system objects. "intpin" is used as the default driver name.


Field Summary
 
Fields inherited from class com.sentilla.system.DriverAdapter
m_nextDriver
 
Constructor Summary
InterruptPinDriver()
           
 
Method Summary
static InterruptPin create(int id)
          Create an InterruptPin object representing a specific pin on a microcontrollers.
static InterruptPin create(String driver, int id)
          Create an InterruptPin object representing a specific pin on a microcontrollers.
abstract  InterruptPin newInterruptPin(int id)
          Create a new InterruptPin 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

InterruptPinDriver

public InterruptPinDriver()
Method Detail

newInterruptPin

public abstract InterruptPin newInterruptPin(int id)
Create a new InterruptPin object with the specified pin id. This method must be implemented by all InterruptPin drivers and is called as a helper function by this platform independent (com.sentilla.system) InterruptPinDriver factory.

Parameters:
id - Identity of the digital input/output pin
Returns:
DigitalPin object that represents the specific pin id specified

create

public static InterruptPin create(String driver,
                                  int id)
Create an InterruptPin object representing a specific pin on a microcontrollers.

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 InterruptPin platform driver is needed and specified by the driver String paramter.

Parameters:
driver - String representing the driver used to create a InterruptPin
id - Identity of the digital input/output pin
Returns:
InterruptPin object that represents the specific pin id specified
Throws:
IllegalArgumentException - when the given id does not have interrupt capability on the target platform

create

public static InterruptPin create(int id)
Create an InterruptPin object representing a specific pin on a microcontrollers.

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.

Parameters:
id - Identity of the digital input/output pin
Returns:
InterruptPin object that represents the specific pin id specified
Throws:
IllegalArgumentException - when the given id does not have interrupt capability on the target platform


Copyright © 2007 Sentilla Corporation. All Rights Reserved.