Регистры Allwinner H616

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


TWI_DRV_FIFO_CON
9.1.5. TWI_DRV FIFO Content Register - адрес: 0x500221c 0x500261c 0x5002a1c 0x5002e1c 0x500321c 0x708161c (смещение: 0x021C)

Двухпроводной интерфейс: список регистров



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

  Unused

Bits 31 : 23

  RECV_FIFO_CLEAR

Bit 22
R/WAC
0x0

Set this bit to clear RECV_FIFO pointer, and this bit is cleared automatically


  RECV_FIFO_CONTENT

Bits 21 : 16
R
0x0

The number of data in RECV_FIFO


  Unused

Bits 15 : 7

  SEND_FIFO_CLEAR

Bit 6
R/WAC
0x0

Set this bit to clear SEND_FIFO pointer, and this bit is cleared automatically


  SEND_FIFO_CONTENT

Bits 5 : 0
R
0x0

The number of data in SEND_FIFO



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

md 500221c 1
md 500261c 1
md 5002a1c 1
md 5002e1c 1
md 500321c 1
md 708161c 1



Bit fields structure

typedef union  twi_drv_fifo_con
{
  struct
  {
   unsigned send_fifo_content : 6;
   unsigned send_fifo_clear : 1;
   unsigned unused0 : 9;
   unsigned recv_fifo_content : 6;
   unsigned recv_fifo_clear : 1;
   unsigned unused1 : 9;
  } b;
   unsigned long w;
} TWI_DRV_FIFO_CON
   

Allwinner H616 Manual