sbgErrorCodes.h
Go to the documentation of this file.
1 
20 #ifndef __SBG_ERROR_CODES_H__
21 #define __SBG_ERROR_CODES_H__
22 
23 #include "sbgDefines.h"
24 
25 //----------------------------------------------------------------------//
26 //- Errors code definitions -//
27 //----------------------------------------------------------------------//
28 
32 typedef enum _SbgErrorCode
33 {
60 } SbgErrorCode;
61 
62 //----------------------------------------------------------------------//
63 //- Error codes to string litteral conversion -//
64 //----------------------------------------------------------------------//
65 
72 {
76  static const char *sbgErrorCodeString[] =
77  {
78  "SBG_NO_ERROR",
79  "SBG_ERROR",
80  "SBG_NULL_POINTER",
81  "SBG_INVALID_CRC",
82  "SBG_INVALID_FRAME",
83  "SBG_TIME_OUT",
84  "SBG_WRITE_ERROR",
85  "SBG_READ_ERROR",
86  "SBG_BUFFER_OVERFLOW",
87  "SBG_INVALID_PARAMETER",
88  "SBG_NOT_READY",
89  "SBG_MALLOC_FAILED",
90  "SGB_CALIB_MAG_NOT_ENOUGH_POINTS",
91  "SBG_CALIB_MAG_INVALID_TAKE",
92  "SBG_CALIB_MAG_SATURATION",
93  "SBG_CALIB_MAG_POINTS_NOT_IN_A_PLANE",
94  "SBG_DEVICE_NOT_FOUND",
95  "SBG_OPERATION_CANCELLED",
96  "SBG_NOT_CONTINUOUS_FRAME",
97  "SBG_INCOMPATIBLE_HARDWARE",
98  "SBG_INVALID_VERSION"
99  };
100 
101  return sbgErrorCodeString[errorCode];
102 }
103 
104 #endif /* __SBG_ERROR_CODES_H__ */
SBG_INLINE const char * sbgErrorCodeToString(SbgErrorCode errorCode)
Definition: sbgErrorCodes.h:71
#define SBG_INLINE
Definition: sbgDefines.h:94
Header file that contains all common definitions.
enum _SbgErrorCode SbgErrorCode
_SbgErrorCode
Definition: sbgErrorCodes.h:32


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