29 lines
508 B
C
29 lines
508 B
C
|
|
#ifndef BLINKY_KEY_FUNCTION_EVENT_H_
|
||
|
|
#define BLINKY_KEY_FUNCTION_EVENT_H_
|
||
|
|
|
||
|
|
#include <app_event_manager.h>
|
||
|
|
#include <app_event_manager_profiler_tracer.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
enum key_function_action {
|
||
|
|
KEY_FUNCTION_ACTION_RELEASE = 0U,
|
||
|
|
KEY_FUNCTION_ACTION_PRESS = 1U,
|
||
|
|
};
|
||
|
|
|
||
|
|
struct key_function_event {
|
||
|
|
struct app_event_header header;
|
||
|
|
uint16_t usage;
|
||
|
|
uint8_t action;
|
||
|
|
};
|
||
|
|
|
||
|
|
APP_EVENT_TYPE_DECLARE(key_function_event);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif /* BLINKY_KEY_FUNCTION_EVENT_H_ */
|