Регистры Allwinner H616

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


PH_DAT
9.6.4. PH Data Register - адрес: 0x300b10c (смещение: 0x010C)

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



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

  Unused

Bits 31 : 11

  PH_DAT

Bits 10 : 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.
The 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 300b10c 1



Bit fields structure

typedef union  ph_dat
{
  struct
  {
   unsigned ph_dat : 11;
   unsigned unused0 : 21;
  } b;
   unsigned long w;
} PH_DAT
   

Allwinner H616 Manual