| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.wpi.first.wpilibj.SensorBase
edu.wpi.first.wpilibj.InterruptableSensorBase
public abstract class InterruptableSensorBase
Base for sensors to be used with interrupts
| Field Summary | |
|---|---|
| protected static Resource | interruptsResource manager | 
| protected  tInterrupt | m_interruptThe interrupt resource | 
| protected  int | m_interruptIndexThe index of the interrupt | 
| protected  tInterruptManager | m_managerThe interrupt manager resource | 
| Fields inherited from class edu.wpi.first.wpilibj.SensorBase | 
|---|
| kAnalogChannels, kAnalogModules, kDigitalChannels, kPwmChannels, kRelayChannels, kSolenoidChannels, kSolenoidModules, kSystemClockTicksPerMicrosecond | 
| Constructor Summary | |
|---|---|
| InterruptableSensorBase()Create a new InterrupatableSensorBase | |
| Method Summary | |
|---|---|
|  void | allocateInterrupts(boolean watcher)Allocate the interrupt | 
|  void | cancelInterrupts()Cancel interrupts on this device. | 
|  void | disableInterrupts()Disable Interrupts without without deallocating structures. | 
|  void | enableInterrupts()Enable interrupts to occur on this input. | 
|  double | readInterruptTimestamp()Return the timestamp for the interrupt that occurred most recently. | 
|  void | waitForInterrupt(double timeout)In synchronous mode, wait for the defined interrupt to occur. | 
| Methods inherited from class edu.wpi.first.wpilibj.SensorBase | 
|---|
| checkAnalogChannel, checkAnalogModule, checkDigitalChannel, checkDigitalModule, checkPWMChannel, checkPWMModule, checkRelayChannel, checkRelayModule, checkSolenoidChannel, checkSolenoidModule, free, getDefaultAnalogModule, getDefaultDigitalModule, getDefaultSolenoidModule, setDefaultAnalogModule, setDefaultDigitalModule, setDefaultSolenoidModule | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
protected tInterrupt m_interrupt
protected tInterruptManager m_manager
protected int m_interruptIndex
protected static Resource interrupts
| Constructor Detail | 
|---|
public InterruptableSensorBase()
| Method Detail | 
|---|
public void allocateInterrupts(boolean watcher)
watcher - public void cancelInterrupts()
public void waitForInterrupt(double timeout)
timeout - Timeout in secondspublic void enableInterrupts()
public void disableInterrupts()
public double readInterruptTimestamp()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||