21 #ifndef SBG_INTERFACE_SERIAL_H 22 #define SBG_INTERFACE_SERIAL_H 36 #define SBG_IF_SERIAL_TX_BUFFER_SIZE (4096u) 37 #define SBG_IF_SERIAL_RX_BUFFER_SIZE (4096u) 39 //----------------------------------------------------------------------// This file implements the base interface for all Serial and Ethernet ports.
#define SBG_COMMON_LIB_API
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceSerialDestroy(SbgInterface *pHandle)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceSerialWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceSerialCreate(SbgInterface *pHandle, const char *deviceName, uint32_t baudRate)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceSerialFlush(SbgInterface *pHandle)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceSerialChangeBaudrate(SbgInterface *pHandle, uint32_t baudRate)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceSerialRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
enum _SbgErrorCode SbgErrorCode