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.

34 lines
580 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_BleConnectedStateChangeEvent,
  8. kAppEvent_RunModeChangeEvent,
  9. kAppEvent_PumpWorkStateChangeEvent,
  10. } AppEventType_t;
  11. /**
  12. *
  13. * @brief
  14. *
  15. *
  16. * @ע
  17. * ׶󣬷ջ
  18. */
  19. typedef struct {
  20. AppEventType_t type;
  21. union event {
  22. uint32_t placeholder;
  23. } d;
  24. } AppEvent_t;
  25. static inline AppEvent_t createAppEvent(AppEventType_t type) {
  26. AppEvent_t event;
  27. event.type = type;
  28. return event;
  29. }
  30. } // namespace iflytop