Community
cancel
Showing results for 
Search instead for 
Did you mean: 
YLu11
New Contributor I
957 Views

What does it mean by i2c offset 0x0

Jump to solution

I am sorry if this is a very basic question, I am very new to I2C.

Basically, in mraa i2c library, the description for method int mraa_i2c_read ( mraa_i2c_context dev, uint8_t * data, int length ) is Simple bulk read from an i2c context, this will always begin with the i2c offset 0x0.

So, can anyone help me clarify what does i2c offset 0x0 mean?

Thanks a lot in advance.

0 Kudos

Accepted Solutions
idata
Community Manager
47 Views

Hi,

 

 

In this context, the I2C offset 0x0 is the offset address. The offset address is the address of the register being accessed. Data is transferred in sequences of 8 bits so 0x0 means that the i2c read function, when called, will begin to read from this address.

 

 

Sergio

 

View solution in original post

1 Reply
idata
Community Manager
48 Views

Hi,

 

 

In this context, the I2C offset 0x0 is the offset address. The offset address is the address of the register being accessed. Data is transferred in sequences of 8 bits so 0x0 means that the i2c read function, when called, will begin to read from this address.

 

 

Sergio

 

View solution in original post

Reply