WB32F10x Standard Peripherals Firmware Library

宏定义 | 函数
wb32f10x_anctl.c 文件参考

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

`#include "wb32f10x_anctl.h"`

## 宏定义
#define | SARENR_SAREN_BB BIT_BAND_ADDR(&ANCTL->SARENR, 0)
#define | PVDENR_PVDE_BB BIT_BAND_ADDR(&ANCTL->PVDENR, 0)
#define | USBPCR_USBPEN_BB BIT_BAND_ADDR(&ANCTL->USBPCR, 0)
#define | CMPA_CMPAEN_BB BIT_BAND_ADDR(&ANCTL->CMPACR, 8)
#define | CMPB_CMPBEN_BB BIT_BAND_ADDR(&ANCTL->CMPBCR, 8)

## 函数
void | ANCTL_MHSICmd (FunctionalState NewState)
| Enables or disables the Internal 8MHz oscillator (MHSI). 更多...
void | ANCTL_FHSICmd (FunctionalState NewState)
| Enables or disables the Internal 48MHz oscillator (FHSI). 更多...
void | ANCTL_LSICmd (FunctionalState NewState)
| Enables or disables the Internal Low Speed oscillator (LSI). 更多...
void | ANCTL_HSEConfig (uint32_t ANCTL_HSE)
| Configures the External High Speed oscillator (HSE). 更多...
ErrorStatus | ANCTL_WaitForHSEStartUp (void)
| Waits for HSE start-up. 更多...
void | ANCTL_PLLConfig (uint32_t ANCTL_PLLMul)
| Configures the PLL multiplication factor. 更多...
void | ANCTL_PLLCmd (FunctionalState NewState)
| Enables or disables the PLL. 更多...
FlagStatus | ANCTL_GetFlagStatus (uint16_t ANCTL_FLAG)
| Checks whether the specified ANCTL flag is set or not. 更多...
void | ANCTL_PVDLevelConfig (uint32_t ANCTL_PVDLevel)
| Configures the voltage threshold detected by the Power Voltage Detector(PVD). 更多...
void | ANCTL_PVDCmd (FunctionalState NewState)
| Enables or disables the Power Voltage Detector (PVD). 更多...
void | ANCTL_SARADCCmd (FunctionalState NewState)
| Enables or disables the SAR ADC. 更多...
void | ANCTL_USBPHYDeInit (void)
| Deinitializes the USB PHY register to default reset values. 更多...
void | ANCTL_USBPHYConfig (uint32_t ANCTL_USBPHY, FunctionalState NewState)
| Configures the USB PHY function. 更多...
void | ANCTL_USBPHYCmd (FunctionalState NewState)
| Enables or disables the USB PHY. 更多...
void | ANCTL_PORCmd (FunctionalState NewState)
| Enables or disables the Power-on Reset function. 更多...
void | ANCTL_CMPAConfig (uint32_t CMPA_PSEL, uint32_t CMPA_NSEL)
| Configures the Comparator A. 更多...
void | ANCTL_CMPACmd (FunctionalState NewState)
| Enables or disables the Comparator A. 更多...
uint32_t | ANCTL_CMPAGetOutputLevel (void)
| Returns the Comparator A output level. 更多...
void | ANCTL_CMPBConfig (uint32_t CMPB_PSEL, uint32_t CMPB_NSEL)
| Configures the Comparator B. 更多...
void | ANCTL_CMPBCmd (FunctionalState NewState)
| Enables or disables the Comparator B. 更多...
uint32_t | ANCTL_CMPBGetOutputLevel (void)
| Returns the Comparator B output level. 更多...
void | ANCTL_ITConfig (uint8_t ANCTL_IT, FunctionalState NewState)
| Enables or disables the specified ANCTL interrupts. 更多...
ITStatus | ANCTL_GetITStatus (uint8_t ANCTL_IT)
| Checks whether the specified ANCTL interrupt has occurred or not. 更多...
void | ANCTL_ClearITPendingBit (uint8_t ANCTL_IT)
| Clears the ANCTL's interrupt pending bits. 更多...
void | ANCTL_ClockSecuritySystemCmd (FunctionalState NewState)
| Enables or disables the Clock Security System. 更多...

## 详细描述

This file provides all the ANCTL firmware functions.

作者
  Westberry Application Team

版本
  V0.1.10

日期
  05-January-2023