STM8L15x Standard Peripherals Drivers: WFE Source configuration and management functions

STM8L15x/16x Standard Peripherals Drivers

STM8L15x Standard Peripherals Drivers

WFE Source configuration and management functions

WFE Source configuration and management functions. More...

Functions

void WFE_DeInit (void)
 Deinitializes the WFE registers to their default reset value.
FunctionalState WFE_GetWakeUpSourceEventStatus (WFE_Source_TypeDef WFE_Source)
 Gets the status of the specified source event.
void WFE_WakeUpSourceEventCmd (WFE_Source_TypeDef WFE_Source, FunctionalState NewState)
 Set the source that can generate the wake-up event.

Detailed Description

WFE Source configuration and management functions.

 ===============================================================================
               WFE Source configuration and management functions 
 ===============================================================================  


Function Documentation

void WFE_DeInit ( void  )

Deinitializes the WFE registers to their default reset value.

Parameters:
None
Return values:
None

Definition at line 89 of file stm8l15x_wfe.c.

References WFE, and WFE_CRX_RESET_VALUE.

FunctionalState WFE_GetWakeUpSourceEventStatus ( WFE_Source_TypeDef  WFE_Source)

Gets the status of the specified source event.

Parameters:
WFE_Source,:The wake-up event source. This parameter can be one of the following values:
  • WFE_Source_TIM2_EV0: TIM2 Update/Trigger and Break interrupt
  • WFE_Source_TIM2_EV1: TIM2 Capture/Compare interrupt
  • WFE_Source_TIM1_EV0: TIM1 Update/Trigger and Break interrupt
  • WFE_Source_TIM1_EV1: TIM1 Capture/Compare interrupt
  • WFE_Source_EXTI_EV0: I/O port interrupt from Pins 0
  • WFE_Source_EXTI_EV1: I/O port interrupt from Pins 1
  • WFE_Source_EXTI_EV2: I/O port interrupt from Pins 2
  • WFE_Source_EXTI_EV3: I/O port interrupt from Pins 3
  • WFE_Source_EXTI_EV4: I/O port interrupt from Pins 4
  • WFE_Source_EXTI_EV5: I/O port interrupt from Pins 5
  • WFE_Source_EXTI_EV6: I/O port interrupt from Pins 6
  • WFE_Source_EXTI_EV7: I/O port interrupt from Pins 7
  • WFE_Source_EXTI_EVB_G: I/O port interrupt from port B and G
  • WFE_Source_EXTI_EVD_H: I/O port interrupt from Port D and H
  • WFE_Source_EXTI_EVE_F: I/O port interrupt from Port E and F
  • WFE_Source_ADC1_COMP_EV: ADC1, COMP1 and COMP2 interrupts
  • WFE_Source_TIM3_EV0: TIM3 Update/Trigger and Break interrupt
  • WFE_Source_TIM3_EV1: TIM3 Capture/Compare interrupt
  • WFE_Source_TIM4_EV: TIM4 Update and Trigger interrupt
  • WFE_Source_SPI1_EV: SPI1 Rx and Tx interrupt
  • WFE_Source_I2C1_EV: I2C1 Rx and Tx interrupt
  • WFE_Source_USART1_EV: USART1 Rx and Tx interrupt
  • WFE_Source_DMA1CH01_EV: DMA1 channel 0 and 1 interrupt
  • WFE_Source_DMA1CH23_EV: DMA1 channel 2 and 3 interrupt
  • WFE_Source_RTC_CSS_EV: RTC or CSS on LSE event
  • WFE_Source_SPI2_EV: SPI2 Rx and Tx interrupt
  • WFE_Source_USART2_EV: USART2 Rx and Tx interrupt
  • WFE_Source_USART3_EV: USART3 Rx and Tx interrupt
  • WFE_Source_TIM5_EV0: TIM5 Update/Trigger and Break interrupt
  • WFE_Source_TIM5_EV1: TIM5 Capture/Compare interrupt
Return values:
SourceEvent state, ENABLE or DISABLE

Definition at line 231 of file stm8l15x_wfe.c.

References DISABLE, ENABLE, IS_WFE_SOURCE, WFE, WFE_Source_ADC1_COMP_EV, WFE_Source_AES_EV, WFE_Source_DMA1CH01_EV, WFE_Source_DMA1CH23_EV, WFE_Source_EXTI_EV0, WFE_Source_EXTI_EV1, WFE_Source_EXTI_EV2, WFE_Source_EXTI_EV3, WFE_Source_EXTI_EV4, WFE_Source_EXTI_EV5, WFE_Source_EXTI_EV6, WFE_Source_EXTI_EV7, WFE_Source_EXTI_EVB_G, WFE_Source_EXTI_EVD_H, WFE_Source_EXTI_EVE_F, WFE_Source_I2C1_EV, WFE_Source_RTC_CSS_EV, WFE_Source_SPI1_EV, WFE_Source_SPI2_EV, WFE_Source_TIM1_EV0, WFE_Source_TIM1_EV1, WFE_Source_TIM2_EV0, WFE_Source_TIM2_EV1, WFE_Source_TIM3_EV0, WFE_Source_TIM3_EV1, WFE_Source_TIM4_EV, WFE_Source_TIM5_EV0, WFE_Source_TIM5_EV1, WFE_Source_USART1_EV, WFE_Source_USART2_EV, and WFE_Source_USART3_EV.

void WFE_WakeUpSourceEventCmd ( WFE_Source_TypeDef  WFE_Source,
FunctionalState  NewState 
)

Set the source that can generate the wake-up event.

Parameters:
WFE_Source,:The wake-up event source . This parameter can be one of the following values:
  • WFE_Source_TIM2_EV0: TIM2 Update/Trigger and Break interrupt
  • WFE_Source_TIM2_EV1: TIM2 Capture/Compare interrupt
  • WFE_Source_TIM1_EV0: TIM1 Update/Trigger and Break interrupt
  • WFE_Source_TIM1_EV1: TIM1 Capture/Compare interrupt
  • WFE_Source_EXTI_EV0: I/O port interrupt from Pins 0
  • WFE_Source_EXTI_EV1: I/O port interrupt from Pins 1
  • WFE_Source_EXTI_EV2: I/O port interrupt from Pins 2
  • WFE_Source_EXTI_EV3: I/O port interrupt from Pins 3
  • WFE_Source_EXTI_EV4: I/O port interrupt from Pins 4
  • WFE_Source_EXTI_EV5: I/O port interrupt from Pins 5
  • WFE_Source_EXTI_EV6: I/O port interrupt from Pins 6
  • WFE_Source_EXTI_EV7: I/O port interrupt from Pins 7
  • WFE_Source_EXTI_EVB_G: I/O port interrupt from port B and G
  • WFE_Source_EXTI_EVD_H: I/O port interrupt from Port D and H
  • WFE_Source_EXTI_EVE_F: I/O port interrupt from Port E and F
  • WFE_Source_ADC1_COMP_EV: ADC1, COMP1 and COMP2 interrupts
  • WFE_Source_TIM3_EV0: TIM3 Update/Trigger and Break interrupt
  • WFE_Source_TIM3_EV1: TIM3 Capture/Compare interrupt
  • WFE_Source_TIM4_EV: TIM4 Update and Trigger interrupt
  • WFE_Source_SPI1_EV: SPI1 Rx and Tx interrupt
  • WFE_Source_I2C1_EV: I2C1 Rx and Tx interrupt
  • WFE_Source_USART1_EV: USART1 Rx and Tx interrupt
  • WFE_Source_DMA1CH01_EV: DMA1 channel 0 and 1 interrupt
  • WFE_Source_DMA1CH23_EV: DMA1 channel 2 and 3 interrupt
  • WFE_Source_RTC_CSS_EV: RTC or CSS on LSE event
  • WFE_Source_SPI2_EV: SPI2 Rx and Tx interrupt
  • WFE_Source_USART2_EV: USART2 Rx and Tx interrupt
  • WFE_Source_USART3_EV: USART3 Rx and Tx interrupt
  • WFE_Source_TIM5_EV0: TIM5 Update/Trigger and Break interrupt
  • WFE_Source_TIM5_EV1: TIM5 Capture/Compare interrupt
NewState: The wake-up new state. This parameter can be: ENABLE or DISABLE.
Return values:
None

Definition at line 135 of file stm8l15x_wfe.c.

References DISABLE, IS_FUNCTIONAL_STATE, IS_WFE_SOURCE, and WFE.

STM8S Firmware Library: Overview

 

 

 

For complete documentation on STM8L15x 8-bit microcontrollers platform visit www.st.com