#ifndef BLINKY_HID_REPORT_SENT_EVENT_H_ #define BLINKY_HID_REPORT_SENT_EVENT_H_ #include #include #include "keyboard_core.h" #ifdef __cplusplus extern "C" { #endif struct hid_report_sent_event { struct app_event_header header; enum hid_send_channel channel; enum keyboard_report_type report_type; uint16_t sequence; bool error; }; APP_EVENT_TYPE_DECLARE(hid_report_sent_event); static inline void submit_hid_report_sent_event(enum hid_send_channel channel, enum keyboard_report_type report_type, uint16_t sequence, bool error) { struct hid_report_sent_event *event = new_hid_report_sent_event(); event->channel = channel; event->report_type = report_type; event->sequence = sequence; event->error = error; APP_EVENT_SUBMIT(event); } #ifdef __cplusplus } #endif #endif /* BLINKY_HID_REPORT_SENT_EVENT_H_ */