Регистры Allwinner H616

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


SPI_FSR
9.3.5. SPI FIFO Status Register - адрес: 0x501001c 0x501101c (смещение: 0x001C)

Синхронный последовательный интерфейс: список регистров



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

  TB_WR

Bit 31
R
0x0

TX FIFO Write Buffer Write Enable


  TB_CNT

Bits 30 : 28
R
0x0

TX FIFO Write Buffer Counter
These bits indicate the number of words in TX FIFO Write Buffer


  Unused

Bits 27 : 24

  TF_CNT

Bits 23 : 16
R
0x0

TX FIFO Counter
These bits indicate the number of words in TX FIFO
0: 0 byte in TX FIFO
1: 1 byte in TX FIFO
***
64: 64 bytes in TX FIFO
other: Reserved


  RB_WR

Bit 15
R
0x0

RX FIFO Read Buffer Write Enable


  RB_CNT

Bits 14 : 12
R
0x0

RX FIFO Read Buffer Counter
These bits indicate the number of words in RX FIFO Read Buffer


  Unused

Bits 11 : 8

  RF_CNT

Bits 7 : 0
R
0x0

RX FIFO Counter
These bits indicate the number of words in RX FIFO
0: 0 byte in RX FIFO
1: 1 byte in RX FIFO
***
64: 64 bytes in RX FIFO
other: Reserved



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

md 501001c 1
md 501101c 1



Bit fields structure

typedef union  spi_fsr
{
  struct
  {
   unsigned rf_cnt : 8;
   unsigned unused0 : 4;
   unsigned rb_cnt : 3;
   unsigned rb_wr : 1;
   unsigned tf_cnt : 8;
   unsigned unused1 : 4;
   unsigned tb_cnt : 3;
   unsigned tb_wr : 1;
  } b;
   unsigned long w;
} SPI_FSR
   

Allwinner H616 Manual