BEEP driver modules.
More...
|
#define | IS_BEEP_CLK_SEL(SEL) |
|
#define | IS_BEEP_PRESCALER(PRESCALER) ((PRESCALER) < 4096) |
|
#define | IS_BEEP_OUT_DIV(DIV) |
|
BEEP driver modules.
◆ 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))
◆ BEEP_Cmd()
void BEEP_Cmd |
( |
BEEP_TypeDef * |
BEEPx, |
|
|
FunctionalState |
NewState |
|
) |
| |
Enables or disables BEEP peripheral.
- Parameters
-
BEEPx | Pointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP. |
NewState | The new state of the BEEP peripheral. This parameter can be: ENABLE or DISABLE. |
- Return values
-
◆ BEEP_DeInit()
Deinitializes the BEEP peripheral registers to their default reset values.
- Parameters
-
BEEPx | Pointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP. |
- Return values
-
◆ BEEP_Init()
Initializes the BEEP peripheral according to the specified parameters in the BEEP_InitStruct.
- Parameters
-
BEEPx | Pointer to selected BEEP peripheral. This parameter can be one of the following values: BEEP. |
BEEP_InitStruct | Pointer to BEEP initialization struct |
- Return values
-