29 #ifndef DJI_CONTROL_LINK_HPP 30 #define DJI_CONTROL_LINK_HPP 32 #include "osdk_command.h" 38 FlightLink(Vehicle *vehicle);
50 typedef uint8_t retCodeType;
52 void linkSendFCAsync(
const uint8_t cmd[],
const uint8_t *cmdData,
size_t len,
53 Command_SendCallback func,
55 void *userData, uint32_t timeOut, uint16_t retryTimes);
57 E_OsdkStat linkSendFCSync(
const uint8_t cmd[],
const uint8_t *cmdData,
size_t len,
58 uint8_t *ackData, uint32_t *ack_len, uint32_t timeOut, uint16_t retryTimes);
72 void sendAsync(
const uint8_t cmd[],
void *pdata,
size_t len,
void *callBack,
73 UserData userData,
int timeout = 500,
int retryTime = 2);
84 void *sendSync(
const uint8_t cmd[],
void *pdata,
size_t len,
int timeout);
86 void sendDirectly(
const uint8_t cmd[],
void *pdata,
size_t len);
88 Vehicle *getVehicle()
const;
90 void setVehicle(Vehicle *value);
99 #endif // DJI_CONTROL_LINK_HPP void * UserData
This is used as the datatype for all data arguments in callbacks.
Definition: dji_type.hpp:75
int64_t ErrorCodeType
Unified error type.
Definition: dji_error.hpp:144
Type definition for new Vehicle-style callbacks.
Definition: dji_flight_link.hpp:46
Definition: dji_ack.cpp:38