TUKS MCU Introductory course / TUKS-COURSE-THERMOMETER

Fork of TUKS-COURSE-TIMER by TUKS MCU Introductory course

Embed: (wiki syntax)

« Back to documentation index

LPTIM Start-Stop operation functions

LPTIM Start-Stop operation functions
[LPTIM Exported Functions]

Start-Stop operation functions. More...

Functions

HAL_StatusTypeDef HAL_LPTIM_PWM_Start (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Pulse)
 Start the LPTIM PWM generation.
HAL_StatusTypeDef HAL_LPTIM_PWM_Stop (LPTIM_HandleTypeDef *hlptim)
 Stop the LPTIM PWM generation.
HAL_StatusTypeDef HAL_LPTIM_PWM_Start_IT (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Pulse)
 Start the LPTIM PWM generation in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_PWM_Stop_IT (LPTIM_HandleTypeDef *hlptim)
 Stop the LPTIM PWM generation in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_OnePulse_Start (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Pulse)
 Start the LPTIM One pulse generation.
HAL_StatusTypeDef HAL_LPTIM_OnePulse_Stop (LPTIM_HandleTypeDef *hlptim)
 Stop the LPTIM One pulse generation.
HAL_StatusTypeDef HAL_LPTIM_OnePulse_Start_IT (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Pulse)
 Start the LPTIM One pulse generation in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_OnePulse_Stop_IT (LPTIM_HandleTypeDef *hlptim)
 Stop the LPTIM One pulse generation in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_SetOnce_Start (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Pulse)
 Start the LPTIM in Set once mode.
HAL_StatusTypeDef HAL_LPTIM_SetOnce_Stop (LPTIM_HandleTypeDef *hlptim)
 Stop the LPTIM Set once mode.
HAL_StatusTypeDef HAL_LPTIM_SetOnce_Start_IT (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Pulse)
 Start the LPTIM Set once mode in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_SetOnce_Stop_IT (LPTIM_HandleTypeDef *hlptim)
 Stop the LPTIM Set once mode in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_Encoder_Start (LPTIM_HandleTypeDef *hlptim, uint32_t Period)
 Start the Encoder interface.
HAL_StatusTypeDef HAL_LPTIM_Encoder_Stop (LPTIM_HandleTypeDef *hlptim)
 Stop the Encoder interface.
HAL_StatusTypeDef HAL_LPTIM_Encoder_Start_IT (LPTIM_HandleTypeDef *hlptim, uint32_t Period)
 Start the Encoder interface in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_Encoder_Stop_IT (LPTIM_HandleTypeDef *hlptim)
 Stop the Encoder interface in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_TimeOut_Start (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Timeout)
 Start the Timeout function.
HAL_StatusTypeDef HAL_LPTIM_TimeOut_Stop (LPTIM_HandleTypeDef *hlptim)
 Stop the Timeout function.
HAL_StatusTypeDef HAL_LPTIM_TimeOut_Start_IT (LPTIM_HandleTypeDef *hlptim, uint32_t Period, uint32_t Timeout)
 Start the Timeout function in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_TimeOut_Stop_IT (LPTIM_HandleTypeDef *hlptim)
 Stop the Timeout function in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_Counter_Start (LPTIM_HandleTypeDef *hlptim, uint32_t Period)
 Start the Counter mode.
HAL_StatusTypeDef HAL_LPTIM_Counter_Stop (LPTIM_HandleTypeDef *hlptim)
 Stop the Counter mode.
HAL_StatusTypeDef HAL_LPTIM_Counter_Start_IT (LPTIM_HandleTypeDef *hlptim, uint32_t Period)
 Start the Counter mode in interrupt mode.
HAL_StatusTypeDef HAL_LPTIM_Counter_Stop_IT (LPTIM_HandleTypeDef *hlptim)
 Stop the Counter mode in interrupt mode.

Detailed Description

Start-Stop operation functions.

  ==============================================================================
                ##### LPTIM Start Stop operation functions #####
  ==============================================================================  
    [..]  This section provides functions allowing to:
      (+) Start the PWM mode.
      (+) Stop the PWM mode.
      (+) Start the One pulse mode.
      (+) Stop the One pulse mode.
      (+) Start the Set once mode.
      (+) Stop the Set once mode.
      (+) Start the Encoder mode.
      (+) Stop the Encoder mode.
      (+) Start the Timeout mode.
      (+) Stop the Timeout mode.      
      (+) Start the Counter mode.
      (+) Stop the Counter mode.
      


Function Documentation

HAL_StatusTypeDef HAL_LPTIM_Counter_Start ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period 
)

Start the Counter mode.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 1210 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_Counter_Start_IT ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period 
)

Start the Counter mode in interrupt mode.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 1274 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_Counter_Stop ( LPTIM_HandleTypeDef *  hlptim )

Stop the Counter mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 1249 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_Counter_Stop_IT ( LPTIM_HandleTypeDef *  hlptim )

Stop the Counter mode in interrupt mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 1319 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_Encoder_Start ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period 
)

Start the Encoder interface.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 879 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_Encoder_Start_IT ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period 
)

Start the Encoder interface in interrupt mode.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 966 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_Encoder_Stop ( LPTIM_HandleTypeDef *  hlptim )

Stop the Encoder interface.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 938 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_Encoder_Stop_IT ( LPTIM_HandleTypeDef *  hlptim )

Stop the Encoder interface in interrupt mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 1032 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_OnePulse_Start ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Pulse 
)

Start the LPTIM One pulse generation.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Pulse: Specifies the compare value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 549 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_OnePulse_Start_IT ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Pulse 
)

Start the LPTIM One pulse generation in interrupt mode.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Pulse: Specifies the compare value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 613 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_OnePulse_Stop ( LPTIM_HandleTypeDef *  hlptim )

Stop the LPTIM One pulse generation.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 586 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_OnePulse_Stop_IT ( LPTIM_HandleTypeDef *  hlptim )

Stop the LPTIM One pulse generation in interrupt mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 669 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_PWM_Start ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Pulse 
)

Start the LPTIM PWM generation.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Pulse: Specifies the compare value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 383 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_PWM_Start_IT ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Pulse 
)

Start the LPTIM PWM generation in interrupt mode.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF
Pulse: Specifies the compare value. This parameter must be a value between 0x0000 and 0xFFFF
Return values:
HALstatus

Definition at line 447 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_PWM_Stop ( LPTIM_HandleTypeDef *  hlptim )

Stop the LPTIM PWM generation.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 420 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_PWM_Stop_IT ( LPTIM_HandleTypeDef *  hlptim )

Stop the LPTIM PWM generation in interrupt mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 503 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_SetOnce_Start ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Pulse 
)

Start the LPTIM in Set once mode.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Pulse: Specifies the compare value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 715 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_SetOnce_Start_IT ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Pulse 
)

Start the LPTIM Set once mode in interrupt mode.

Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Pulse: Specifies the compare value. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 779 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_SetOnce_Stop ( LPTIM_HandleTypeDef *  hlptim )

Stop the LPTIM Set once mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 752 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_SetOnce_Stop_IT ( LPTIM_HandleTypeDef *  hlptim )

Stop the LPTIM Set once mode in interrupt mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 835 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_TimeOut_Start ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Timeout 
)

Start the Timeout function.

Note:
The first trigger event will start the timer, any successive trigger event will reset the counter and the timer restarts.
Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Timeout: Specifies the TimeOut value to rest the counter. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 1070 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_TimeOut_Start_IT ( LPTIM_HandleTypeDef *  hlptim,
uint32_t  Period,
uint32_t  Timeout 
)

Start the Timeout function in interrupt mode.

Note:
The first trigger event will start the timer, any successive trigger event will reset the counter and the timer restarts.
Parameters:
hlptim: LPTIM handle
Period: Specifies the Autoreload value. This parameter must be a value between 0x0000 and 0xFFFF.
Timeout: Specifies the TimeOut value to rest the counter. This parameter must be a value between 0x0000 and 0xFFFF.
Return values:
HALstatus

Definition at line 1139 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_TimeOut_Stop ( LPTIM_HandleTypeDef *  hlptim )

Stop the Timeout function.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 1107 of file stm32l4xx_hal_lptim.c.

HAL_StatusTypeDef HAL_LPTIM_TimeOut_Stop_IT ( LPTIM_HandleTypeDef *  hlptim )

Stop the Timeout function in interrupt mode.

Parameters:
hlptim: LPTIM handle
Return values:
HALstatus

Definition at line 1179 of file stm32l4xx_hal_lptim.c.