| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- #ifndef _GPRS_H_
- #define _GPRS_H_
- #include <rtthread.h>
- #include "stm32g0xx_hal.h"
- #include "sys.h"
- #include "stdbool.h"
- #include "main.h"
- #include "string.h"
- #include "bsp_rtc.h"
- #define Get_GpsBuffCnt 512
- extern uint16_t Gte_GpsCnt;
- extern uint8_t Get_GpsFlag;
- extern uint8_t Get_GpsBuff[Get_GpsBuffCnt];
- #if(Node_Type == LTE)
- #define send_buf_len 1024+512+128
- #else
- #define send_buf_len 1024
- #endif
- #define json_buf_len 2048
- #define CONTROL_3V8 PBout(4) //输出IO控制.
- //连接超时技术
- void link_timeout_cnt(void);
- void Usart_SendString(UART_HandleTypeDef huart,char *str);
- //usart3输出固定长度
- void Usart3_Send_Len( uint8_t *str,uint16_t len);
- void data_process(void);
- void CMD_Find(void);
- uint8_t str_cmd(void);
- extern char *Send_Buff;
- typedef struct
- {
- uint32_t LON; //GPS 经度
- uint32_t LAT; //GPS 纬度
- uint32_t HGT; //GPS 高度
- uint8_t succ; //经纬度获取成功
- } Location;
- typedef union
- {
- uint16_t U16[2];
- float f_value;
- } U16_Float;
- #endif
|