DJI Onboard SDK  4.0
dji_memory.hpp
Go to the documentation of this file.
1 
30 #ifndef DJI_MEMORY_H
31 #define DJI_MEMORY_H
32 
33 #include "dji_type.hpp"
34 
35 namespace DJI
36 {
37 namespace OSDK
38 {
39 
40 #define PRO_PURE_DATA_MAX_SIZE 1007 // 2^10 - header size
41 
42 class MMU
43 {
44 public:
45  MMU();
46  void setupMMU(void);
47  void freeMemory(MMU_Tab* mmu_tab);
48  MMU_Tab* allocMemory(uint16_t size);
49 
50 public:
51  static const int MMU_TABLE_NUM = 32;
52  static const int MEMORY_SIZE = 1024;
53 
54 private:
55  MMU_Tab memoryTable[MMU_TABLE_NUM];
56  uint8_t memory[MEMORY_SIZE];
57 };
58 
59 } // OSDK
60 } // DJI
61 #endif // DJI_MEMORY_H
Data type and Data Structure definitions for use throughout DJI OSDK.
handle array of characters
Definition: commondatarangehandler.h:14