UDP_Client5.h 724 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef __UDP_CLIENT5_H
  2. #define __UDP_CLIENT5_H
  3. #include <stdint.h>
  4. #include "pump_dicts.h"
  5. #include "AT.h"
  6. enum Client_Status{
  7. Client_Status_None, // 空闲
  8. Client_Status_Sending, // 正在发送
  9. Client_Status_Success, // 发送成功
  10. Client_Status_Failure, // 发送失败
  11. };
  12. struct COMM_Client_Struct{
  13. enum Client_Status status; // 状态
  14. char info[200]; // 备注信息
  15. };
  16. extern struct COMM_Client_Struct UDP_Client5;
  17. // 获取状态
  18. enum Client_Status UDP_Client5_Status(void);
  19. // 发送数据
  20. void UDP_Client5_Send(struct Pump_Params params,uint8_t test_switch);
  21. // 清除
  22. void UDP_Client5_Clear(void);
  23. // 处理流程
  24. void UDP_Client5_Handle(void);
  25. // 查询信号质量
  26. void Query_Signal(int * RSRP, int * RSRQ, int * RSSI, int * SINR);
  27. #endif