I2C_Master_open

Open the I2C for communication.

i2c_error_t I2C_Master_open(
    i2c_address_t address
)

Parameters

address

Type: i2c_address_t

The slave address to use in the transfer

Returns

Type: i2c_error_t

Initialization status.

I2C_NOERR

The I2C open was successful

I2C_BUSY

The I2C open failed because the interface is busy

I2C_FAIL

The I2C open failed with an error