MG32L003 Standard Peripherals Firmware Library
Modules | Data Structures | Macros | Functions

BEEP driver modules. More...

Modules

 BEEP_Exported_Constants
 
 BEEP_Private_Functions
 

Data Structures

struct  BEEP_InitTypeDef
 BEEP Init structure definition. More...
 

Macros

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

Functions

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

Detailed Description

BEEP driver modules.

Macro Definition Documentation

◆ IS_BEEP_CLK_SEL

#define IS_BEEP_CLK_SEL (   SEL)
Value:
(((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)
Value:
(((DIV) == BEEP_OutDiv2) || \
((DIV) == BEEP_OutDiv4) || \
((DIV) == BEEP_OutDiv8))

Function Documentation

◆ BEEP_Cmd()

void BEEP_Cmd ( BEEP_TypeDef BEEPx,
FunctionalState  NewState 
)

Enables or disables BEEP peripheral.

Parameters
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.
Return values
None

◆ BEEP_DeInit()

void BEEP_DeInit ( BEEP_TypeDef BEEPx)

Deinitializes the BEEP peripheral registers to their default reset values.

Parameters
BEEPxPointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP.
Return values
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.

Parameters
BEEPxPointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP.
BEEP_InitStructPointer to BEEP initialization struct
Return values
None