Регистры Allwinner H616

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


TWI_DRV_DMA_CFG
9.1.5. TWI_DRV DMA Configure Register - адрес: 0x5002218 0x5002618 0x5002a18 0x5002e18 0x5003218 0x7081618 (смещение: 0x0218)

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



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

  Unused

Bits 31 : 25

  DMA_RX_EN

Bit 24
R/W
0x0


  Unused

Bits 23 : 22

  RX_TRIG

Bits 21 : 16
R/W
0x10

When DMA_RX_EN set, send DMA RX Req when the data byte number in
RECV_FIFO reaches RX_TRIG or Read Packet Transmission completed with
RECV_FIFO not empty


  Unused

Bits 15 : 9

  DMA_TX_EN

Bit 8
R/W
0x0


  Unused

Bits 7 : 6

  TX_TRIG

Bits 5 : 0
R/W
0x10

When DMA_TX_EN set, send DMA TX Req when there is no less than
DMA_TX_TRIG empty byte number in SEND_FIFO



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

md 5002218 1
md 5002618 1
md 5002a18 1
md 5002e18 1
md 5003218 1
md 7081618 1



Bit fields structure

typedef union  twi_drv_dma_cfg
{
  struct
  {
   unsigned tx_trig : 6;
   unsigned unused0 : 2;
   unsigned dma_tx_en : 1;
   unsigned unused1 : 7;
   unsigned rx_trig : 6;
   unsigned unused2 : 2;
   unsigned dma_rx_en : 1;
   unsigned unused3 : 7;
  } b;
   unsigned long w;
} TWI_DRV_DMA_CFG
   

Allwinner H616 Manual