DFU functions for memory operations These IO functions have to be re-implemented in the user's code.
Functions | |
cy_en_dfu_status_t | Cy_DFU_ReadData (uint32_t address, uint32_t length, uint32_t ctl, cy_stc_dfu_params_t *params) |
This function must be implemented in the user's code. More... | |
cy_en_dfu_status_t | Cy_DFU_WriteData (uint32_t address, uint32_t length, uint32_t ctl, cy_stc_dfu_params_t *params) |
This function must be implemented in the user's code. More... | |
cy_en_dfu_status_t Cy_DFU_ReadData | ( | uint32_t | address, |
uint32_t | length, | ||
uint32_t | ctl, | ||
cy_stc_dfu_params_t * | params | ||
) |
This function must be implemented in the user's code.
Reads buffer
from flash, QSPI flash, or any other external memory type with custom pre and post read commands.
address | The address from where to read data, must be aligned to a flash row, QSPI flash page, etc. |
length | The length in bytes of data to read, must be multiple of a flash row, QSPI flash page, etc. |
ctl | Additional features of the read function:
|
params | The pointer to a DFU parameters structure. See cy_stc_dfu_params_t . |
The
length value is invalid.The
address is invalid. cy_en_dfu_status_t Cy_DFU_WriteData | ( | uint32_t | address, |
uint32_t | length, | ||
uint32_t | ctl, | ||
cy_stc_dfu_params_t * | params | ||
) |
This function must be implemented in the user's code.
Writes the buffer
to flash, QSPI flash, or any other external memory type with custom pre and post write commands.
address | The address to write data to, must be aligned to a flash row, QSPI flash page, etc. |
length | The length in bytes of data to be written, must be multiple of a flash row, QSPI flash page, etc. |
ctl | Additional features of the write function:
|
params | The pointer to a DFU parameters structure. See cy_stc_dfu_params_t . |
The
length value is invalid.The
address is invalid.