How to Read/Write to 24LC512 EEPROM using either R_IIC_MASTER or R_SCI_I2C drivers

How to Read/Write to 24LC512 EEPROM using either R_IIC_MASTER or R_SCI_I2C drivers? I am not sure where to put the address of the memory location I want to read/write from/to. I am using EK-RA4M1 kit with FSP 4.4. Do I have to write my own i2c driver for 24LC512 to be able to perform random read operation or write operation to specific memory address?