chip_read*()

Read one, two, four or eight bytes from the device specified by chip_access().

Synopsis:

unsigned chip_read8(unsigned off)

Arguments:

off
The offset to read from.
Before it is used, the off parameter is first scaled by the reg_shift value specified in the chip_access() function.

Description:

Read from the device specified by chip_access(). The functions are named for the number of bits read, so to read one byte (eight bits) call chip_read8(); to read two bits (16 bits) call chip_read16(), and so on.

Returns:

>0
Success.