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

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

#include "wb32l003_lpuart.h"
#include "wb32l003_rcc.h"

函数

void LPUART_DeInit (LPUART_TypeDef *LPUARTx)
 Deinitializes the LPUARTx peripheral registers to their default reset values. 更多...
 
void LPUART_Init (LPUART_TypeDef *LPUARTx, LPUART_InitTypeDef *LPUART_InitStruct)
 Initializes the LPUARTx peripheral according to the specified parameters in the LPUART_InitStruct. 更多...
 
void LPUART_StructInit (LPUART_InitTypeDef *LPUART_InitStruct)
 Fills each LPUART_InitStruct member with its default value. 更多...
 
void LPUART_Cmd (LPUART_TypeDef *LPUARTx, FunctionalState NewState)
 Enables or disables the specified LPUART peripheral. 更多...
 
void LPUART_WriteData (LPUART_TypeDef *LPUARTx, uint8_t Data)
 Write data to SBUF register. 更多...
 
uint8_t LPUART_ReadData (LPUART_TypeDef *LPUARTx)
 Read data from SBUF register. 更多...
 
void LPUART_ITConfig (LPUART_TypeDef *LPUARTx, uint32_t LPUART_IT, FunctionalState NewState)
 Enables or disables the LPUARTx's interrupts. 更多...
 
void LPUART_MultideviceCmd (LPUART_TypeDef *LPUARTx, FunctionalState NewState)
 Enables or disables the LPUARTx's Multidevice function. 更多...
 
void LPUART_SetAddress (LPUART_TypeDef *LPUARTx, uint8_t LPUART_Address)
 Sets the address of the LPUART node. 更多...
 
void LPUART_SetAddressMask (LPUART_TypeDef *LPUARTx, uint8_t LPUART_AddressMask)
 Sets the address mask of the LPUART node. 更多...
 
FlagStatus LPUART_GetFlagStatus (LPUART_TypeDef *LPUARTx, uint32_t LPUART_FLAG)
 Checks whether the specified UART flag is set or not. 更多...
 
void LPUART_ClearFlag (LPUART_TypeDef *LPUARTx, uint32_t LPUART_FLAG)
 Clear the specified LPUART flag. 更多...
 

详细描述

This file provides all the LPUART firmware functions.

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