Now you can download a copy of these docs so you can use them offline! Download now
AnalogTriggerOutput.h
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) FIRST 2008. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib. */
5 /*----------------------------------------------------------------------------*/
6 
7 #ifndef ANALOG_TRIGGER_OUTPUT_H_
8 #define ANALOG_TRIGGER_OUTPUT_H_
9 
10 #include "DigitalSource.h"
11 
12 class AnalogTrigger;
13 
42 {
43  friend class AnalogTrigger;
44 public:
45  typedef enum {kInWindow=0, kState=1, kRisingPulse=2, kFallingPulse=3} Type;
46 
47  virtual ~AnalogTriggerOutput();
48  bool Get();
49 
50  // DigitalSource interface
51  virtual uint32_t GetChannelForRouting();
52  virtual uint32_t GetModuleForRouting();
53  virtual bool GetAnalogTriggerForRouting();
54  virtual void RequestInterrupts(tInterruptHandler handler, void *param=NULL);
55  virtual void RequestInterrupts();
56 protected:
57  AnalogTriggerOutput(AnalogTrigger *trigger, Type outputType);
58 
59 private:
60  AnalogTrigger *m_trigger;
61  Type m_outputType;
62 };
63 
64 
65 #endif
AnalogTriggerOutput(AnalogTrigger *trigger, Type outputType)
virtual uint32_t GetModuleForRouting()
virtual bool GetAnalogTriggerForRouting()
virtual uint32_t GetChannelForRouting()
virtual void RequestInterrupts()
Synchronus Wait version.

Generated on Sat Apr 26 2014 12:26:45 for WPILibC++ by doxygen 1.8.6