DJI Payload SDK  1.5.0
Functions
Private Functions

Functions

static uint8_t * Str_PutStrToBuff (uint8_t *pBuff, char *str, uint32_t maxStrLen)
 Put a string to buffer. More...
 
static E_PsdkStat PsdkProtoUpper_CalTransferKey (const T_PsdkUserInfo *userInfo, uint8_t *pKey, uint16_t *pKeyBitSize)
 Calculate a key used for data transmission. More...
 
static E_PsdkStat PsdkPayloadStateCmd_IdentityVerify (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Payload identity verify. More...
 
static E_PsdkStat PsdkPayloadStateCmd_GetVersion (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle PSDK version acquire command. More...
 
static E_PsdkStat PsdkPayloadStateCmd_LinkHandShake (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle communication link hand-shake command. More...
 
static E_PsdkStat PsdkPayloadStateCmd_GetPayloadProductInfo (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle product information acquire command. More...
 
static E_PsdkStat PsdkPayloadStateCmd_GetSkyportVersionInfo (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle upgrade SKYPORT version acquire command. More...
 
static E_PsdkStat PsdkPayloadStateCmd_GetPayloadProductAlias (struct _PsdkProt *protHandle, const T_PsdkProtInfo *inProtInfo, const uint8_t *inProtData)
 Handle payload product alias acquire command. More...
 

Detailed Description

Function Documentation

◆ Str_PutStrToBuff()

static uint8_t* Str_PutStrToBuff ( uint8_t *  pBuff,
char *  str,
uint32_t  maxStrLen 
)
static

Put a string to buffer.

Parameters
pBuffPointer to the buffer
strPointer to the string.
maxStrLenSize of data to be copied.
Returns
Pointer to next address of buffer.

◆ PsdkProtoUpper_CalTransferKey()

static E_PsdkStat PsdkProtoUpper_CalTransferKey ( const T_PsdkUserInfo userInfo,
uint8_t *  pKey,
uint16_t *  pKeyBitSize 
)
static

Calculate a key used for data transmission.

Parameters
userInfoPointer to user information, including APP name, APP ID, etc.
pKeyPointer to transmission key store buffer.
pKeyBitSizePointer to key bit number store buffer.
Returns
PSDK function process state.

◆ PsdkPayloadStateCmd_IdentityVerify()

static E_PsdkStat PsdkPayloadStateCmd_IdentityVerify ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Payload identity verify.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ PsdkPayloadStateCmd_GetVersion()

static E_PsdkStat PsdkPayloadStateCmd_GetVersion ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle PSDK version acquire command.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ PsdkPayloadStateCmd_LinkHandShake()

static E_PsdkStat PsdkPayloadStateCmd_LinkHandShake ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle communication link hand-shake command.

The command is used for checking whether the communication link between SKYPORT and payload is normal.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ PsdkPayloadStateCmd_GetPayloadProductInfo()

static E_PsdkStat PsdkPayloadStateCmd_GetPayloadProductInfo ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle product information acquire command.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ PsdkPayloadStateCmd_GetSkyportVersionInfo()

static E_PsdkStat PsdkPayloadStateCmd_GetSkyportVersionInfo ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle upgrade SKYPORT version acquire command.

Send the fixed SKYPORT FW version to SKYPORT.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.

◆ PsdkPayloadStateCmd_GetPayloadProductAlias()

static E_PsdkStat PsdkPayloadStateCmd_GetPayloadProductAlias ( struct _PsdkProt *  protHandle,
const T_PsdkProtInfo *  inProtInfo,
const uint8_t *  inProtData 
)
static

Handle payload product alias acquire command.

Parameters
protHandlePointer to PSDK protocol handle.
inProtInfoPointer to PSDK protocol information of data package.
inProtDataPointer to data field of package.
Returns
PSDK function process state.