TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library Functions. More...

Functions

void TM_PVD_Enable (TM_PVD_Level_t Level, TM_PVD_Trigger_t Trigger)
 Enables PVD feature for interrupt generation when voltage changes are detected. More...
 
void TM_PVD_Disable (void)
 Disables PVD feature, disables NVIC and EXTI interrupt. More...
 
void TM_PVD_Handler (uint8_t status)
 Callback for handling PVD interrupts. This function is automatically called from interrupt service routine when needed. More...
 

Detailed Description

Library Functions.

Function Documentation

void TM_PVD_Disable ( void  )

Disables PVD feature, disables NVIC and EXTI interrupt.

Parameters
None
Return values
None
void TM_PVD_Enable ( TM_PVD_Level_t  Level,
TM_PVD_Trigger_t  Trigger 
)

Enables PVD feature for interrupt generation when voltage changes are detected.

Parameters
LevelLevel voltage when interrupt will happen. This parameter can be a value of TM_PVD_Level_t enumeration
TriggerTrigger option when interrupt will be generated. This parameter can be a value of TM_PVD_Trigger_t enumeration
Return values
None
void TM_PVD_Handler ( uint8_t  status)

Callback for handling PVD interrupts. This function is automatically called from interrupt service routine when needed.

Parameters
statusStatus about voltage detected
  • 0: Voltage is above treshold level
  • > 0: Voltage is below treshold value
Return values
None
Note
With __weak parameter to prevent link errors if not defined by user