#ifndef BLINKY_MODE_SWITCH_EVENT_H_ #define BLINKY_MODE_SWITCH_EVENT_H_ #include #include #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_ */