|
enum | UART_ERRORFLAG {
UART_FramingError = 0,
UART_ParityError = 1,
UART_BreakError = 2,
UART_OverrunError = 3
} |
| UART接收错误标志寄存器定义 更多...
|
|
enum | UART_FLAGStatus {
UART_CTS = 0,
UART_DSR = 1,
UART_DCD = 2,
UART_RI = 3,
UART_BUSY = 4,
UART_RXFF = 5,
UART_RXFE = 6,
UART_TXFF = 7,
UART_TXFE = 8,
UART_EOC = 9,
UART_EDF = 10
} |
| UART标志寄存器定义 更多...
|
|
enum | UART_BaudRate {
UART_BaudRate2400 = 2400,
UART_BaudRate4800 = 4800,
UART_BaudRate9600 = 9600,
UART_BaudRate19200 = 19200,
UART_BaudRate38400 = 38400,
UART_BaudRate57600 = 57600,
UART_BaudRate115200 = 115200,
UART_BaudRate230400 = 230400,
UART_BaudRate380400 = 380400,
UART_BaudRate460800 = 460800,
UART_BaudRate921600 = 921600,
UART_BaudRate1M = 1000000,
UART_BaudRate2M = 2000000,
UART_BaudRate3M = 3000000
} |
| UART波特率定义 更多...
|
|
enum | UART_WordLength {
UART_WordLength_5b = 0,
UART_WordLength_6b = 1,
UART_WordLength_7b = 2,
UART_WordLength_8b = 3
} |
| UART每帧有效数据位定义 更多...
|
|
enum | UART_StopBits {
UART_StopBits_1 = 0,
UART_StopBits_1_5 = 1,
UART_StopBits_2 = 2
} |
| UART停止位定义 更多...
|
|
enum | UART_Parity {
UART_Parity_No = 0x0,
UART_Parity_Odd = 0x01,
UART_Parity_Even = 0x03
} |
| UART奇偶校验定义 更多...
|
|
enum | UART_ByteWord {
UART_Byte = 1,
UART_Word = 0
} |
| UART总线数据传输模式定义 更多...
|
|
enum | UART_CRBitCtrl {
UART_CTSHardwareFlowCtrl = 15,
UART_RTSHardwareFlowCtrl = 14,
UART_Out2_RI = 13,
UART_Out1_DCD = 12,
UART_RTS = 11,
UART_DTR = 10,
UART_RXE = 9,
UART_TXE = 8,
UART_LoopBackE = 7,
UART_NCED = 1
} |
| UART控制寄存器定义 更多...
|
|
enum | UART_FIFOLevel {
UART_FIFOLevel1_8 = 0,
UART_FIFOLevel1_4 = 1,
UART_FIFOLevel1_2 = 2,
UART_FIFOLevel3_4 = 3,
UART_FIFOLevel7_8 = 4,
UART_FIFOLevel1 = 5,
UART_FIFOLevel2 = 6
} |
| UART Tx/RxFIFO触发深度定义 更多...
|
|
enum | UART_IntMask {
UART_ErrorDataInt = 11,
UART_OverrunErrorInt = 10,
UART_BreakErrorInt = 9,
UART_ParityErrorInt = 8,
UART_FramingErrorInt = 7,
UART_RXTimeoutInt = 6,
UART_TXInt = 5,
UART_RXInt = 4,
UART_DSRModemInt = 3,
UART_DCDModemInt = 2,
UART_CTSModemInt = 1,
UART_RIModemInt = 0,
UART_AllInt = 12
} |
| UART中断标志定义 更多...
|
|
enum | UART_TXRXDMA {
UART_RXDMA = 0,
UART_TXDMA = 1
} |
| UART 定义 更多...
|
|
|
void | UartPollingSenddata (UART_TypeDef *UARTx, char ch) |
| UART 查询方式发送一个字节数据 更多...
|
|
char | UartPollingReceiveData (UART_TypeDef *UARTx) |
| UART 查询方式接收一个字节数据 更多...
|
|
void | UARTPollingConfig (UART_TypeDef *UARTx, UART_BaudRate uartbaudrate) |
| UART 查询模式初始化 更多...
|
|
void | UART_IntMaskConfig (UART_TypeDef *UARTx, UART_IntMask intmask, FunctionalState cmd) |
| UART 中断屏蔽设置 更多...
|
|
void | UARTInterruptConfig (UART_TypeDef *UARTx, UART_BaudRate bd) |
| UART 中断模式初始化 更多...
|
|
void | UARTDMAConfig (UART_TypeDef *UARTx, UART_BaudRate uartbaudrate) |
| UART DMA模式初始化(dma按byte宽度传输) 更多...
|
|
int | UART_MaskIntState (UART_TypeDef *UARTx, UART_IntMask intmask) |
| UART 屏蔽后的中断状态 更多...
|
|
void | UART_IntClear (UART_TypeDef *UARTx, UART_IntMask intmask) |
| UART 清除中断标志 更多...
|
|
unsigned char | UART_RXDATA (UART_TypeDef *UARTx) |
| UART非阻塞模式接收数据(使用时需确保接收FIFO不为空) 更多...
|
|
int | UART_ERRORSTATE (UART_TypeDef *UARTx, UART_ERRORFLAG uarterrorflag) |
| UART错误标志状态 更多...
|
|
void | UART_TXDATAConfig (UART_TypeDef *UARTx, unsigned int val) |
| UART非阻塞模式发送数据(使用时需确保发送FIFO不为满) 更多...
|
|
int | UART_FLAGSTAT (UART_TypeDef *UARTx, UART_FLAGStatus uartflag) |
| 读 UART 标志寄存器 更多...
|
|
int | UART_BAUDRATEConfig (UART_TypeDef *UARTx, UART_BaudRate uartbaudrate) |
| UART的波特率配置 更多...
|
|
void | UART_FIFOClear (UART_TypeDef *UARTx) |
| 清除 UART FIFO数据 更多...
|
|
int | UART_LCRConfig (UART_TypeDef *UARTx, UART_WordLength wordlength, UART_StopBits uartstopbits, UART_Parity uartparity) |
| 配置UART的数据位、停止位、奇偶校验位 更多...
|
|
int | UART_TXFIFOByteWordConfig (UART_TypeDef *UARTx, UART_ByteWord uarttxfifobit) |
| 设置UART的发送FIFO数据位宽 更多...
|
|
void | UART_EN (UART_TypeDef *UARTx, FunctionalState cmd) |
| UART 使能控制 更多...
|
|
void | UART_CRConfig (UART_TypeDef *UARTx, UART_CRBitCtrl crbitctrl, FunctionalState cmd) |
| UART 信号使能控制 更多...
|
|
void | UART_RXFIFOConfig (UART_TypeDef *UARTx, UART_FIFOLevel fifoleve) |
| UART 接收FIFO 触发深度选择 更多...
|
|
void | UART_TXFIFOConfig (UART_TypeDef *UARTx, UART_FIFOLevel fifoleve) |
| UART 发送FIFO 触发深度选择 更多...
|
|
int | UART_RawIntState (UART_TypeDef *UARTx, UART_IntMask intmask) |
| UART 原始中断(中断屏蔽前)状态 更多...
|
|
void | UART_TXRXDMAConfig (UART_TypeDef *UARTx, UART_TXRXDMA uartdma) |
| UART DMA 发送/接收控制使能 更多...
|
|
void | UART_TimeoutConfig (UART_TypeDef *UARTx, unsigned short time) |
| UART 超时设置 更多...
|
|
void | UartPollingSenddone (UART_TypeDef *UARTx) |
| 等待 UART 发送完毕 更多...
|
|
void | UART_DMAByteWordConfig (UART_TypeDef *UARTx, FunctionalState cmd) |
| UART DMA Byte/word 传输模式设置(仅DMA模式下配置) 更多...
|
|
void | UartSetCLKBaseBaudrate (UART_TypeDef *UARTx, UART_BaudRate uartbaudrate) |
| 根据波特率配置相应的外设时钟,并打开外设时钟 更多...
|
|