DlnI2cSlaveDisable() Function
DLN_RESULT DlnI2cSlaveDisable(
HDLN handle,
uint8_t port,
uint8_t waitForTransferCompletion
);
The DlnI2cSlaveDisable() function deactivates the specified I2C slave port at your DLN-Series adapter and releases pins previously used for SDA and SCL lines.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A number of the I2C slave port to be disabled.
- waitForTransferCompletion
-
If you call the DlnI2cSlaveDisable() function during the I2C transfer, PC-I2C slave adapter can either wait for transfer completion or deactivate the module immediately. Use the waitForTransferCompletion parameter to specify whether PC-I2C adapter must cancel the transfer or wait for transfer completion:
DLN_I2C_SLAVE_WAIT_FOR_TRANSFERS(1) wait for transfer completion DLN_I2C_MASTER_CANCEL_TRANSFERS(0) cancel all pending data transfers and deactivate the module
This function is defined in the dln_i2c_slave.h file.
2006-2012