30 lines
503 B
C
30 lines
503 B
C
|
|
#ifndef BLINKY_MODE_SWITCH_EVENT_H_
|
||
|
|
#define BLINKY_MODE_SWITCH_EVENT_H_
|
||
|
|
|
||
|
|
#include <app_event_manager.h>
|
||
|
|
#include <app_event_manager_profiler_tracer.h>
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
extern "C" {
|
||
|
|
#endif
|
||
|
|
|
||
|
|
enum mode_switch_mode {
|
||
|
|
MODE_SWITCH_USB,
|
||
|
|
MODE_SWITCH_24G,
|
||
|
|
MODE_SWITCH_BLE,
|
||
|
|
};
|
||
|
|
|
||
|
|
struct mode_switch_event {
|
||
|
|
struct app_event_header header;
|
||
|
|
enum mode_switch_mode mode;
|
||
|
|
uint16_t voltage_mv;
|
||
|
|
};
|
||
|
|
|
||
|
|
APP_EVENT_TYPE_DECLARE(mode_switch_event);
|
||
|
|
|
||
|
|
#ifdef __cplusplus
|
||
|
|
}
|
||
|
|
#endif
|
||
|
|
|
||
|
|
#endif /* BLINKY_MODE_SWITCH_EVENT_H_ */
|