Onboard-SDK-ROS
DJI_HardDriver.h
Go to the documentation of this file.
1 
19 #ifndef DJI_HARDDRIVER_H
20 #define DJI_HARDDRIVER_H
21 
22 #include <stdint.h>
23 #include <time.h>
24 #include "DJI_Type.h"
25 
26 namespace DJI
27 {
28 namespace onboardSDK
29 {
30 
32 {
33  public:
34  HardDriver() {}
35 
83  public:
84  virtual void init() = 0;
85  virtual time_ms getTimeStamp() = 0;
86  virtual size_t send(const uint8_t *buf, size_t len) = 0;
87  virtual size_t readall(uint8_t *buf, size_t maxlen) = 0;
88 
89  public:
90  virtual void lockMemory() = 0;
91  virtual void freeMemory() = 0;
92 
93  virtual void lockMSG() = 0;
94  virtual void freeMSG() = 0;
95 
96  public:
97  virtual void displayLog(const char *buf = 0);
98 };
99 } // namespace onboardSDK
100 } // namespace DJI
101 
102 #endif // DJI_HARDDRIVER_H
virtual void init()=0
After calling this function, HardDriver should be able to read and send correctly, through a correct UART part.
Definition: DJI_HardDriver.h:31
Definition: DJI_Mission.cpp:16