#ifndef BLINKY_SET_PROTOCOL_EVENT_H_ #define BLINKY_SET_PROTOCOL_EVENT_H_ #include #include #include "keyboard_core.h" #ifdef __cplusplus extern "C" { #endif struct set_protocol_event { struct app_event_header header; enum hid_transport transport; enum keyboard_protocol_mode protocol_mode; }; APP_EVENT_TYPE_DECLARE(set_protocol_event); static inline void submit_set_protocol_event(enum hid_transport transport, enum keyboard_protocol_mode protocol_mode) { struct set_protocol_event *event = new_set_protocol_event(); event->transport = transport; event->protocol_mode = protocol_mode; APP_EVENT_SUBMIT(event); } #ifdef __cplusplus } #endif #endif /* BLINKY_SET_PROTOCOL_EVENT_H_ */