1.3.5.6.50 BMNG_FUP_DataFrameRequest Function
C
void BMNG_FUP_DataFrameRequest(uint8_t cmd, uint16_t frameNumber,
uint16_t dataLen, uint8_t *data);
Summary
Requests to receive a data frame during the file transmission for a firmware upgrade process.
Description
This routine requests to receive a data frame during the file transmission for a firmware upgrade process.
Precondition
The firmware upgrade process must have been started before.
Parameters
Param | Description |
---|---|
cmd | Command to acknowledge |
frameNumber | Frame number |
dataLen | Data length |
data | Pointer to the data frame |
Returns
None.
Example
uint8_t file[0x4000];
uint8_t frame[0x200];
memcpy(frame, &file[0x600], 0x200);
BMNG_FUP_DataFrameRequest(FUP_DATA_FRAME_REQUEST, 0x600, 0x200, &frame);
Remarks
The command is acknowledged with the FUP ACK callback.