#ifndef BLINKY_TRANSPORT_POLICY_EVENT_H_ #define BLINKY_TRANSPORT_POLICY_EVENT_H_ #include #include "mode_switch_event.h" enum hid_transport_policy { HID_TRANSPORT_POLICY_NONE = 0, HID_TRANSPORT_POLICY_USB, HID_TRANSPORT_POLICY_BLE, }; enum ble_profile_policy { BLE_PROFILE_POLICY_NONE = 0, BLE_PROFILE_POLICY_GENERAL, BLE_PROFILE_POLICY_DONGLE, }; struct transport_policy_event { struct app_event_header header; enum mode_switch_mode source_mode; enum hid_transport_policy hid_transport; enum ble_profile_policy ble_profile; }; APP_EVENT_TYPE_DECLARE(transport_policy_event); static inline void submit_transport_policy_event( enum mode_switch_mode source_mode, enum hid_transport_policy hid_transport, enum ble_profile_policy ble_profile) { struct transport_policy_event *event = new_transport_policy_event(); event->source_mode = source_mode; event->hid_transport = hid_transport; event->ble_profile = ble_profile; APP_EVENT_SUBMIT(event); } #endif /* BLINKY_TRANSPORT_POLICY_EVENT_H_ */