MyTetra Share
Делитесь знаниями!
net.h
Время создания: 28.11.2018 17:34
Раздел: Electronics - Microcontrollers - STM32 - Hunter - v3.2

#pragma once


#include "stm32f4xx_hal.h"

#include <string.h>

#include <stdlib.h>

#include <stdint.h>

#include "lwip.h"

#include "lwip/tcp.h"


#include "server.h"

#include "client.h"


/*

My version:

typedef struct UsartLine {

uint8_t command[26]; //received command

uint8_t commandCnt; //array counter

uint8_t TcpConnectStatus; //status if connection is TCP (TcpStatus is better)

uint8_t isText; //status if transmission is text to server

} cmdLine

*/


typedef struct USART_prop

{

uint8_t usartBuf[32];

uint8_t usartBufCnt;

uint8_t isTcpConnect; //status if connection is TCP (TcpStatus is better)

uint8_t isText; //status if transmission is text to server

} USART_prop_ptr;


void initNet(void);

void netCommandParse(char *bufStr);

void USART6_RxComplete(void);


Так же в этом разделе:
 
MyTetra Share v.0.53
Яндекс индекс цитирования