Within the I2C simple appliance there is a function to write a byte out to a target device as shown below. What I'm having trouble with is the meaning of the second parameter "register." Does this refer to a register in the PIC or the target device and if in the PIC why a register followed by a "data" parameter. I am trying to write data to a display and to my knowledge it does not require an register parameter for data sent. If register refers to the Slave device can a dummy argument be inserted?
i2c_write1ByteRegister(i2c_address_t address, uint8_t reg, uint8_t data)
Parameters:
address: Type: i2c_address_t; The slave address
reg: Type: uint8_t; The register address to be written
data: Type: uint8_t; The data to be written