WB32L003 Standard Peripherals Firmware Library
结构体 | 宏定义 | 函数
wb32l003_beep.h 文件参考

This file contains all the functions prototypes for the BEEP firmware library. 更多...

#include "wb32l003.h"

浏览源代码.

结构体

struct  BEEP_InitTypeDef
 BEEP Init structure definition 更多...
 

宏定义

#define IS_BEEP_ALL_PERIPH(PERIPH)   (((PERIPH) == BEEP))
 
#define BEEP_ClkSel_STOP   ((uint32_t)(0x00U << BEEP_CSR_CLKSEL_Pos))
 
#define BEEP_ClkSel_LSI   ((uint32_t)(0x01U << BEEP_CSR_CLKSEL_Pos))
 
#define BEEP_ClkSel_HSE   ((uint32_t)(0x02U << BEEP_CSR_CLKSEL_Pos))
 
#define BEEP_ClkSel_PCLK   ((uint32_t)(0x03U << BEEP_CSR_CLKSEL_Pos))
 
#define BEEP_OutDiv8   ((uint32_t)(0x00U << BEEP_CSR_BEEPSEL_Pos))
 
#define BEEP_OutDiv4   ((uint32_t)(0x01U << BEEP_CSR_BEEPSEL_Pos))
 
#define BEEP_OutDiv2   ((uint32_t)(0x02U << BEEP_CSR_BEEPSEL_Pos))
 
#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. 更多...
 

详细描述

This file contains all the functions prototypes for the BEEP firmware library.

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