Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
lpcUART.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  uartRegs_t
 
union  uartRegs_t.__unnamed__
 
union  uartRegs_t.__unnamed__
 
union  uartRegs_t.__unnamed__
 

Macros

#define UIER_ERBFI   (1 << 0)
 
#define UIER_ETBEI   (1 << 1)
 
#define UIER_ELSI   (1 << 2)
 
#define UIER_EDSSI   (1 << 3)
 
#define UIIR_NO_INT   (1 << 0)
 
#define UIIR_MS_INT   (0 << 1)
 
#define UIIR_THRE_INT   (1 << 1)
 
#define UIIR_RDA_INT   (2 << 1)
 
#define UIIR_RLS_INT   (3 << 1)
 
#define UIIR_CTI_INT   (6 << 1)
 
#define UIIR_ID_MASK   0x0E
 
#define UFCR_FIFO_ENABLE   (1 << 0)
 
#define UFCR_RX_FIFO_RESET   (1 << 1)
 
#define UFCR_TX_FIFO_RESET   (1 << 2)
 
#define UFCR_FIFO_TRIG1   (0 << 6)
 
#define UFCR_FIFO_TRIG4   (1 << 6)
 
#define UFCR_FIFO_TRIG8   (2 << 6)
 
#define UFCR_FIFO_TRIG14   (3 << 6)
 
#define ULCR_CHAR_5   (0 << 0)
 
#define ULCR_CHAR_6   (1 << 0)
 
#define ULCR_CHAR_7   (2 << 0)
 
#define ULCR_CHAR_8   (3 << 0)
 
#define ULCR_STOP_1   (0 << 2)
 
#define ULCR_STOP_2   (1 << 2)
 
#define ULCR_PAR_NO   (0 << 3)
 
#define ULCR_PAR_ODD   (1 << 3)
 
#define ULCR_PAR_EVEN   (3 << 3)
 
#define ULCR_PAR_MARK   (5 << 3)
 
#define ULCR_PAR_SPACE   (7 << 3)
 
#define ULCR_BREAK_ENABLE   (1 << 6)
 
#define ULCR_DLAB_ENABLE   (1 << 7)
 
#define UMCR_DTR   (1 << 0)
 
#define UMCR_RTS   (1 << 1)
 
#define UMCR_LB   (1 << 4)
 
#define ULSR_RDR   (1 << 0)
 
#define ULSR_OE   (1 << 1)
 
#define ULSR_PE   (1 << 2)
 
#define ULSR_FE   (1 << 3)
 
#define ULSR_BI   (1 << 4)
 
#define ULSR_THRE   (1 << 5)
 
#define ULSR_TEMT   (1 << 6)
 
#define ULSR_RXFE   (1 << 7)
 
#define ULSR_ERR_MASK   0x1E
 
#define UMSR_DCTS   (1 << 0)
 
#define UMSR_DDSR   (1 << 1)
 
#define UMSR_TERI   (1 << 2)
 
#define UMSR_DDCD   (1 << 3)
 
#define UMSR_CTS   (1 << 4)
 
#define UMSR_DSR   (1 << 5)
 
#define UMSR_RI   (1 << 6)
 
#define UMSR_DCD   (1 << 7)
 

Data Structure Documentation

◆ uartRegs_t

struct uartRegs_t

Definition at line 18 of file lpcUART.h.

Data Fields
union uartRegs_t __unnamed__
union uartRegs_t __unnamed__
union uartRegs_t __unnamed__
REG_8 _pad3[3]
REG_8 _pad4[3]
REG_8 _pad5[3]
REG_8 _pad6[3]
REG_8 _pad7[3]
REG_8 lcr
REG_8 lsr
REG_8 mcr
REG_8 msr
REG_8 scr

◆ uartRegs_t.__unnamed__

union uartRegs_t.__unnamed__

Definition at line 32 of file lpcUART.h.

Data Fields
REG_8 _pad0[4]
REG_8 dll
REG_8 rbr
REG_8 thr

◆ uartRegs_t.__unnamed__

union uartRegs_t.__unnamed__

Definition at line 40 of file lpcUART.h.

Data Fields
REG_8 _pad1[4]
REG_8 dlm
REG_8 ier

◆ uartRegs_t.__unnamed__

union uartRegs_t.__unnamed__

Definition at line 47 of file lpcUART.h.

Data Fields
REG_8 _pad2[4]
REG_8 fcr
REG_8 iir

Macro Definition Documentation

◆ UFCR_FIFO_ENABLE

#define UFCR_FIFO_ENABLE   (1 << 0)

Definition at line 73 of file lpcUART.h.

◆ UFCR_FIFO_TRIG1

#define UFCR_FIFO_TRIG1   (0 << 6)

Definition at line 76 of file lpcUART.h.

◆ UFCR_FIFO_TRIG14

#define UFCR_FIFO_TRIG14   (3 << 6)

Definition at line 79 of file lpcUART.h.

◆ UFCR_FIFO_TRIG4

#define UFCR_FIFO_TRIG4   (1 << 6)

Definition at line 77 of file lpcUART.h.

◆ UFCR_FIFO_TRIG8

#define UFCR_FIFO_TRIG8   (2 << 6)

Definition at line 78 of file lpcUART.h.

◆ UFCR_RX_FIFO_RESET

#define UFCR_RX_FIFO_RESET   (1 << 1)

Definition at line 74 of file lpcUART.h.

◆ UFCR_TX_FIFO_RESET

#define UFCR_TX_FIFO_RESET   (1 << 2)

Definition at line 75 of file lpcUART.h.

◆ UIER_EDSSI

#define UIER_EDSSI   (1 << 3)

Definition at line 61 of file lpcUART.h.

◆ UIER_ELSI

#define UIER_ELSI   (1 << 2)

Definition at line 60 of file lpcUART.h.

◆ UIER_ERBFI

#define UIER_ERBFI   (1 << 0)

Definition at line 58 of file lpcUART.h.

◆ UIER_ETBEI

#define UIER_ETBEI   (1 << 1)

Definition at line 59 of file lpcUART.h.

◆ UIIR_CTI_INT

#define UIIR_CTI_INT   (6 << 1)

Definition at line 69 of file lpcUART.h.

◆ UIIR_ID_MASK

#define UIIR_ID_MASK   0x0E

Definition at line 70 of file lpcUART.h.

◆ UIIR_MS_INT

#define UIIR_MS_INT   (0 << 1)

Definition at line 65 of file lpcUART.h.

◆ UIIR_NO_INT

#define UIIR_NO_INT   (1 << 0)

Definition at line 64 of file lpcUART.h.

◆ UIIR_RDA_INT

#define UIIR_RDA_INT   (2 << 1)

Definition at line 67 of file lpcUART.h.

◆ UIIR_RLS_INT

#define UIIR_RLS_INT   (3 << 1)

Definition at line 68 of file lpcUART.h.

◆ UIIR_THRE_INT

#define UIIR_THRE_INT   (1 << 1)

Definition at line 66 of file lpcUART.h.

◆ ULCR_BREAK_ENABLE

#define ULCR_BREAK_ENABLE   (1 << 6)

Definition at line 93 of file lpcUART.h.

◆ ULCR_CHAR_5

#define ULCR_CHAR_5   (0 << 0)

Definition at line 82 of file lpcUART.h.

◆ ULCR_CHAR_6

#define ULCR_CHAR_6   (1 << 0)

Definition at line 83 of file lpcUART.h.

◆ ULCR_CHAR_7

#define ULCR_CHAR_7   (2 << 0)

Definition at line 84 of file lpcUART.h.

◆ ULCR_CHAR_8

#define ULCR_CHAR_8   (3 << 0)

Definition at line 85 of file lpcUART.h.

◆ ULCR_DLAB_ENABLE

#define ULCR_DLAB_ENABLE   (1 << 7)

Definition at line 94 of file lpcUART.h.

◆ ULCR_PAR_EVEN

#define ULCR_PAR_EVEN   (3 << 3)

Definition at line 90 of file lpcUART.h.

◆ ULCR_PAR_MARK

#define ULCR_PAR_MARK   (5 << 3)

Definition at line 91 of file lpcUART.h.

◆ ULCR_PAR_NO

#define ULCR_PAR_NO   (0 << 3)

Definition at line 88 of file lpcUART.h.

◆ ULCR_PAR_ODD

#define ULCR_PAR_ODD   (1 << 3)

Definition at line 89 of file lpcUART.h.

◆ ULCR_PAR_SPACE

#define ULCR_PAR_SPACE   (7 << 3)

Definition at line 92 of file lpcUART.h.

◆ ULCR_STOP_1

#define ULCR_STOP_1   (0 << 2)

Definition at line 86 of file lpcUART.h.

◆ ULCR_STOP_2

#define ULCR_STOP_2   (1 << 2)

Definition at line 87 of file lpcUART.h.

◆ ULSR_BI

#define ULSR_BI   (1 << 4)

Definition at line 106 of file lpcUART.h.

◆ ULSR_ERR_MASK

#define ULSR_ERR_MASK   0x1E

Definition at line 110 of file lpcUART.h.

◆ ULSR_FE

#define ULSR_FE   (1 << 3)

Definition at line 105 of file lpcUART.h.

◆ ULSR_OE

#define ULSR_OE   (1 << 1)

Definition at line 103 of file lpcUART.h.

◆ ULSR_PE

#define ULSR_PE   (1 << 2)

Definition at line 104 of file lpcUART.h.

◆ ULSR_RDR

#define ULSR_RDR   (1 << 0)

Definition at line 102 of file lpcUART.h.

◆ ULSR_RXFE

#define ULSR_RXFE   (1 << 7)

Definition at line 109 of file lpcUART.h.

◆ ULSR_TEMT

#define ULSR_TEMT   (1 << 6)

Definition at line 108 of file lpcUART.h.

◆ ULSR_THRE

#define ULSR_THRE   (1 << 5)

Definition at line 107 of file lpcUART.h.

◆ UMCR_DTR

#define UMCR_DTR   (1 << 0)

Definition at line 97 of file lpcUART.h.

◆ UMCR_LB

#define UMCR_LB   (1 << 4)

Definition at line 99 of file lpcUART.h.

◆ UMCR_RTS

#define UMCR_RTS   (1 << 1)

Definition at line 98 of file lpcUART.h.

◆ UMSR_CTS

#define UMSR_CTS   (1 << 4)

Definition at line 117 of file lpcUART.h.

◆ UMSR_DCD

#define UMSR_DCD   (1 << 7)

Definition at line 120 of file lpcUART.h.

◆ UMSR_DCTS

#define UMSR_DCTS   (1 << 0)

Definition at line 113 of file lpcUART.h.

◆ UMSR_DDCD

#define UMSR_DDCD   (1 << 3)

Definition at line 116 of file lpcUART.h.

◆ UMSR_DDSR

#define UMSR_DDSR   (1 << 1)

Definition at line 114 of file lpcUART.h.

◆ UMSR_DSR

#define UMSR_DSR   (1 << 5)

Definition at line 118 of file lpcUART.h.

◆ UMSR_RI

#define UMSR_RI   (1 << 6)

Definition at line 119 of file lpcUART.h.

◆ UMSR_TERI

#define UMSR_TERI   (1 << 2)

Definition at line 115 of file lpcUART.h.