Регистры Allwinner H616

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


TWI_DRV_INT_CTRL
9.1.5. TWI_DRV Interrupt Control Register - адрес: 0x5002214 0x5002614 0x5002a14 0x5002e14 0x5003214 0x7081614 (смещение: 0x0214)

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



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

  Unused

Bits 31 : 20

  RX_REQ_INT_EN

Bit 19
R/W
0x0


  TX_REQ_INT_EN

Bit 18
R/W
0x0


  TRAN_ERR_INT_EN

Bit 17
R/W
0x0


  TRAN_COM_INT_EN

Bit 16
R/W
0x0


  Unused

Bits 15 : 4

  RX_REQ_PD

Bit 3
R/W1C
0x0

Set when the data byte number in RECV_FIFO reaches RX_TRIG


  TX_REQ_PD

Bit 2
R/W1C
0x0

Set when there is no less than DMA_TX_TRIG empty byte number in SEND_FIFO


  TRAN_ERR_PD

Bit 1
R/W1C
0x0

Packet transmission failed pending


  TRAN_COM_PD

Bit 0
R/W1C
0x0

Packet transmission completed pending



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

md 5002214 1
md 5002614 1
md 5002a14 1
md 5002e14 1
md 5003214 1
md 7081614 1



Bit fields structure

typedef union  twi_drv_int_ctrl
{
  struct
  {
   unsigned tran_com_pd : 1;
   unsigned tran_err_pd : 1;
   unsigned tx_req_pd : 1;
   unsigned rx_req_pd : 1;
   unsigned unused0 : 12;
   unsigned tran_com_int_en : 1;
   unsigned tran_err_int_en : 1;
   unsigned tx_req_int_en : 1;
   unsigned rx_req_int_en : 1;
   unsigned unused1 : 12;
  } b;
   unsigned long w;
} TWI_DRV_INT_CTRL
   

Allwinner H616 Manual