Low Speed Data Channel
The header file for low-speed data channel related functions is dji_low_speed_data_channel.h
. This document describes the key information and usage of the structure and function prototypes in the dji_low_speed_data_channel.h
file.
Catalog
Define, Enum and Struct
DjiLowSpeedDataChannelRecvDataCallbackFunction
DjiLowSpeedDataChannel_Init
DjiLowSpeedDataChannel_DeInit
DjiLowSpeedDataChannel_SendData
DjiLowSpeedDataChannel_GetSendDataState
DjiLowSpeedDataChannel_RegRecvDataCallback
Definition, Enum and Struct
typedef function DjiLowSpeedDataChannelRecvDataCallback
Function:Prototype of callback function used to receive data that come from selected channel address. | product:all |
typedef T_DjiReturnCode (*DjiLowSpeedDataChannelRecvDataCallback)(const uint8_t *data, uint16_t len);
data:pointer to data.
len:length of data.
Return
The details for the return code please refer to: DjiErrorCode
Function
function DjiLowSpeedDataChannel_Init
Function:Initialize the low speed data channel module. | product:all |
T_DjiReturnCode DjiLowSpeedDataChannel_Init(void);
Return
The details for the return code please refer to: DjiErrorCode
function DjiLowSpeedDataChannel_DeInit
Function:Deinitialize the low speed data channel module. | product:all |
T_DjiReturnCode DjiLowSpeedDataChannel_DeInit(void);
Return
The details for the return code please refer to: DjiErrorCode
function DjiLowSpeedDataChannel_SendData
Function:Send data to selected channel address end via command channel. | product:all |
T_DjiReturnCode DjiLowSpeedDataChannel_SendData(E_DjiChannelAddress channelAddress, const uint8_t *data,
uint8_t len);
channelAddress:the channel address of the low speed channel
data:pointer to data to be sent.
len:length of data to be sent, unit: byte.
Return
The details for the return code please refer to: DjiErrorCode
function DjiLowSpeedDataChannel_GetSendDataState
Get data transmission state of "sendToOsdk" command channel. User can use the state as base for controlling data transmission between selected channel address and onboard computer. | product:all |
T_DjiReturnCode DjiLowSpeedDataChannel_GetSendDataState(E_DjiChannelAddress channelAddress,
T_DjiDataChannelState *state);
channelAddress:the channel address of the low speed channel
state:pointer to low speed channel state.
Return
The details for the return code please refer to: DjiErrorCode
function DjiLowSpeedDataChannel_RegRecvDataCallback
Function:Register callback function used to receive data from selected channel address. After registering this callback function, callback function will be called automatically when system receive data from selected channel address. | product:all |
T_DjiReturnCode DjiLowSpeedDataChannel_RegRecvDataCallback(E_DjiChannelAddress channelAddress,
DjiLowSpeedDataChannelRecvDataCallback callback);
channelAddress:the channel address of the low speed channel
callback:pointer to callback function.
Return
The details for the return code please refer to: DjiErrorCode