When the master sends a data block that is larger than the loaded reply, this function specifies how to fill empty bytes (repeat the reply bytes or send zeroes). For example, the loaded reply includes 3 bytes (11 22 33
), but the master sends 5 bytes. If the function sets the DLN_SPI_SLAVE_REPLY_SHORTAGE_SEND_ZEROES
value, the slave sends 11 22 33 00 00
. If the function sets the DLN_SPI_SLAVE_REPLY_SHORTAGE_REUSE
value, the slave sends 11 22 33 11 22
. For details, read Reply Shortage Actions.
The DlnSpiSlaveSetReplyShortageAction()
function is defined in the dln_spi_slave.h
file.