Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


DATA2_DATA3_VOL_CTR
8.2.4. Data2 And Data3 Volume Control Register - адрес: 0x5095034 (смещение: 0x0034)

Контроллер микрофона: список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  DATA3L_VOL

Bits 31 : 24
R/W
0xA0

(-119.25 dB to 71.25 dB, 0.75 dB/Step)
0x00: Mute
0x01: -119.25 dB
***
0x9F: -0.75 dB
0xA0: 0 dB
0xA1: 0.75 dB
***
0xFF: 71.25 dB


  DATA3R_VOL

Bits 23 : 16
R/W
0xA0

(-119.25 dB to 71.25 dB, 0.75 dB/Step)

0x00: Mute
0x01: -119.25 dB
***
0x9F: -0.75 dB
0xA0: 0 dB
0xA1: 0.75 dB
***
0xFF: 71.25 dB


  DATA2L_VOL

Bits 15 : 8
R/W
0xA0

(-119.25 dB to 71.25 dB, 0.75 dB/Step)

0x00: Mute
0x01: -119.25 dB
***.
0x9F: -0.75 dB
0xA0: 0 dB
0xA1: 0.75 dB

***
0xFF: 71.25 dB


  DATA2R_VOL

Bits 7 : 0
R/W
0xA0

(-119.25 dB to 71.25 dB, 0.75 dB/Step)

0x00: Mute
0x01: -119.25 dB
***.
0x9F: -0.75 dB
0xA0: 0 dB
0xA1: 0.75 dB

***.
0xFF: 71.25 dB



Команда U-Boot для чтения регистра

md 5095034 1



Bit fields structure

typedef union  data2_data3_vol_ctr
{
  struct
  {
   unsigned data2r_vol : 8;
   unsigned data2l_vol : 8;
   unsigned data3r_vol : 8;
   unsigned data3l_vol : 8;
  } b;
   unsigned long w;
} DATA2_DATA3_VOL_CTR
   

Allwinner H616 Manual