sbgECom Library  5.2.590-stable
Interface SBG Systems IMU/AHRS/INS
Loading...
Searching...
No Matches
sbgPlatform.h
Go to the documentation of this file.
1
37
38#ifndef SBG_PLATFORM_H
39#define SBG_PLATFORM_H
40
41// System headers
42#ifdef _WIN32
43#include <direct.h>
44#elif defined(__unix__)
45#include <unistd.h>
46#endif
47
48// sbgCommonLib headers
49#include <sbgDefines.h>
50#include <sbgErrorCodes.h>
51#include <debug/sbgDebug.h>
52
53//----------------------------------------------------------------------//
54//- Function pointer definitions -//
55//----------------------------------------------------------------------//
56
68typedef void (*SbgCommonLibOnLogFunc)(const char *pFileName, const char *pFunctionName, uint32_t line, const char *pCategory, SbgDebugLogType logType, SbgErrorCode errorCode, const char *pMessage);
69
70//----------------------------------------------------------------------//
71//- Public functions -//
72//----------------------------------------------------------------------//
73
80
86SBG_COMMON_LIB_API void sbgSleep(uint32_t ms);
87
97
109SBG_COMMON_LIB_API void sbgPlatformDebugLogMsg(const char *pFileName, const char *pFunctionName, uint32_t line, const char *pCategory, SbgDebugLogType logType, SbgErrorCode errorCode, const char *pFormat, ...) SBG_CHECK_FORMAT(printf, 7, 8);
110
111#endif // SBG_PLATFORM_H
Define and handle error logging for the SBG Systems common C library.
enum _SbgDebugLogType SbgDebugLogType
Header file that contains all common definitions.
#define SBG_COMMON_LIB_API
Definition sbgDefines.h:79
Header file that defines all error codes for SBG Systems libraries.
enum _SbgErrorCode SbgErrorCode
SBG_COMMON_LIB_API void sbgPlatformDebugLogMsg(const char *pFileName, const char *pFunctionName, uint32_t line, const char *pCategory, SbgDebugLogType logType, SbgErrorCode errorCode, const char *pFormat,...) SBG_CHECK_FORMAT(printf
SBG_COMMON_LIB_API void sbgSleep(uint32_t ms)
SBG_COMMON_LIB_API uint32_t sbgGetTime(void)
void(* SbgCommonLibOnLogFunc)(const char *pFileName, const char *pFunctionName, uint32_t line, const char *pCategory, SbgDebugLogType logType, SbgErrorCode errorCode, const char *pMessage)
Definition sbgPlatform.h:68
SBG_COMMON_LIB_API void sbgCommonLibSetLogCallback(SbgCommonLibOnLogFunc logCallback)