dji_mop_pipeline.hpp
Go to the documentation of this file.
1 
29 #ifndef DJI_MOP_PIPELINE_HPP
30 #define DJI_MOP_PIPELINE_HPP
31 
32 #include <stdint.h>
33 #include "dji_mop_define.hpp"
34 
35 using namespace DJI::OSDK;
36 using namespace DJI::OSDK::MOP;
37 
38 namespace DJI {
39 namespace OSDK {
40 
43 class MopPipeline {
44  public:
45  MopPipeline(PipelineID id, PipelineType type);
46 
47  ~MopPipeline();
48 
49  typedef struct DataPackType {
50  uint8_t* data;
51  uint32_t length;
52  } DataPackType;
53 
54  public:
65  MopErrCode sendData(DataPackType dataPacket, uint32_t *len);
66 
77  MopErrCode recvData(DataPackType dataPacket, uint32_t *len);
78 
79  void *channelHandle;
80 
86  PipelineID getId();
87 
93  PipelineType getType();
94  private:
95  PipelineID id;
96  PipelineType type;
97 
98 };
99 } // namespace OSDK
100 } // namespace DJI
101 
102 #endif // DJI_MOP_PIPELINE_HPP
Definition: dji_ack.cpp:40
Enumeration of all mop data types, structures.
Class providing APIs & data structures MOP pipeline operations.
Definition: dji_mop_pipeline.hpp:43
uint16_t PipelineID
Definition: dji_mop_define.hpp:78
Definition: dji_ack.cpp:38
This namespace encapsulates all available telemetry topics through either Broadcast or Subscribe.
Definition: dji_mop_define.hpp:47