#ifndef _CH392_PARAM_H_ #define _CH392_PARAM_H_ #include "CH392INC.h" #include "CH392SPI_HW.h" #include "ch392cmd.h" #include "CH392.H" #define CH392_OP_INTERFACE_MODE 1 #define SOCKET_COUNT 1 //socket 数量 #define CH392_SPI_PORT_NO 1 typedef struct { UINT8 dstIP[4]; UINT16 SrcPort; UINT16 DstPort; UINT16 ProtoType; }SOCK_PARAM ; void InitCH392InfParam(void); UINT8 CH392Init(void); void mStopIfError(UINT8 iError); void InitClientSocket (void); void CH392GlobalInterrupt(void); void CH392SocketInterrupt(UINT8 sockindex); void InitNet(void); void InitEXIT(void); void NetRouting(int i); #endif