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 
51 SbgErrorCode sbgInterfaceFileOpen(SbgInterface *pHandle, const char *filePath);
52 
59 SbgErrorCode sbgInterfaceFileWriteOpen(SbgInterface *pHandle, const char *filePath);
60 
67 
73 size_t sbgInterfaceFileGetSize(SbgInterface *pHandle);
74 
80 size_t sbgInterfaceFileGetCursor(const SbgInterface *pHandle);
81 
82 //----------------------------------------------------------------------//
83 //- Internal interfaces write/read implementations -//
84 //----------------------------------------------------------------------//
85 
93 SbgErrorCode sbgInterfaceFileWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite);
94 
103 SbgErrorCode sbgInterfaceFileRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead);
104 
112 SbgErrorCode sbgInterfaceFileWriteFake(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite);
113 
122 SbgErrorCode sbgInterfaceFileReadFake(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead);
123 
124 //----------------------------------------------------------------------//
125 //- Footer (close extern C block) -//
126 //----------------------------------------------------------------------//
127 #ifdef __cplusplus
128 }
129 #endif
130 
131 #endif /* __INTERFACE_SERIAL_H__ */
This file implements the base interface for all Serial and Ethernet ports.
SbgErrorCode sbgInterfaceFileWrite(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SbgErrorCode sbgInterfaceFileWriteFake(SbgInterface *pHandle, const void *pBuffer, size_t bytesToWrite)
SbgErrorCode sbgInterfaceFileWriteOpen(SbgInterface *pHandle, const char *filePath)
size_t sbgInterfaceFileGetSize(SbgInterface *pHandle)
SbgErrorCode sbgInterfaceFileRead(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
SbgErrorCode sbgInterfaceFileReadFake(SbgInterface *pHandle, void *pBuffer, size_t *pReadBytes, size_t bytesToRead)
SbgErrorCode sbgInterfaceFileOpen(SbgInterface *pHandle, const char *filePath)
size_t sbgInterfaceFileGetCursor(const SbgInterface *pHandle)
enum _SbgErrorCode SbgErrorCode
SbgErrorCode sbgInterfaceFileClose(SbgInterface *pHandle)


sbg_driver
Author(s):
autogenerated on Sun Jan 27 2019 03:42:20