BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_Ftob_ReadFileBlock | ( | brp_protocol | protocol, |
bool | ToggleBit, | ||
unsigned | MaxBlockLength, | ||
brp_buf * | BlockData, | ||
size_t * | BlockData_len, | ||
brp_mempool * | mempool | ||
) |
Use this command to receive a file block by block.
[in] | protocol | used to execute the command |
[in] | ToggleBit | This value must be toggled after every successfully transferred block. |
[in] | MaxBlockLength | Maximum length of received block. |
[out] | BlockData | Content of read block. |
[out] | BlockData_len | |
[in] | mempool | is used to store response data. Maybe NULL to use an internal mempool, in this case the data is only available until another command uses the internal mempool |