avr-classes
|
#include <event.h>
Public Types | |
enum | { INVALID_EVENT_ID = 0xff } |
Public Member Functions | |
Event (uint8_t eventId=INVALID_EVENT_ID) | |
uint8_t | getId (void) const |
bool | operator== (Event const &rhs) const |
bool | operator!= (Event const &rhs) const |
Event that can be sent. Basically wraps a numeric event ID to be assigned by the user. The last event ID is reserved for an invalid marker.
|
inline |
Constructor, defaulting to create an invalid event.
eventId | Event ID to assign. |
|
inline |
Getter for event ID.
|
inline |
Inequality operator
rhs | Right hand side of comparison. |
|
inline |
Equality operator
rhs | Right hand side of comparison. |