Регистры Allwinner H616

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


LRADC_INTS
9.7.5. LRADC Interrupt Status Register - адрес: 0x5070808 (смещение: 0x0008)

Низкоскоростной АЦП: список регистров



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

  Unused

Bits 31 : 5

  ADC0_KEYUP_PENDING

Bit 4
R/W1C
0x0

ADC0 Key up Pending Bit
When general key is pulled up, and the corresponding interrupt is enabled, the status bit is set.
0: No IRQ
1: IRQ Pending
Writing 1 to the bit will clear it and its corresponding interrupt if the interrupt is enabled.


  ADC0_ALRDY_HOLD_PENDING

Bit 3
R/W1C
0x0

ADC0 Already Hold Pending Bit
When hold key is pulled down and the general key is pulled down, and the corresponding interrupt is enabled.

0: No IRQ
1: IRQ Pending
Writing 1 to the bit will clear it and its corresponding interrupt if the interrupt is enabled.


  ADC0_HOLDKEY_PENDING

Bit 2
R/W1C
0x0

ADC0 Hold Key Pending Bit
When hold key is pulled down, and the corresponding interrupt is enabled, the status bit is set and the interrupt line is set.

0: NO IRQ
1: IRQ Pending
Writing 1 to the bit will clear it and its corresponding interrupt if the interrupt is enabled.


  ADC0_KEYDOWN_PENDING

Bit 1
R/W1C
0x0

ADC0 Key Down IRQ Pending Bit
When general key is pulled down, and the corresponding interrupt is enabled, the status bit is set and the interrupt line is set.

0: No IRQ
1: IRQ Pending
Writing 1 to the bit will clear it and its corresponding interrupt if the interrupt is enabled.


  ADC0_DATA_PENDING

Bit 0
R/W1C
0x0

ADC0 Data IRQ Pending Bit
0: No IRQ
1: IRQ Pending
Writing 1 to the bit will clear it and its corresponding interrupt if the interrupt is enabled.



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

md 5070808 1



Bit fields structure

typedef union  lradc_ints
{
  struct
  {
   unsigned adc0_data_pending : 1;
   unsigned adc0_keydown_pending : 1;
   unsigned adc0_holdkey_pending : 1;
   unsigned adc0_alrdy_hold_pending : 1;
   unsigned adc0_keyup_pending : 1;
   unsigned unused0 : 27;
  } b;
   unsigned long w;
} LRADC_INTS
   

Allwinner H616 Manual