You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
560 B
27 lines
560 B
#ifndef _EVENTS_h
|
|
#define _EVENTS_h
|
|
|
|
/// <summary>
|
|
/// An event you receive through the eventing system
|
|
/// </summary>
|
|
struct Event
|
|
{
|
|
/// <summary>
|
|
/// Sender of the event; one of the WATCHOS_MODULE_* consts
|
|
/// </summary>
|
|
well_known_handle_t source;
|
|
/// <summary>
|
|
/// Id of the actual event; one of the WATCHOS_EVENT_TYPE_<MODULE>_<EVENT> consts
|
|
/// </summary>
|
|
uint16_t event;
|
|
/// <summary>
|
|
/// Event defined data
|
|
/// </summary>
|
|
byte param1;
|
|
/// <summary>
|
|
/// Event defined data
|
|
/// </summary>
|
|
byte param2;
|
|
};
|
|
|
|
#endif
|