C API for BALTECH SDK

§ brp_DHWCtrl_ApspiAlternateRecv()

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.

Parameters
[in]protocolused to execute the command
[in]CmdCodeAcommand code of first instruction.
[in]CmdCodeBcommand code of second instruction.
[in]Addressstart address.
[in]CmdDataLenNumber of data Bytes that should be retrieved.
[out]CmdDatacollection of all data Bytes received.
[out]CmdData_len
[in]mempoolis 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