WB32L003 Standard Peripherals Firmware Library
函数
wb32l003_uart.c 文件参考

This file provides all the UART firmware functions. 更多...

#include "wb32l003_uart.h"
#include "wb32l003_rcc.h"

函数

void UART_DeInit (UART_TypeDef *UARTx)
 Deinitializes the UARTx peripheral registers to their default reset values. 更多...
 
void UART_Init (UART_TypeDef *UARTx, UART_InitTypeDef *UART_InitStruct)
 Initializes the UARTx peripheral according to the specified parameters in the UART_InitStruct. 更多...
 
void UART_StructInit (UART_InitTypeDef *UART_InitStruct)
 Fills each UART_InitStruct member with its default value. 更多...
 
void UART_Cmd (UART_TypeDef *UARTx, FunctionalState NewState)
 Enables or disables the specified UART peripheral. 更多...
 
void UART_WriteData (UART_TypeDef *UARTx, uint8_t Data)
 Write data to SBUF register. 更多...
 
uint8_t UART_ReadData (UART_TypeDef *UARTx)
 Read data from SBUF register. 更多...
 
void UART_IrDACmd (UART_TypeDef *UARTx, FunctionalState NewState)
 Enables or disables the UARTx's IrDA Mode. 更多...
 
void UART_ITConfig (UART_TypeDef *UARTx, uint8_t UART_IT, FunctionalState NewState)
 Enables or disables the UARTx's interrupts. 更多...
 
void UART_MultideviceCmd (UART_TypeDef *UARTx, FunctionalState NewState)
 Enables or disables the UARTx's Multidevice function. 更多...
 
void UART_SetAddress (UART_TypeDef *UARTx, uint8_t UART_Address)
 Sets the address of the UART node. 更多...
 
void UART_SetAddressMask (UART_TypeDef *UARTx, uint8_t UART_AddressMask)
 Sets the address mask of the UART node. 更多...
 
FlagStatus UART_GetFlagStatus (UART_TypeDef *UARTx, uint32_t UART_FLAG)
 Checks whether the specified UART flag is set or not. 更多...
 
void UART_ClearFlag (UART_TypeDef *UARTx, uint32_t UART_FLAG)
 Clear the specified UART flag. 更多...
 

详细描述

This file provides all the UART firmware functions.

作者
Westberry Application Team
版本
V0.0.4
日期
23-April-2023