A method for data access via an inter-integrated circuit (I2C) protocol.
The method includes receiving an I2C read command at an I2C slave device,
where the I2C read command is from an I2C master device. The method also
includes reading stored data from a storage device in response to
receiving an I2C read command. The stored data is at a first location in
the storage device corresponding to a value in a register array pointer
in the I2C slave device. The stored data is transmitted to the I2C master
device in response to the reading. The method also includes receiving an
I2C write command at the I2C slave device, where the I2C write command is
from the I2C master device and the write command includes master data and
a slave device register address. The master data is written to the
storage device in response to receiving the I2C write command, with the
master data being written at a second location in the storage device
corresponding to the slave device register address.