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.

40 lines
705 B

2 years ago
2 years ago
2 years ago
  1. #pragma once
  2. #include <stdint.h>
  3. namespace iflytop {
  4. typedef uint8_t u8;
  5. typedef uint16_t u16;
  6. typedef uint32_t u32;
  7. typedef uint64_t u64;
  8. typedef int8_t s8;
  9. typedef int16_t s16;
  10. typedef int32_t s32;
  11. typedef int64_t s64;
  12. typedef float f32;
  13. typedef double f64;
  14. typedef enum {
  15. kset_cmd_type_read = 0,
  16. kset_cmd_type_set = 1,
  17. } SetCmdOperationType_t;
  18. typedef enum {
  19. kMotorStopType_stop = 0,
  20. kMotorStopType_break = 1,
  21. } MotorStopType_t;
  22. typedef enum {
  23. kmodule_statu_idle,
  24. kmodule_statu_work,
  25. kmodule_statu_exception,
  26. } module_statu_type_t;
  27. #ifndef ZSTRUCT
  28. #define ZSTRUCT(name, ...) \
  29. typedef struct { \
  30. __VA_ARGS__ \
  31. } name;
  32. #endif
  33. } // namespace iflytop