I2C_Master_master_operation

Start an operation on an opened I2C interface.

i2c_error_t I2C_Master_master_operation(
    bool read
)

Parameters

read

Type: bool

Set to true for read, false for write

Returns

Type: i2c_error_t

Status of operation

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