“12.2:初步实现esp8266处理响应数据,暂不完善。”
This commit is contained in:
23
STM32/Gateway_Node/Application/NetFIFO/NetFIFO.h
Normal file
23
STM32/Gateway_Node/Application/NetFIFO/NetFIFO.h
Normal file
@@ -0,0 +1,23 @@
|
||||
#ifndef __NETFIFO_H__
|
||||
#define __NETFIFO_H__ 1
|
||||
|
||||
#include "stm32f10x.h"
|
||||
#include "stdio.h"
|
||||
#include "string.h"
|
||||
#include "stdbool.h"
|
||||
#include "stdlib.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
char cResponseBuffer[1024];
|
||||
uint8_t ucBufferIndex;
|
||||
}NetFifoBuffer_t;
|
||||
|
||||
void vNetBufferInit(NetFifoBuffer_t *pxBuffer);
|
||||
void vNetBufferWrite(NetFifoBuffer_t *pxBuffer, char cData);
|
||||
char cNetBufferReadByte(NetFifoBuffer_t *pxBuffer, int index);
|
||||
bool bNetBufferCompareStr(NetFifoBuffer_t *pxBuffer, const char *pcStr);
|
||||
int iNetBufferGetLength(NetFifoBuffer_t *pxBuffer);
|
||||
void vNetBufferClear(NetFifoBuffer_t *pxBuffer);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user