DlnI2cMasterEnable() Function

 DLN_RESULT DlnI2cMasterEnable(
    HDLN handle,
    uint8_t port,
    uint16_t* conflict
 );

The DlnI2cMasterEnable() function activates 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 enabled .
conflict

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 I2C master module. To fix this, disconnect a pin from another module and call the DlnI2cMasterEnable() 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_i2c_master.h file.