WB32L003 Standard Peripherals Firmware Library

Data Structures | Macros | Functions
wb32l003_lptim.h File Reference

This file contains all the functions prototypes for the LPTIM firmware library. More...

`#include "wb32l003.h"`

Go to the source code of this file.

## Data Structures
struct | LPTIM_BaseInitTypeDef
| LPTIM Time base Configuration Structure definition. More...

## Macros
#define | LPTIM_GATE_ENABLE (LPTIM_CR_GATE_EN)
#define | LPTIM_GATE_DISABLE 0x00000000U
#define | IS_LPTIM_GATE_ENABLE(GATE)
#define | LPTIM_GATELEVEL_LOW (LPTIM_CR_GATE_P)
#define | LPTIM_GATELEVEL_HIGH 0x00000000U
#define | IS_LPTIM_GATE_LEVEL(GATE_LEVEL)
#define | LPTIM_CLOCK_SOURCE_PCLK 0x00000000U
#define | LPTIM_CLOCK_SOURCE_LSE (LPTIM_CR_TCK_SEL_1)
#define | LPTIM_CLOCK_SOURCE_LSI (LPTIM_CR_TCK_SEL_1 | LPTIM_CR_TCK_SEL_0)
#define | IS_LPTIM_CLOCK_SOURCE(CLOCK_SOURCE)
#define | LPTIM_TOG_ENABLE (LPTIM_CR_TOG_EN)
#define | LPTIM_TOG_DISABLE 0x00000000U
#define | IS_LPTIM_TOG(TOG)
#define | LPTIM_COUNTER_SELECT (LPTIM_CR_CT_SEL)
#define | LPTIM_TIMER_SELECT 0x00000000U
#define | IS_LPTIM_COUNTER(COUNTER)
#define | LPTIM_AUTORELOAD_ENABLE (LPTIM_CR_MODE)
#define | LPTIM_AUTORELOAD_DISABLE 0x00000000U
#define | IS_LPTIM_AUTORELOAD(AUTORELOAD)

## Functions
void | LPTIM_DeInit (void)
| Deinitializes the LPTIM peripheral registers to their default reset values. More...
void | LPTIM_BaseInit (LPTIM_BaseInitTypeDef *Base_InitStruct)
| Low Power Time base configuration. More...
void | LPTIM_TCKCmd (FunctionalState NewState)
| Enables or disables the LPTIM time clock. More...
void | LPTIM_Cmd (FunctionalState NewState)
| Enables or disables the LPTIM peripheral. More...
void | LPTIM_ITCmd (FunctionalState NewState)
| Enables or disables the LPTIM interrupt. More...
FlagStatus | LPTIM_GetFlagStatus (void)
| Checks whether the LPTIM interrupt flag is set or not. More...
ITStatus | LPTIM_GetITStatus (void)
| Checks whether the LPTIM interrupt is set or not. More...
void | LPTIM_ClearFlag (void)
| Clears the LPTIM pending interrupt flag. More...
void | LPTIM_ClearITPendingBit (void)
| Clears the LPTIM pending interrupt bit. More...
void | LPTIM_SetCounter (uint32_t Counter)
| Sets the LPTIM counter register value on runtime. More...
uint32_t | LPTIM_GetCounter (void)
| Gets LPTIM counter. More...
void | LPTIM_GateCmd (FunctionalState NewState)
| Enables or disables the LPTIM gate function. More...
void | LPTIM_ToggleCmd (FunctionalState NewState)
| Enables or disables the LPTIM toggle function. More...
void | LPTIM_SetGateLevel (uint32_t Level)
| Sets gate level high or low. More...
FlagStatus | LPTIM_GetSyncFlag (void)
| Waits for LPTIM WT sync finish. More...

## Detailed Description

This file contains all the functions prototypes for the LPTIM firmware library.

Author
  Westberry Application Team

Version
  V0.0.4

Date
  23-April-2023