MG32F10x Standard Peripherals Firmware Library
|
ANCTL driver modules. More...
Modules | |
ANCTL_Exported_Constants | |
ANCTL_Private_Defines | |
ANCTL_Private_Functions | |
Functions | |
void | ANCTL_MHSICmd (FunctionalState NewState) |
Enables or disables the Internal 8MHz oscillator (MHSI). More... | |
void | ANCTL_FHSICmd (FunctionalState NewState) |
Enables or disables the Internal 48MHz oscillator (FHSI). More... | |
void | ANCTL_LSICmd (FunctionalState NewState) |
Enables or disables the Internal Low Speed oscillator (LSI). More... | |
void | ANCTL_HSEConfig (uint32_t ANCTL_HSE) |
Configures the External High Speed oscillator (HSE). More... | |
ErrorStatus | ANCTL_WaitForHSEStartUp (void) |
Waits for HSE start-up. More... | |
void | ANCTL_PLLConfig (uint32_t ANCTL_PLLMul) |
Configures the PLL multiplication factor. More... | |
void | ANCTL_PLLCmd (FunctionalState NewState) |
Enables or disables the PLL. More... | |
FlagStatus | ANCTL_GetFlagStatus (uint16_t ANCTL_FLAG) |
Checks whether the specified ANCTL flag is set or not. More... | |
void | ANCTL_PVDLevelConfig (uint32_t ANCTL_PVDLevel) |
Configures the voltage threshold detected by the Power Voltage Detector(PVD). More... | |
void | ANCTL_PVDCmd (FunctionalState NewState) |
Enables or disables the Power Voltage Detector (PVD). More... | |
void | ANCTL_SARADCCmd (FunctionalState NewState) |
Enables or disables the SAR ADC. More... | |
void | ANCTL_USBPHYDeInit (void) |
Deinitializes the USB PHY register to default reset values. More... | |
void | ANCTL_USBPHYConfig (uint32_t ANCTL_USBPHY, FunctionalState NewState) |
Configures the USB PHY function. More... | |
void | ANCTL_USBPHYCmd (FunctionalState NewState) |
Enables or disables the USB PHY. More... | |
void | ANCTL_PORCmd (FunctionalState NewState) |
Enables or disables the Power-on Reset function. More... | |
void | ANCTL_CMPAConfig (uint32_t CMPA_PSEL, uint32_t CMPA_NSEL) |
Configures the Comparator A. More... | |
void | ANCTL_CMPACmd (FunctionalState NewState) |
Enables or disables the Comparator A. More... | |
uint32_t | ANCTL_CMPAGetOutputLevel (void) |
Returns the Comparator A output level. More... | |
void | ANCTL_CMPBConfig (uint32_t CMPB_PSEL, uint32_t CMPB_NSEL) |
Configures the Comparator B. More... | |
void | ANCTL_CMPBCmd (FunctionalState NewState) |
Enables or disables the Comparator B. More... | |
uint32_t | ANCTL_CMPBGetOutputLevel (void) |
Returns the Comparator B output level. More... | |
void | ANCTL_ITConfig (uint8_t ANCTL_IT, FunctionalState NewState) |
Enables or disables the specified ANCTL interrupts. More... | |
ITStatus | ANCTL_GetITStatus (uint8_t ANCTL_IT) |
Checks whether the specified ANCTL interrupt has occurred or not. More... | |
void | ANCTL_ClearITPendingBit (uint8_t ANCTL_IT) |
Clears the ANCTL's interrupt pending bits. More... | |
void | ANCTL_ClockSecuritySystemCmd (FunctionalState NewState) |
Enables or disables the Clock Security System. More... | |
ANCTL driver modules.
void ANCTL_ClearITPendingBit | ( | uint8_t | ANCTL_IT | ) |
Clears the ANCTL's interrupt pending bits.
ANCTL_IT | specifies the interrupt pending bit to clear. This parameter can be any combination of the following values:
|
void ANCTL_ClockSecuritySystemCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Clock Security System.
NewState | new state of the Clock Security System. This parameter can be: ENABLE or DISABLE. |
void ANCTL_CMPACmd | ( | FunctionalState | NewState | ) |
Enables or disables the Comparator A.
NewState | new state of the Comparator A. This parameter can be: ENABLE or DISABLE. |
void ANCTL_CMPAConfig | ( | uint32_t | CMPA_PSEL, |
uint32_t | CMPA_NSEL | ||
) |
Configures the Comparator A.
CMPA_PSEL | specifies the comparator positive input. |
CMPA_NSEL | specifies the comparator negative input. |
uint32_t ANCTL_CMPAGetOutputLevel | ( | void | ) |
Returns the Comparator A output level.
None |
void ANCTL_CMPBCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Comparator B.
NewState | new state of the Comparator B. This parameter can be: ENABLE or DISABLE. |
void ANCTL_CMPBConfig | ( | uint32_t | CMPB_PSEL, |
uint32_t | CMPB_NSEL | ||
) |
Configures the Comparator B.
CMPB_PSEL | specifies the comparator positive input. |
CMPB_NSEL | specifies the comparator negative input. |
uint32_t ANCTL_CMPBGetOutputLevel | ( | void | ) |
Returns the Comparator B output level.
None |
void ANCTL_FHSICmd | ( | FunctionalState | NewState | ) |
Enables or disables the Internal 48MHz oscillator (FHSI).
NewState | new state of the FHSI. This parameter can be: ENABLE or DISABLE. |
FlagStatus ANCTL_GetFlagStatus | ( | uint16_t | ANCTL_FLAG | ) |
Checks whether the specified ANCTL flag is set or not.
ANCTL_FLAG | specifies the flag to check. This parameter can be one of the following values:
|
ITStatus ANCTL_GetITStatus | ( | uint8_t | ANCTL_IT | ) |
Checks whether the specified ANCTL interrupt has occurred or not.
ANCTL_IT | specifies the ANCTL interrupt source to check. This parameter can be one of the following values:
|
void ANCTL_HSEConfig | ( | uint32_t | ANCTL_HSE | ) |
Configures the External High Speed oscillator (HSE).
ANCTL_HSE | specifies the new state of the HSE. This parameter can be one of the following values:
|
void ANCTL_ITConfig | ( | uint8_t | ANCTL_IT, |
FunctionalState | NewState | ||
) |
Enables or disables the specified ANCTL interrupts.
ANCTL_IT | specifies the ANCTL interrupt sources to be enabled or disabled. This parameter can be any combination of the following values:
|
NewState | new state of the specified ANCTL interrupts. This parameter can be: ENABLE or DISABLE. |
void ANCTL_LSICmd | ( | FunctionalState | NewState | ) |
Enables or disables the Internal Low Speed oscillator (LSI).
NewState | new state of the LSI. This parameter can be: ENABLE or DISABLE. |
void ANCTL_MHSICmd | ( | FunctionalState | NewState | ) |
Enables or disables the Internal 8MHz oscillator (MHSI).
NewState | new state of the MHSI. This parameter can be: ENABLE or DISABLE. |
void ANCTL_PLLCmd | ( | FunctionalState | NewState | ) |
Enables or disables the PLL.
NewState | new state of the PLL. This parameter can be: ENABLE or DISABLE. |
void ANCTL_PLLConfig | ( | uint32_t | ANCTL_PLLMul | ) |
Configures the PLL multiplication factor.
ANCTL_PLLMul | specifies the PLL multiplication factor. This parameter can be one of the following values:
|
void ANCTL_PORCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Power-on Reset function.
NewState | new state of the Power-on Reset function. This parameter can be: ENABLE or DISABLE. |
void ANCTL_PVDCmd | ( | FunctionalState | NewState | ) |
Enables or disables the Power Voltage Detector (PVD).
NewState | new state of the PVD. This parameter can be: ENABLE or DISABLE. |
void ANCTL_PVDLevelConfig | ( | uint32_t | ANCTL_PVDLevel | ) |
Configures the voltage threshold detected by the Power Voltage Detector(PVD).
ANCTL_PVDLevel | specifies the PVD detection level. This parameter can be one of the following values:
|
void ANCTL_SARADCCmd | ( | FunctionalState | NewState | ) |
Enables or disables the SAR ADC.
NewState | new state of the SAR ADC. This parameter can be: ENABLE or DISABLE. |
void ANCTL_USBPHYCmd | ( | FunctionalState | NewState | ) |
Enables or disables the USB PHY.
NewState | new state of the USB PHY. This parameter can be: ENABLE or DISABLE. |
void ANCTL_USBPHYConfig | ( | uint32_t | ANCTL_USBPHY, |
FunctionalState | NewState | ||
) |
Configures the USB PHY function.
ANCTL_USBPHY | specifies the USB PHY configuration. This parameter can be any combination of the following values:
|
NewState | new state of the USB PHY function. This parameter can be: ENABLE or DISABLE. |
void ANCTL_USBPHYDeInit | ( | void | ) |
Deinitializes the USB PHY register to default reset values.
ErrorStatus ANCTL_WaitForHSEStartUp | ( | void | ) |
Waits for HSE start-up.
None |