main.h 593 B

123456789101112131415161718192021222324252627282930
  1. #ifndef __MAIN_H_
  2. #define __MAIN_H_
  3. #include <stdint.h>
  4. #include <stdbool.h>
  5. #include <stdio.h>
  6. #pragma pack(1)
  7. typedef struct
  8. {
  9. char projectModel[20];
  10. uint32_t deviceId;
  11. uint8_t ver;
  12. uint8_t rfChannel;
  13. uint8_t channelStep;
  14. uint8_t rfModuleMode;
  15. int8_t txPower;
  16. uint8_t rfBaudrate;
  17. uint8_t rf_sf;
  18. uint8_t rf_bw;
  19. uint8_t rf_cr;
  20. uint8_t rf_regulatorMode;
  21. uint8_t chipType;
  22. uint8_t beepNumb;
  23. uint8_t packetLen;
  24. uint32_t sendPacketCounts;
  25. uint8_t checkSum;
  26. }userParams_ts;
  27. #pragma pack()
  28. #endif