i2c_read2ByteRegister

Function to read 2 byte of data from a register location.

uint16_t i2c_read2ByteRegister(
    i2c2_address_t address,    uint8_t reg
)

Parameters

address

Type: i2c2_address_t

[type]i2c_address_t Slave address [in] reg [type]uint8_t The register address to be read

Returns

Type: uint16_t

[out] The read 2 bytes of data