DJI::OSDK::MopPipeline Class Reference

Class providing APIs & data structures MOP pipeline operations. More...

#include <dji_mop_pipeline.hpp>

Public Types

typedef struct DJI::OSDK::MopPipeline::DataPackType DataPackType
 

Public Member Functions

 MopPipeline (PipelineID id, PipelineType type)
 
MopErrCode sendData (DataPackType dataPacket, uint32_t *len)
 Send data packet to the pipeline. More...
 
MopErrCode recvData (DataPackType dataPacket, uint32_t *len)
 Receive data packet to the pipeline. More...
 
PipelineID getId ()
 Get the pipeline id of the pipeline. More...
 
PipelineType getType ()
 Get the pipeline type of the pipeline. More...
 

Public Attributes

void * channelHandle
 

Detailed Description

Class providing APIs & data structures MOP pipeline operations.

Member Function Documentation

◆ getId()

PipelineID DJI::OSDK::MopPipeline::getId ( )

Get the pipeline id of the pipeline.

Supported Platforms : M300
Returns
ref to the enum DJI::OSDK::MOP::PipelineID

◆ getType()

PipelineType DJI::OSDK::MopPipeline::getType ( )

Get the pipeline type of the pipeline.

Supported Platforms : M300
Returns
ref to the enum DJI::OSDK::MOP::PipelineType

◆ recvData()

MopErrCode DJI::OSDK::MopPipeline::recvData ( DataPackType  dataPacket,
uint32_t *  len 
)

Receive data packet to the pipeline.

Supported Platforms : M300
Note
This is a blocking api
Parameters
dataPacketThe data packet id which to be sent, ref to DJI::OSDK::MopPipeline::DataPackType
lenTarget len of data packet to be reveived. The result of reveived-byte counts will be returned by this parameter
Returns
ref to the enum DJI::OSDK::MOP::MopErrCode

◆ sendData()

MopErrCode DJI::OSDK::MopPipeline::sendData ( DataPackType  dataPacket,
uint32_t *  len 
)

Send data packet to the pipeline.

Supported Platforms : M300
Note
This is a blocking api
Parameters
dataPacketThe data packet id which to be sent, ref to DJI::OSDK::MopPipeline::DataPackType
lenTarget len of data packet to be sent. The result of sent-byte counts will be returned by this parameter
Returns
ref to the enum DJI::OSDK::MOP::MopErrCode

The documentation for this class was generated from the following file: