C API for BALTECH SDK

§ brp_DHWCtrl_ApspiAlternateSend()

brp_errcode brp_DHWCtrl_ApspiAlternateSend ( brp_protocol  protocol,
unsigned  CmdCodeA,
unsigned  CmdCodeB,
unsigned  Address,
brp_buf  CmdData,
size_t  CmdData_len,
unsigned  Delay 
)

Send alternately SPI programming instructions. First CmdCodeA with address adr and the first byte in the data buffer, then CmdCodeB with the same address and the second byte in the buffer is sent. After that the address will be incremented. This is repeated as long as data bytes are in the buffer.

Parameters
[in]protocolused to execute the command
[in]CmdCodeAcommand code of first instruction.
[in]CmdCodeBcommand code of second instruction.
[in]Addressstart address.
[in]CmdDatacollection of all data bytes to send.
[in]CmdData_len
[in]DelayDelay to assert before next command in milliseconds.