sbgInterfaceFile.h
Go to the documentation of this file.
1 
21 #ifndef SBG_INTERFACE_FILE_H
22 #define SBG_INTERFACE_FILE_H
23 
24 //----------------------------------------------------------------------//
25 //- Header (open extern C block) -//
26 //----------------------------------------------------------------------//
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #include "sbgInterface.h"
32 
33 //----------------------------------------------------------------------//
34 //- Definitions -//
35 //----------------------------------------------------------------------//
36 
37 //----------------------------------------------------------------------//
38 //- Structures definitions -//
39 //----------------------------------------------------------------------//
40 
41 //----------------------------------------------------------------------//
42 //- Operations methods declarations -//
43 //----------------------------------------------------------------------//
44 
52 
60 
67 
74 
81 
82 //----------------------------------------------------------------------//
83 //- Internal interfaces write/read implementations -//
84 //----------------------------------------------------------------------//
85 
93 SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite);
94 
103 SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead);
104 
111 
119 SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileWriteFake(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite);
120 
129 SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileReadFake(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead);
130 
131 //----------------------------------------------------------------------//
132 //- Footer (close extern C block) -//
133 //----------------------------------------------------------------------//
134 #ifdef __cplusplus
135 }
136 #endif
137 
138 #endif /* SBG_INTERFACE_FILE_H */
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
This file implements the base interface for all Serial and Ethernet ports.
#define SBG_COMMON_LIB_API
Definition: sbgDefines.h:58
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileWriteFake(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SBG_COMMON_LIB_API size_t sbgInterfaceFileGetSize(SbgInterface *pHandle)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileClose(SbgInterface *pHandle)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileReadFake(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileWriteOpen(SbgInterface *pHandle, const char *filePath)
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileFlush(SbgInterface *pHandle)
SBG_COMMON_LIB_API size_t sbgInterfaceFileGetCursor(const SbgInterface *pHandle)
enum _SbgErrorCode SbgErrorCode
SBG_COMMON_LIB_API SbgErrorCode sbgInterfaceFileOpen(SbgInterface *pHandle, const char *filePath)


sbg_driver
Author(s): SBG Systems
autogenerated on Sat Sep 3 2022 02:53:36