DlnSpiSlaveSetFrameSize() Function

 DLN_RESULT DlnSpiSlaveSetFrameSize(
    HDLN handle,
    uint8_t port,
    uint8_t frameSize
 );

The DlnSpiSlaveSetFrameSize() function sets the size of a single SPI data frame.

Parameters:

handle
A handle to the DLN-series adapter.
port
A number of the SPI slave port to be configured.
frameSize

A number of bits to be transferred during the single frame. The DLN-series adapter supports 8 to 16 bits per frame.

frameSize doesn't limit the size of the buffer transferred to/from SPI slave device, it only defines the minimum portion of data in this buffer.

This function is defined in the dln_spi_slave.h file.