|
COSA
An Object-Oriented Platform for Arduino Programming
|
#include <Event.hh>

Classes | |
| class | Handler |
Public Member Functions | |
| Event (int8_t type=NULL_TYPE, Handler *target=NULL, uint16_t value=0) | |
| uint8_t | type () const |
| Handler * | target () const |
| uint16_t | value () const |
| void * | env () const |
| void | dispatch () |
Static Public Member Functions | |
| static bool | push (uint8_t type, Handler *target, uint16_t value=0) |
| static bool | push (uint8_t type, Handler *target, void *env) |
| static bool | service (uint32_t ms=0L) |
Static Public Attributes | |
| static const uint8_t | QUEUE_MAX = COSA_EVENT_QUEUE_MAX |
| static Queue< Event, QUEUE_MAX > | queue |
| anonymous enum |
Event types are added here. Typical mapping from interrupts to events. Note that the event is not a global numbering scheme. Instead depends on the receiving/sending party, the protocol.
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
static |
|
inline |
|
inline |
|
inline |
|
static |
|
static |