EC800M_UDP_Client5.h 767 B

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