DlnSpiSlaveDisable() Function
DLN_RESULT DlnSpiSlaveDisable(
HDLN handle,
uint8_t port,
uint8_t waitForTransferCompletion
);
The DlnSpiSlaveDisable() function deactivates corresponding SPI slave port on your DLN-Series adapter.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A number of the SPI slave port to be disabled.
- waitForTransferCompletion
-
Used to choose whether the device should wait for current data transfers to complete before disabling as SPI slave.
The following values are available:
1 or DLN_SPI_SLAVE_WAIT_FOR_TRANSFERS wait until transfers are completed 0 or DLN_SPI_SLAVE_CANCEL_TRANSFERS cancel all pending data transfers and deactivate the module
This function is defined in the dln_spi_slave.h file.
2006-2012