HiSilicon platform, use I2C to read and write data

1) Functions used on the command line:
i2c_read 0 0x30 0x2 0x16 1 1

0: Controller serial number
0x30: peripheral device address;
0x02: register start address
0x16: register end address

Confirmation of the address of the peripheral device:
0x30 corresponds to the address
Insert picture description here
001 1000 7-bit address in the audio chip tlv320aic3104 chip manual , the last digit is filled with 0
, that is, 0011 0000 -> 0x30

2) Functions used in the driver:
Insert picture description here

Guess you like

Origin blog.csdn.net/WANGYONGZIXUE/article/details/106608133