Регистры Allwinner H616

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


CIR_RXSTA
9.8.5. CIR Receiver Status Register - адрес: 0x7040030 (смещение: 0x0030)

Инфракрасный приемник: список регистров



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

  Unused

Bits 31 : 14

  RAC

Bits 13 : 8
R
0x0

RX FIFO Available Counter
0: No available data in RX FIFO
1: 1 byte available data in RX FIFO
2: 2 bytes available data in RX FIFO
***
64: 64 bytes available data in RX FIFO


  STAT

Bit 7
R
0x0

Status of CIR
0: Idle
1: Busy


  Unused

Bits 6 : 5

  RX_FIFO_AVAILABLE

Bit 4
R/W1C
0x0

0: RX FIFO not available according its level
1: RX FIFO available according its level
This bit is cleared by writing a 1 .


  Unused

Bits 3 : 2

  RPE

Bit 1
R/W1C
0x0

Receiver Packet End Flag
0: STO was not detected. In CIR mode, one CIR symbol is receiving or not detected.
1: STO field or packet abort symbol (7'b0000,000 and 8'b0000,0000 for MIR and FIR) is detected.
In CIR mode, one CIR symbol is received.
This bit is cleared by writing a 1 .


  ROI

Bit 0
R/W1C
0x0

Receiver FIFO Overrun
0: Receiver FIFO not overrun
1: Receiver FIFO overrun
This bit is cleared by writing a 1 .



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

md 7040030 1



Bit fields structure

typedef union  cir_rxsta
{
  struct
  {
   unsigned roi : 1;
   unsigned rpe : 1;
   unsigned unused0 : 2;
   unsigned rx_fifo_available : 1;
   unsigned unused1 : 2;
   unsigned stat : 1;
   unsigned rac : 6;
   unsigned unused2 : 18;
  } b;
   unsigned long w;
} CIR_RXSTA
   

Allwinner H616 Manual