24 #ifndef __SBG_INTERFACE_H__ 25 #define __SBG_INTERFACE_H__ 201 return pHandle->
pWriteFunc(pHandle, pBuffer, bytesToWrite);
224 return pHandle->
pReadFunc(pHandle, pBuffer, pReadBytes, bytesToRead);
bool(* SbgInterfaceIsValidFunc)(SbgInterface *pHandle)
enum _SbgInterfaceType SbgInterfaceType
SbgInterfaceIsValidFunc pIsValidFunc
SbgErrorCode(* SbgInterfaceWriteFunc)(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SbgInterfaceHandle handle
SbgInterfaceReadFunc pReadFunc
SBG_INLINE SbgErrorCode sbgInterfaceWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SBG_INLINE bool sbgInterfaceIsValid(SbgInterface *pHandle)
Main header file for SBG Systems common C library.
SbgErrorCode(* SbgInterfaceReadFunc)(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
void * SbgInterfaceHandle
SBG_INLINE SbgErrorCode sbgInterfaceRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
#define SBG_ASSERT(expression)
SBG_INLINE void sbgInterfaceZeroInit(SbgInterface *pHandle)
SbgInterfaceWriteFunc pWriteFunc
enum _SbgErrorCode SbgErrorCode