DlnI2cMasterDisable() Function

 DLN_RESULT DlnI2cMasterDisable(
    HDLN handle,
    uint8_t port,
    uint8_t waitForTransferCompletion
 );

The DlnI2cMasterDisable() function deactivates the specified I2C master port at your DLN-Series adapter.

Parameters:

handle
A handle to the DLN-series adapter.
port
A number of the I2C master port to be disabled.
waitForTransferCompletion
Used to specify whether the device should wait for pending data transfers to complete before disabling an I2C master port or cancel the pending transfers. The following values are available:
DLN_I2C_MASTER_WAIT_FOR_TRANSFERS(1) wait until transfers are completed
DLN_I2C_MASTER_CANCEL_TRANSFERS(0) cancel all pending data transfers and disable the module

This function is defined in the dln_i2c_master.h file.