MG32L003 Standard Peripherals Firmware Library
|
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... | |
void LPTIM_BaseInit | ( | LPTIM_BaseInitTypeDef * | Base_InitStruct | ) |
Low Power Time base configuration.
Base_InitStruct | : Pointer to LPTIM_BaseInitTypeDef structure that contains the configuration information for the specified LPTIM module. |
None |
void LPTIM_ClearFlag | ( | void | ) |
Clears the LPTIM pending interrupt flag.
None |
None |
void LPTIM_ClearITPendingBit | ( | void | ) |
Clears the LPTIM pending interrupt bit.
None |
None |
void LPTIM_Cmd | ( | FunctionalState | NewState | ) |
Enables or disables the LPTIM peripheral.
NewState | The new state of the LPTIM peripheral. This parameter can be: ENABLE or DISABLE. |
None |
void LPTIM_DeInit | ( | void | ) |
Deinitializes the LPTIM peripheral registers to their default reset values.
None |
None |
void LPTIM_GateCmd | ( | FunctionalState | NewState | ) |
Enables or disables the LPTIM gate function.
NewState | The new state of LPTIM gate function. This parameter can be: ENABLE or DISABLE. |
None |
uint32_t LPTIM_GetCounter | ( | void | ) |
Gets LPTIM counter.
None |
Counter | value |
FlagStatus LPTIM_GetFlagStatus | ( | void | ) |
Checks whether the LPTIM interrupt flag is set or not.
None |
The | new state of LPTIM interrupt flag(SET or RESET). |
ITStatus LPTIM_GetITStatus | ( | void | ) |
Checks whether the LPTIM interrupt is set or not.
None |
The | new state of LPTIM interrupt (SET or RESET). |
FlagStatus LPTIM_GetSyncFlag | ( | void | ) |
Waits for LPTIM WT sync finish.
None |
The | new state of syns finish (SET or RESET). |
void LPTIM_ITCmd | ( | FunctionalState | NewState | ) |
Enables or disables the LPTIM interrupt.
NewState | The new state of LPTIM interrupt. This parameter can be: ENABLE or DISABLE. |
None |
void LPTIM_SetCounter | ( | uint32_t | Counter | ) |
Sets the LPTIM counter register value on runtime.
Counter | Counter value. |
None |
void LPTIM_SetGateLevel | ( | uint32_t | Level | ) |
Sets gate level high or low.
Level | Gate level configuartion. This param can be LPTIM_GATELEVEL_HIGH or LPTIM_GATELEVEL_LOW. |
None |
void LPTIM_TCKCmd | ( | FunctionalState | NewState | ) |
Enables or disables the LPTIM time clock.
NewState | The new state of the LPTIM peripheral. This parameter can be: ENABLE or DISABLE. |
None |
void LPTIM_ToggleCmd | ( | FunctionalState | NewState | ) |
Enables or disables the LPTIM toggle function.
NewState | The new state of LPTIM toggle function. This parameter can be: ENABLE or DISABLE. |
None |