Регистры Allwinner H616

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


PG_PULL1
9.6.4. PG Pull Register 1 - адрес: 0x300b0f8 (смещение: 0x00F8)

Контроллер портов ввода-вывода (GPIO): список регистров



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

  Unused

Bits 31 : 8

  PG19_PULL

Bits 7 : 6
R/W
0x0

PG19 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PG18_PULL

Bits 5 : 4
R/W
0x0

PG18 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PG17_PULL

Bits 3 : 2
R/W
0x0

PG17 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved


  PG16_PULL

Bits 1 : 0
R/W
0x0

PG16 Pull-up/down Select
00: Pull-up/down disable
01: Pull-up
10: Pull-down
11: Reserved



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

md 300b0f8 1



Bit fields structure

typedef union  pg_pull1
{
  struct
  {
   unsigned pg16_pull : 2;
   unsigned pg17_pull : 2;
   unsigned pg18_pull : 2;
   unsigned pg19_pull : 2;
   unsigned unused0 : 24;
  } b;
   unsigned long w;
} PG_PULL1
   

Allwinner H616 Manual