Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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

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
union uartRegs_t.__unnamed__

Definition at line 20 of file lpcUART.h.

Data Fields
REG_8 _pad0[4]
REG_8 dll
REG_8 rbr
REG_8 thr
union uartRegs_t.__unnamed__

Definition at line 28 of file lpcUART.h.

Data Fields
REG_8 _pad1[4]
REG_8 dlm
REG_8 ier
union uartRegs_t.__unnamed__

Definition at line 35 of file lpcUART.h.

Data Fields
REG_8 _pad2[4]
REG_8 fcr
REG_8 iir

Macro Definition Documentation

#define UFCR_FIFO_ENABLE   (1 << 0)

Definition at line 73 of file lpcUART.h.

#define UFCR_FIFO_TRIG1   (0 << 6)

Definition at line 76 of file lpcUART.h.

#define UFCR_FIFO_TRIG14   (3 << 6)

Definition at line 79 of file lpcUART.h.

#define UFCR_FIFO_TRIG4   (1 << 6)

Definition at line 77 of file lpcUART.h.

#define UFCR_FIFO_TRIG8   (2 << 6)

Definition at line 78 of file lpcUART.h.

#define UFCR_RX_FIFO_RESET   (1 << 1)

Definition at line 74 of file lpcUART.h.

#define UFCR_TX_FIFO_RESET   (1 << 2)

Definition at line 75 of file lpcUART.h.

#define UIER_EDSSI   (1 << 3)

Definition at line 61 of file lpcUART.h.

#define UIER_ELSI   (1 << 2)

Definition at line 60 of file lpcUART.h.

#define UIER_ERBFI   (1 << 0)

Definition at line 58 of file lpcUART.h.

Referenced by uart_enable_interrupts().

#define UIER_ETBEI   (1 << 1)

Definition at line 59 of file lpcUART.h.

Referenced by uart_put_byte().

#define UIIR_CTI_INT   (6 << 1)

Definition at line 69 of file lpcUART.h.

Referenced by uart_ISR().

#define UIIR_ID_MASK   0x0E

Definition at line 70 of file lpcUART.h.

Referenced by uart_ISR().

#define UIIR_MS_INT   (0 << 1)

Definition at line 65 of file lpcUART.h.

#define UIIR_NO_INT   (1 << 0)

Definition at line 64 of file lpcUART.h.

Referenced by uart_ISR().

#define UIIR_RDA_INT   (2 << 1)

Definition at line 67 of file lpcUART.h.

Referenced by uart_ISR().

#define UIIR_RLS_INT   (3 << 1)

Definition at line 68 of file lpcUART.h.

Referenced by uart_ISR().

#define UIIR_THRE_INT   (1 << 1)

Definition at line 66 of file lpcUART.h.

Referenced by uart_ISR().

#define ULCR_BREAK_ENABLE   (1 << 6)

Definition at line 93 of file lpcUART.h.

#define ULCR_CHAR_5   (0 << 0)

Definition at line 82 of file lpcUART.h.

#define ULCR_CHAR_6   (1 << 0)

Definition at line 83 of file lpcUART.h.

#define ULCR_CHAR_7   (2 << 0)

Definition at line 84 of file lpcUART.h.

#define ULCR_CHAR_8   (3 << 0)

Definition at line 85 of file lpcUART.h.

#define ULCR_DLAB_ENABLE   (1 << 7)

Definition at line 94 of file lpcUART.h.

Referenced by uart_set_baudrate().

#define ULCR_PAR_EVEN   (3 << 3)

Definition at line 90 of file lpcUART.h.

#define ULCR_PAR_MARK   (5 << 3)

Definition at line 91 of file lpcUART.h.

#define ULCR_PAR_NO   (0 << 3)

Definition at line 88 of file lpcUART.h.

#define ULCR_PAR_ODD   (1 << 3)

Definition at line 89 of file lpcUART.h.

#define ULCR_PAR_SPACE   (7 << 3)

Definition at line 92 of file lpcUART.h.

#define ULCR_STOP_1   (0 << 2)

Definition at line 86 of file lpcUART.h.

#define ULCR_STOP_2   (1 << 2)

Definition at line 87 of file lpcUART.h.

#define ULSR_BI   (1 << 4)

Definition at line 106 of file lpcUART.h.

#define ULSR_ERR_MASK   0x1E

Definition at line 110 of file lpcUART.h.

#define ULSR_FE   (1 << 3)

Definition at line 105 of file lpcUART.h.

#define ULSR_OE   (1 << 1)

Definition at line 103 of file lpcUART.h.

#define ULSR_PE   (1 << 2)

Definition at line 104 of file lpcUART.h.

#define ULSR_RDR   (1 << 0)

Definition at line 102 of file lpcUART.h.

Referenced by uart_ISR().

#define ULSR_RXFE   (1 << 7)

Definition at line 109 of file lpcUART.h.

#define ULSR_TEMT   (1 << 6)

Definition at line 108 of file lpcUART.h.

#define ULSR_THRE   (1 << 5)

Definition at line 107 of file lpcUART.h.

Referenced by uart_ISR().

#define UMCR_DTR   (1 << 0)

Definition at line 97 of file lpcUART.h.

#define UMCR_LB   (1 << 4)

Definition at line 99 of file lpcUART.h.

#define UMCR_RTS   (1 << 1)

Definition at line 98 of file lpcUART.h.

#define UMSR_CTS   (1 << 4)

Definition at line 117 of file lpcUART.h.

#define UMSR_DCD   (1 << 7)

Definition at line 120 of file lpcUART.h.

#define UMSR_DCTS   (1 << 0)

Definition at line 113 of file lpcUART.h.

#define UMSR_DDCD   (1 << 3)

Definition at line 116 of file lpcUART.h.

#define UMSR_DDSR   (1 << 1)

Definition at line 114 of file lpcUART.h.

#define UMSR_DSR   (1 << 5)

Definition at line 118 of file lpcUART.h.

#define UMSR_RI   (1 << 6)

Definition at line 119 of file lpcUART.h.

#define UMSR_TERI   (1 << 2)

Definition at line 115 of file lpcUART.h.