Data Structures | |
struct | cy_stc_dfu_params_t |
Working parameters for some DFU SDK APIs to be initialized before calling DFU API. More... | |
struct | cy_stc_dfu_enter_t |
Only used inside DFU Command_Enter(). More... | |
Typedefs | |
typedef cy_en_dfu_status_t(* | Cy_DFU_CustomCommandHandler) (uint32_t command, uint8_t *packetData, uint32_t dataSize, uint32_t *rspSize, struct cy_stc_dfu_params_s *params, bool *noResponse) |
The type for custom command handlers. | |
struct cy_stc_dfu_params_t |
Data Fields | ||
---|---|---|
uint8_t * | dataBuffer |
The pointer to a buffer that keeps data to read or write to an NVM. It is required to be 4-byte aligned. |
uint32_t | dataOffset |
An offset within dataBuffer to put a next chunk of data. |
uint8_t * | packetBuffer |
The pointer to a buffer that keeps packets sent and received with the Transport API. It is required to be 4-byte aligned. |
uint32_t | timeout |
The time (in milliseconds) for which the communication interface waits to receive a new data packet from Host in Cy_DFU_Continue(). A typical value is 20 ms. |
uint32_t | appId |
Set with the Set App Metadata DFU command. Used to determine an appId of a DFU image |
uint32_t | appVerified | Internal, flags if Verify Application is called before Exit. |
uint32_t | initCtl |
The initial value to the ctl parameter for Cy_DFU_ReadData and Cy_DFU_WriteData. The DFU SDK functions call the Read/Write Data functions like this: |
uint8_t * | encryptionVector |
The pointer to the Encryption Initialization Vector buffer. Must be 0-, 8-, or 16-byte long and 4-byte aligned. This may be used in Cy_DFU_ReadData and Cy_DFU_WriteData to encrypt or decrypt data when the CY_DFU_IOCTL_BHP flag is set in the ctl parameter. |
Cy_DFU_CustomCommandHandler | handlerCmd | User handler for the custom commands. |