Functions
sbgPlatform.c File Reference
#include "sbgPlatform.h"
#include <stdarg.h>
#include <time.h>
#include <unistd.h>
Include dependency graph for sbgPlatform.c:

Go to the source code of this file.

Functions

uint32 sbgGetTime (void)
 
void sbgPlatformDebugLogMsg (const char *pFileName, const char *pFunctionName, uint32 line, SbgDebugLogType logType, SbgErrorCode errorCode, const char *pFormat,...)
 
void sbgSleep (uint32 ms)
 

Function Documentation

uint32 sbgGetTime ( void  )

Returns the current time in ms.

Returns
The current time in ms.

Definition at line 24 of file sbgPlatform.c.

void sbgPlatformDebugLogMsg ( const char *  pFileName,
const char *  pFunctionName,
uint32  line,
SbgDebugLogType  logType,
SbgErrorCode  errorCode,
const char *  pFormat,
  ... 
)

The method is called when one of the SBG_LOG_ERROR, SBG_LOG_WARNING, SBG_LOG_INFO or SBG_LOG_VERBOSE is called. It logs an error message with debug information and support a variable list of arguments

Parameters
[in]pFileNameFile name where the error occurred.
[in]pFunctionNameFunction name where the error occurred.
[in]lineLine number where the error occurred.
[in]logTypeDefine if we have an error, a warning, an info or a verbose log.
[in]errorCodeThe error code associated with the message.
[in]pFormatThe error message that will be used with the variable list of arguments.

Definition at line 80 of file sbgPlatform.c.

void sbgSleep ( uint32  ms)

Sleep for the specified number of ms.

Parameters
[in]msNumber of millisecondes to wait.

Definition at line 54 of file sbgPlatform.c.



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