WB32L003 Standard Peripherals Firmware Library
模块 | 结构体 | 宏定义 | 函数

BEEP driver modules 更多...

模块

 BEEP_Exported_Constants
 
 BEEP_Private_Functions
 

结构体

struct  BEEP_InitTypeDef
 BEEP Init structure definition 更多...
 

宏定义

#define IS_BEEP_CLK_SEL(SEL)
 
#define IS_BEEP_PRESCALER(PRESCALER)   ((PRESCALER) < 4096)
 
#define IS_BEEP_OUT_DIV(DIV)
 

函数

void BEEP_DeInit (BEEP_TypeDef *BEEPx)
 Deinitializes the BEEP peripheral registers to their default reset values. 更多...
 
void BEEP_Init (BEEP_TypeDef *BEEPx, BEEP_InitTypeDef *BEEP_InitStruct)
 Initializes the BEEP peripheral according to the specified parameters in the BEEP_InitStruct. 更多...
 
void BEEP_Cmd (BEEP_TypeDef *BEEPx, FunctionalState NewState)
 Enables or disables BEEP peripheral. 更多...
 

详细描述

BEEP driver modules

宏定义说明

◆ IS_BEEP_CLK_SEL

#define IS_BEEP_CLK_SEL (   SEL)
值:
(((SEL) == BEEP_ClkSel_STOP) || \
((SEL) == BEEP_ClkSel_LSI) || \
((SEL) == BEEP_ClkSel_HSE) || \
((SEL) == BEEP_ClkSel_PCLK))

◆ IS_BEEP_OUT_DIV

#define IS_BEEP_OUT_DIV (   DIV)
值:
(((DIV) == BEEP_OutDiv2) || \
((DIV) == BEEP_OutDiv4) || \
((DIV) == BEEP_OutDiv8))

函数说明

◆ BEEP_Cmd()

void BEEP_Cmd ( BEEP_TypeDef BEEPx,
FunctionalState  NewState 
)

Enables or disables BEEP peripheral.

参数
BEEPxPointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP.
NewStateThe new state of the BEEP peripheral. This parameter can be: ENABLE or DISABLE.
返回值
None

◆ BEEP_DeInit()

void BEEP_DeInit ( BEEP_TypeDef BEEPx)

Deinitializes the BEEP peripheral registers to their default reset values.

参数
BEEPxPointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP.
返回值
None

◆ BEEP_Init()

void BEEP_Init ( BEEP_TypeDef BEEPx,
BEEP_InitTypeDef BEEP_InitStruct 
)

Initializes the BEEP peripheral according to the specified parameters in the BEEP_InitStruct.

参数
BEEPxPointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP.
BEEP_InitStructPointer to BEEP initialization struct
返回值
None