28 #ifndef COSA_EVENT_QUEUE_MAX 29 # if defined(BOARD_ATTINY) 30 # define COSA_EVENT_QUEUE_MAX 8 32 # define COSA_EVENT_QUEUE_MAX 16 93 } __attribute__((packed));
160 return ((
void*) m_value);
167 __attribute__((always_inline))
169 if (m_target !=
NULL) m_target->on_event(m_type, m_value);
181 __attribute__((always_inline))
196 __attribute__((always_inline))
212 static bool service(uint32_t ms = 0L);
static const uint8_t QUEUE_MAX
static Queue< Event, QUEUE_MAX > queue
#define COSA_EVENT_QUEUE_MAX
virtual void on_event(uint8_t type, uint16_t value)
Event(int8_t type=NULL_TYPE, Handler *target=NULL, uint16_t value=0)
static bool service(uint32_t ms=0L)
static bool push(uint8_t type, Handler *target, void *env)
static bool push(uint8_t type, Handler *target, uint16_t value=0)