Регистры Allwinner H616

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


PI_DAT
9.6.4. PI Data Register - адрес: 0x300b130 (смещение: 0x0130)

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



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

  Unused

Bits 31 : 17

  PI_DAT

Bits 16 : 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 300b130 1



Bit fields structure

typedef union  pi_dat
{
  struct
  {
   unsigned pi_dat : 17;
   unsigned unused0 : 15;
  } b;
   unsigned long w;
} PI_DAT
   

Allwinner H616 Manual