BALTECH Docs |
C API for BALTECH SDK
|
brp_errcode brp_DHWCtrl_ApspiAlternateRecv | ( | brp_protocol | protocol, |
unsigned | CmdCodeA, | ||
unsigned | CmdCodeB, | ||
unsigned | Address, | ||
unsigned | CmdDataLen, | ||
brp_buf * | CmdData, | ||
size_t * | CmdData_len, | ||
brp_mempool * | mempool | ||
) |
Send alternately SPI programming instructions and receive data bytes.
Works similar to ApspiAlternateSend.
[in] | protocol | used to execute the command |
[in] | CmdCodeA | command code of first instruction. |
[in] | CmdCodeB | command code of second instruction. |
[in] | Address | start address. |
[in] | CmdDataLen | Number of data Bytes that should be retrieved. |
[out] | CmdData | collection of all data Bytes received. |
[out] | CmdData_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 |