COSA
An Object-Oriented Platform for Arduino Programming
Interrupt.hh
Go to the documentation of this file.
1 
21 #ifndef COSA_INTERRUPT_HH
22 #define COSA_INTERRUPT_HH
23 
24 #include "Cosa/Types.h"
25 
29 class Interrupt {
30 public:
31  class Handler {
32  public:
38  virtual void on_interrupt(uint16_t arg = 0)
39  {
40  UNUSED(arg);
41  }
42 
47  virtual void enable() {}
48 
53  virtual void disable() {}
54 
59  virtual void clear() {}
60  };
61 };
62 #endif
63 
virtual void enable()
Definition: Interrupt.hh:47
virtual void disable()
Definition: Interrupt.hh:53
virtual void on_interrupt(uint16_t arg=0)
Definition: Interrupt.hh:38
#define UNUSED(x)
Definition: ATmega328P.hh:31
virtual void clear()
Definition: Interrupt.hh:59