hand_acid_mainboard
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
538 B

12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
11 months ago
12 months ago
  1. #pragma once
  2. #include <stdint.h>
  3. #include <functional>
  4. namespace iflytop {
  5. using namespace std;
  6. typedef enum {
  7. kAppEvent_RunModeChangeEvent,
  8. kAppEvent_PumpWorkStateChangeEvent,
  9. } AppEventType_t;
  10. /**
  11. *
  12. * @brief
  13. *
  14. *
  15. * @ע
  16. * ׶󣬷ջ
  17. */
  18. typedef struct {
  19. AppEventType_t type;
  20. union event {
  21. uint32_t placeholder;
  22. } d;
  23. } AppEvent_t;
  24. static inline AppEvent_t createAppEvent(AppEventType_t type) {
  25. AppEvent_t event;
  26. event.type = type;
  27. return event;
  28. }
  29. } // namespace iflytop