Go to the source code of this file.
Close the protocol system and release associated memory.
- Parameters
-
[in] | pHandle | A valid sbgECom handle to close. |
- Returns
- SBG_NO_ERROR if we have closed and released the sbgECom system.
Definition at line 60 of file sbgECom.c.
void sbgEComErrorToString |
( |
SbgErrorCode |
errorCode, |
|
|
char |
errorMsg[256] |
|
) |
| |
Convert an error code into a human readable string.
- Parameters
-
[in] | errorCode | The errorCode to convert into a string. |
[out] | errorMsg | String buffer used to hold the error string. |
Definition at line 305 of file sbgECom.c.
uint32 sbgEComGetVersion |
( |
void |
| ) |
|
const char* sbgEComGetVersionAsString |
( |
void |
| ) |
|
Retreive the sbgCom library version as a string (1.0.0.0).
- Returns
- Null terminated string that contains the sbgCom library version.
Definition at line 295 of file sbgECom.c.
Handle all incoming logs until no more log are available in the input interface.
- Parameters
-
[in] | pHandle | A valid sbgECom handle. |
- Returns
- SBG_NO_ERROR if no error occurs during incoming logs parsing.
Definition at line 176 of file sbgECom.c.
Try to parse one log from the input interface and then return.
- Parameters
-
[in] | pHandle | A valid sbgECom handle. |
- Returns
- SBG_NO_ERROR if no error occurs during incoming log parsing.
Definition at line 87 of file sbgECom.c.
Initialize the protocol system used to communicate with the product and return the created handle.
- Parameters
-
[out] | pHandle | Pointer used to store the allocated and initialized sbgECom handle. |
[in] | pInterface | Interface to use for read/write operations. |
- Returns
- SBG_NO_ERROR if we have initialised the protocol system.
Definition at line 20 of file sbgECom.c.
Define the default number of trials that should be done when a command is send to the device as well as the time out.
- Parameters
-
[in] | pHandle | A valid sbgECom handle. [in] numTrials Number of trials when a command is sent (starting at 1). |
[in] | cmdDefaultTimeOut | Default time out in milliseconds to wait to receive an answer from the device. |
Definition at line 265 of file sbgECom.c.
Define the callback that should be called each time a new binary log is received.
- Parameters
-
[in] | pHandle | A valid sbgECom handle. |
[in] | pReceiveCallback | Pointer on the callback to call when a new log is received. |
[in] | pUserArg | Optional user argument that will be passed to the callback method. |
- Returns
- SBG_NO_ERROR if the callback and user argument have been defined successfully.
Definition at line 206 of file sbgECom.c.
Define the callback that should be called each time a new binary log is received.
- Parameters
-
[in] | pHandle | A valid sbgECom handle. |
[in] | pReceiveLogCallback | Pointer on the callback to call when a new log is received. |
[in] | pUserArg | Optional user argument that will be passed to the callback method. |
- Returns
- SBG_NO_ERROR if the callback and user argument have been defined successfully.
Definition at line 236 of file sbgECom.c.