DlnSpiSlaveEnable() Function

 DLN_RESULT DlnSpiSlaveEnable(
    HDLN handle,
    uint8_t port,
    uint16_t* conflict
 );

The DlnSpiSlaveEnable() function activates corresponding SPI slave port at your DLN-series adapter.

Parameters:

handle
A handle to the DLN-series adapter.
port
A number of the SPI slave port to be enabled .
conflict

A pointer to an unsigned 16-bit integer. This integer can be filled with a number of the conflicted pin, if any.

A conflict arises if a pin is already assigned to another module of the DLN-series adapter and cannot be used by the SPI slave module. To fix this a user has to disconnect a pin from another module and call the DlnSpiSlaveEnable() function once again. If there are any more conflicting pins, the next conflicted pin number will be returned.

This function is defined in the dln_spi_slave.h file.