luat_pcconf.h 560 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef LUAT_PCCONF_H
  2. #define LUAT_PCCONF_H
  3. typedef struct luat_pcconf
  4. {
  5. // MCU
  6. char mcu_unique_id[64];
  7. size_t mcu_unique_id_len;
  8. size_t mcu_mhz;
  9. // mobile
  10. char mobile_imei[16];
  11. char mobile_muid[20];
  12. char mobile_imsi[20];
  13. char mobile_iccid[20];
  14. char mobile_iccid2[20];
  15. int mobile_csq;
  16. // uart udp
  17. size_t uart_udp_port_start;
  18. size_t uart_udp_id_start;
  19. size_t uart_udp_id_count;
  20. }luat_pcconf_t;
  21. void luat_pcconf_init(void);
  22. void luat_pcconf_save(void);
  23. void free_uv_handle(void* ptr);
  24. #endif