Регистры Allwinner H616

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


DATA0_DATA1_VOL_CTR
8.2.4. Data0 and Data1 Volume Control Register - адрес: 0x5095030 (смещение: 0x0030)

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



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

  DATA1L_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


  DATA1R_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


  DATA0L_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


  DATA0R_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 5095030 1



Bit fields structure

typedef union  data0_data1_vol_ctr
{
  struct
  {
   unsigned data0r_vol : 8;
   unsigned data0l_vol : 8;
   unsigned data1r_vol : 8;
   unsigned data1l_vol : 8;
  } b;
   unsigned long w;
} DATA0_DATA1_VOL_CTR
   

Allwinner H616 Manual