31 memset(pHandle, 0x00,
sizeof(*pHandle));
38 pHandle->
name[0] =
'\0';
71 nameLen = strlen(pName);
75 strcpy(pInterface->
name, pName);
This file implements the base interface for all Serial and Ethernet ports.
static const char * gInterfaceType[]
#define SBG_IF_TYPE_ETH_UDP
void sbgInterfaceZeroInit(SbgInterface *pHandle)
SbgInterfaceHandle handle
SbgInterfaceGetDelayFunc pDelayFunc
SbgInterfaceReadFunc pReadFunc
void sbgInterfaceNameSet(SbgInterface *pInterface, const char *pName)
#define SBG_IF_TYPE_SERIAL
const char * sbgInterfaceTypeGetAsString(const SbgInterface *pInterface)
Main header file for SBG Systems common C library.
#define SBG_LOG_ERROR(format,...)
#define SBG_ARRAY_SIZE(a)
SbgInterfaceFlushFunc pFlushFunc
char name[SBG_IF_NAME_MAX_SIZE]
#define SBG_IF_TYPE_ETH_TCP_IP
SbgInterfaceWriteFunc pWriteFunc
#define SBG_IF_TYPE_UNKNOW