BC260_UDP_Client5.h 760 B

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