Регистры Allwinner H616

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


PG_DAT
9.6.4. PG Data Register - адрес: 0x300b0e8 (смещение: 0x00E8)

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



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

  Unused

Bits 31 : 20

  PG_DAT

Bits 19 : 0
R/W
0x0

If the port is configured as input, the corresponding bit is the pin state.
If the port is configured as output, the pin state is the same as the corresponding bit.
he read bit value is the value setup by software.
If the port is configured as functional pin, the undefined value will be read.



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

md 300b0e8 1



Bit fields structure

typedef union  pg_dat
{
  struct
  {
   unsigned pg_dat : 20;
   unsigned unused0 : 12;
  } b;
   unsigned long w;
} PG_DAT
   

Allwinner H616 Manual