DlnI2cMasterIsEnabled() Function
DLN_RESULT DlnI2cMasterIsEnabled(
HDLN handle,
uint8_t port,
uint8_t* enabled
);
The DlnI2cMasterIsEnabled() function checks whether the specified I2C master port is active or not.
Parameters:
- handle
- A handle to the DLN-series adapter.
- port
- A number of the I2C master port to retrieve the information from.
- enabled
-
A pointer to an unsigned 8-bit integer. The integer will be filled with information whether the specified I2C master
port is activated after the function execution. There are two possible values:
DLN_I2C_MASTER_DISABLED (0) The port is not configured as an I2C master. DLN_I2C_MASTER_ENABLED (1) The port is configured as an I2C master.
This function is defined in the dln_i2c_master.h file.
2006-2012