DLN_RESULT DlnSpiMasterEnable( HDLN handle, uint8_t port, uint16_t* conflict );
The DlnSpiMasterEnable() function activates corresponding SPI master port on your DLN-series adapter.
- A handle to the DLN-series adapter.
- A number of the SPI master port to be enabled .
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 module. To fix this a user has to disconnect a pin from a module that it has been assigned to and call the DlnSpiMasterEnable() 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_master.h file.