NXP's driver library for LPC17xx, ported to mbed's online compiler. Not tested! I had to fix a lot of warings and found a couple of pretty obvious bugs, so the chances are there are more. Original: http://ics.nxp.com/support/documents/microcontrollers/zip/lpc17xx.cmsis.driver.library.zip
UART_Public_Types
[UART]
Data Structures | |
struct | UART_AB_CFG_Type |
Auto Baudrate mode configuration type definition. More... | |
struct | UART_CFG_Type |
UART Configuration Structure definition. More... | |
struct | UART_FIFO_CFG_Type |
UART FIFO Configuration Structure definition. More... | |
struct | UART1_RS485_CTRLCFG_Type |
UART1 Full modem - RS485 Control configuration type. More... | |
Typedefs | |
typedef void( | fnRxCbs_Type )(void) |
UART Receive Call-back function type. | |
typedef void( | fnTxCbs_Type )(void) |
UART Transmit Call-back function type. | |
typedef void( | fnABCbs_Type )(uint32_t bABIntType) |
UART Auto-Baudrate Call-back function type. | |
typedef void( | fnErrCbs_Type )(uint8_t bError) |
UART Error Call-back function type. | |
typedef void( | fnModemCbs_Type )(uint8_t ModemStatus) |
UART1 modem status interrupt callback type. | |
Enumerations | |
enum | UART_DATABIT_Type { UART_DATABIT_5 = 0, UART_DATABIT_6, UART_DATABIT_7, UART_DATABIT_8 } |
UART Databit type definitions. More... | |
enum | UART_STOPBIT_Type { UART_STOPBIT_1 = (0), UART_STOPBIT_2 } |
UART Stop bit type definitions. More... | |
enum | UART_PARITY_Type { UART_PARITY_NONE = 0, UART_PARITY_ODD, UART_PARITY_EVEN, UART_PARITY_SP_1, UART_PARITY_SP_0 } |
UART Parity type definitions. More... | |
enum | UART_FITO_LEVEL_Type { UART_FIFO_TRGLEV0 = 0, UART_FIFO_TRGLEV1, UART_FIFO_TRGLEV2, UART_FIFO_TRGLEV3 } |
FIFO Level type definitions. More... | |
enum | UART_INT_Type { UART_INTCFG_RBR = 0, UART_INTCFG_THRE, UART_INTCFG_RLS, UART1_INTCFG_MS, UART1_INTCFG_CTS, UART_INTCFG_ABEO, UART_INTCFG_ABTO } |
UART Interrupt Type definitions. More... | |
enum | UART_LS_Type { UART_LINESTAT_RDR = UART_LSR_RDR, UART_LINESTAT_OE = UART_LSR_OE, UART_LINESTAT_PE = UART_LSR_PE, UART_LINESTAT_FE = UART_LSR_FE, UART_LINESTAT_BI = UART_LSR_BI, UART_LINESTAT_THRE = UART_LSR_THRE, UART_LINESTAT_TEMT = UART_LSR_TEMT, UART_LINESTAT_RXFE = UART_LSR_RXFE } |
UART Line Status Type definition. More... | |
enum | UART_AB_MODE_Type { UART_AUTOBAUD_MODE0 = 0, UART_AUTOBAUD_MODE1 } |
UART Auto-baudrate mode type definition. More... | |
enum | UART_ABEO_Type { UART_AUTOBAUD_INTSTAT_ABEO = UART_IIR_ABEO_INT, UART_AUTOBAUD_INTSTAT_ABTO = UART_IIR_ABTO_INT } |
UART End of Auto-baudrate type definition. More... | |
enum | UART_IrDA_PULSE_Type { UART_IrDA_PULSEDIV2 = 0, UART_IrDA_PULSEDIV4, UART_IrDA_PULSEDIV8, UART_IrDA_PULSEDIV16, UART_IrDA_PULSEDIV32, UART_IrDA_PULSEDIV64, UART_IrDA_PULSEDIV128, UART_IrDA_PULSEDIV256 } |
UART IrDA Control type Definition. More... | |
enum | UART1_SignalState |
UART1 Full modem - Signal states definition. More... | |
enum | UART_MODEM_STAT_type { UART1_MODEM_STAT_DELTA_CTS = UART1_MSR_DELTA_CTS, UART1_MODEM_STAT_DELTA_DSR = UART1_MSR_DELTA_DSR, UART1_MODEM_STAT_LO2HI_RI = UART1_MSR_LO2HI_RI, UART1_MODEM_STAT_DELTA_DCD = UART1_MSR_DELTA_DCD, UART1_MODEM_STAT_CTS = UART1_MSR_CTS, UART1_MODEM_STAT_DSR = UART1_MSR_DSR, UART1_MODEM_STAT_RI = UART1_MSR_RI, UART1_MODEM_STAT_DCD = UART1_MSR_DCD } |
UART modem status type definition. More... | |
enum | UART_MODEM_PIN_Type { UART1_MODEM_PIN_DTR = 0, UART1_MODEM_PIN_RTS } |
Modem output pin type definition. More... | |
enum | UART_MODEM_MODE_Type { UART1_MODEM_MODE_LOOPBACK = 0, UART1_MODEM_MODE_AUTO_RTS, UART1_MODEM_MODE_AUTO_CTS } |
UART Modem mode type definition. More... | |
enum | UART_RS485_DIRCTRL_PIN_Type { UART1_RS485_DIRCTRL_RTS = 0, UART1_RS485_DIRCTRL_DTR } |
UART Direction Control Pin type definition. More... |
Typedef Documentation
typedef void( fnABCbs_Type)(uint32_t bABIntType) |
UART Auto-Baudrate Call-back function type.
Definition at line 529 of file lpc17xx_uart.h.
typedef void( fnErrCbs_Type)(uint8_t bError) |
UART Error Call-back function type.
Definition at line 531 of file lpc17xx_uart.h.
typedef void( fnModemCbs_Type)(uint8_t ModemStatus) |
UART1 modem status interrupt callback type.
Definition at line 533 of file lpc17xx_uart.h.
typedef void( fnRxCbs_Type)(void) |
UART Receive Call-back function type.
Definition at line 525 of file lpc17xx_uart.h.
typedef void( fnTxCbs_Type)(void) |
UART Transmit Call-back function type.
Definition at line 527 of file lpc17xx_uart.h.
Enumeration Type Documentation
enum UART1_SignalState |
UART1 Full modem - Signal states definition.
Definition at line 381 of file lpc17xx_uart.h.
enum UART_AB_MODE_Type |
UART Auto-baudrate mode type definition.
- Enumerator:
UART_AUTOBAUD_MODE0 UART Auto baudrate Mode 0.
UART_AUTOBAUD_MODE1 UART Auto baudrate Mode 1.
Definition at line 321 of file lpc17xx_uart.h.
enum UART_ABEO_Type |
UART End of Auto-baudrate type definition.
- Enumerator:
UART_AUTOBAUD_INTSTAT_ABEO UART End of auto-baud interrupt.
UART_AUTOBAUD_INTSTAT_ABTO UART Auto-baud time-out interrupt.
Definition at line 341 of file lpc17xx_uart.h.
enum UART_DATABIT_Type |
UART Databit type definitions.
- Enumerator:
UART_DATABIT_5 UART 5 bit data mode
UART_DATABIT_6 UART 6 bit data mode
UART_DATABIT_7 UART 7 bit data mode
UART_DATABIT_8 UART 8 bit data mode
Definition at line 228 of file lpc17xx_uart.h.
enum UART_FITO_LEVEL_Type |
FIFO Level type definitions.
- Enumerator:
Definition at line 269 of file lpc17xx_uart.h.
enum UART_INT_Type |
UART Interrupt Type definitions.
- Enumerator:
Definition at line 284 of file lpc17xx_uart.h.
enum UART_IrDA_PULSE_Type |
UART IrDA Control type Definition.
- Enumerator:
Definition at line 352 of file lpc17xx_uart.h.
enum UART_LS_Type |
UART Line Status Type definition.
- Enumerator:
Definition at line 306 of file lpc17xx_uart.h.
enum UART_MODEM_MODE_Type |
UART Modem mode type definition.
- Enumerator:
UART1_MODEM_MODE_LOOPBACK Loop back mode select
UART1_MODEM_MODE_AUTO_RTS Enable Auto RTS flow-control
UART1_MODEM_MODE_AUTO_CTS Enable Auto CTS flow-control
Definition at line 418 of file lpc17xx_uart.h.
enum UART_MODEM_PIN_Type |
Modem output pin type definition.
- Enumerator:
UART1_MODEM_PIN_DTR Source for modem output pin DTR
UART1_MODEM_PIN_RTS Source for modem output pin RTS
Definition at line 406 of file lpc17xx_uart.h.
enum UART_MODEM_STAT_type |
UART modem status type definition.
- Enumerator:
Definition at line 392 of file lpc17xx_uart.h.
enum UART_PARITY_Type |
UART Parity type definitions.
- Enumerator:
UART_PARITY_NONE No parity
UART_PARITY_ODD Odd parity
UART_PARITY_EVEN Even parity
UART_PARITY_SP_1 Forced "1" stick parity
UART_PARITY_SP_0 Forced "0" stick parity
Definition at line 253 of file lpc17xx_uart.h.
UART Direction Control Pin type definition.
- Enumerator:
UART1_RS485_DIRCTRL_RTS Pin RTS is used for direction control.
UART1_RS485_DIRCTRL_DTR Pin DTR is used for direction control.
Definition at line 432 of file lpc17xx_uart.h.
enum UART_STOPBIT_Type |
UART Stop bit type definitions.
Definition at line 242 of file lpc17xx_uart.h.
Generated on Tue Jul 12 2022 17:06:03 by 1.7.2