Use this singleton if you need to chain interrupt handlers. More...
#include <InterruptManager.h>
 
  
 | Public Member Functions | |
| pFunctionPointer_t | add_handler (void(*function)(void), IRQn_Type irq) | 
| Add a handler for an interrupt at the end of the handler list.  More... | |
| pFunctionPointer_t | add_handler_front (void(*function)(void), IRQn_Type irq) | 
| Add a handler for an interrupt at the beginning of the handler list.  More... | |
| template<typename T > | |
| pFunctionPointer_t | add_handler (T *tptr, void(T::*mptr)(void), IRQn_Type irq) | 
| Add a handler for an interrupt at the end of the handler list.  More... | |
| template<typename T > | |
| pFunctionPointer_t | add_handler_front (T *tptr, void(T::*mptr)(void), IRQn_Type irq) | 
| Add a handler for an interrupt at the beginning of the handler list.  More... | |
| bool | remove_handler (pFunctionPointer_t handler, IRQn_Type irq) | 
| Remove a handler from an interrupt.  More... | |
| Static Public Member Functions | |
| static InterruptManager * | get () | 
| Get the instance of InterruptManager Class.  More... | |
| static void | destroy () | 
| Destroy the current instance of the interrupt manager.  More... | |
Use this singleton if you need to chain interrupt handlers.
Example (for LPC1768):
Definition at line 59 of file InterruptManager.h.
| pFunctionPointer_t add_handler | ( | void(*)(void) | function, | 
| IRQn_Type | irq | ||
| ) | 
Add a handler for an interrupt at the end of the handler list.
| function | the handler to add | 
| irq | interrupt number | 
Definition at line 92 of file InterruptManager.h.
| pFunctionPointer_t add_handler | ( | T * | tptr, | 
| void(T::*)(void) | mptr, | ||
| IRQn_Type | irq | ||
| ) | 
Add a handler for an interrupt at the end of the handler list.
| tptr | pointer to the object that has the handler function | 
| mptr | pointer to the actual handler function | 
| irq | interrupt number | 
Definition at line 130 of file InterruptManager.h.
| pFunctionPointer_t add_handler_front | ( | void(*)(void) | function, | 
| IRQn_Type | irq | ||
| ) | 
Add a handler for an interrupt at the beginning of the handler list.
| function | the handler to add | 
| irq | interrupt number | 
Definition at line 110 of file InterruptManager.h.
| pFunctionPointer_t add_handler_front | ( | T * | tptr, | 
| void(T::*)(void) | mptr, | ||
| IRQn_Type | irq | ||
| ) | 
Add a handler for an interrupt at the beginning of the handler list.
| tptr | pointer to the object that has the handler function | 
| mptr | pointer to the actual handler function | 
| irq | interrupt number | 
Definition at line 150 of file InterruptManager.h.
| 
 | static | 
Destroy the current instance of the interrupt manager.
| 
 | static | 
Get the instance of InterruptManager Class.
| bool remove_handler | ( | pFunctionPointer_t | handler, | 
| IRQn_Type | irq | ||
| ) | 
Remove a handler from an interrupt.
| handler | the function object for the handler to remove | 
| irq | the interrupt number |