Quantcast
Viewing all articles
Browse latest Browse all 4878

Interfacing (DSI, CSI, I2C, etc.) • Re: i2cset does not work for 16bits?

If the I2C device you are using is wm8960 neither registers or control bits are 16 bit wide. Registers are 7 bits and there are 9 control bits on each. Registers are modified by sending two individual bytes. The first byte is the 7-bit register [shifted left by 1] + 9th control bit. The second byte is the remaining 8 control bits.
If you want to set the register 0x1A by 0x01F8 (1 1111 1000) two individual bytes in the I2C message would be:

<I2C address> 35 F8
it is a good idea. I will try it.

Statistics: Posted by ironchef — Wed Mar 20, 2024 6:53 pm



Viewing all articles
Browse latest Browse all 4878

Trending Articles