DJI Onboard SDK  4.0
osdk_typedef.h
1 
27 /* Define to prevent recursive inclusion -------------------------------------*/
28 #ifndef OSDK_TYPEDEF_H
29 #define OSDK_TYPEDEF_H
30 
31 /* Includes ------------------------------------------------------------------*/
32 #include <stddef.h>
33 #include <stdint.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 /* Exported constants --------------------------------------------------------*/
40 
41 /* Exported types ------------------------------------------------------------*/
42 #define OSDK_EMPTY_STRUCT uint8_t empty;
43 
44 // float type define
45 typedef double osdk_f64_t;
46 typedef float osdk_f32_t;
47 
48 // function process state type define
49 typedef enum {
50  OSDK_STAT_OK = 0,
51  OSDK_STAT_ERR_ALLOC = 1,
52  OSDK_STAT_ERR_TIMEOUT = 2,
53  OSDK_STAT_ERR_NOT_FOUND = 3,
54  OSDK_STAT_ERR_OUT_OF_RANGE = 4,
55  OSDK_STAT_ERR_PARAM = 5,
56  OSDK_STAT_NO_NEED_ACK = 6,
57  OSDK_STAT_SYS_ERR = 7,
58  OSDK_STAT_NOT_READY = 8,
59  OSDK_STAT_ERR = 0xFF,
60 } E_OsdkStat;
61 
62 /* Exported functions --------------------------------------------------------*/
63 
64 // define compiler specific symbols
65 #if defined(__ICCARM__)
66 #elif defined(__CC_ARM)
67 #pragma anon_unions
68 #elif defined(__GNUC__)
69 #elif defined(__TASKING__)
70 #endif
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 
76 #endif // OSDK_TYPEDEF_H
77 /************************ (C) COPYRIGHT DJI Innovations *******END OF FILE******/