BALTECH Docs |
C API for BALTECH SDK
|
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.
[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] | CmdData | collection of all data bytes to send. |
[in] | CmdData_len | |
[in] | Delay | Delay to assert before next command in milliseconds. |