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