Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
LPG_ATCmd_Processing.h
00001 00002 #include "mbed.h" 00003 #include "LPG_Config.h" 00004 00005 typedef enum /*枚举类型:接收的状态*/ 00006 { 00007 e_SUCCESS_REC = 0, /*成功*/ 00008 e_TIME_OUT, /*超时*/ 00009 e_NO_REC /*未收到*/ 00010 }teATStatus; 00011 00012 typedef struct /*定义的数据结构,用数据结构来完成AT指令的发送、应答、超时、状态、重发*/ 00013 { 00014 char* st_ATSendStr; /*向NB-IOT发送字符串(AT命令)*/ 00015 char *st_ATRecStr; /*NB-IOT返回给MCU的字符串*/ 00016 uint16_t st_TimeOut; /*设置超时*/ 00017 teATStatus st_ATStatus; /*接收状态*/ 00018 uint8_t st_RtyNum; /*重发次数*/ 00019 }tsATCmds; 00020 00021 typedef enum{ 00022 e_ATCFUN0, 00023 e_ATCFUN1, 00024 e_ATGATT1 00025 }teATCmdNum; 00026 00027 void LPG_ATCmd_Processing_WriteCommand(const char* command, RawSerial TransPort, RawSerial DebugPort); 00028 void LPG_ATCmd_Processing_WriteCommand(const char* command, RawSerial TransPort); 00029 void LPG_ATCmd_Processing_Receive(); 00030 00031 00032 00033
Generated on Fri Jul 22 2022 03:43:24 by
