![]() |
G32R430 Device Driver Layer v1.0.4
G32R4xx Device Driver Layer API Reference
|
Header file of PMU DDL module. More...
#include "g32r4xx.h"Go to the source code of this file.
Macros | |
| #define | DDL_PMU_WAKEUP_PIN1 PMU_WKPCR_WKUPEN0 /* PC1-WUIO */ |
| #define | DDL_PMU_WAKEUP_PIN2 PMU_WKPCR_WKUPEN1 /* PC2-WUIO */ |
| #define | DDL_PMU_WAKEUP_PIN3 PMU_WKPCR_WKUPEN2 /* PD0-WUIO */ |
| #define | DDL_PMU_WAKEUP_PIN4 PMU_WKPCR_WKUPEN3 /* PD9-WUIO */ |
| #define | DDL_PMU_WAKEUP_PIN_POLARITY_RISING (0x0U) |
| #define | DDL_PMU_WAKEUP_PIN_POLARITY_FALLING (0x1U) |
| #define | DDL_PMU_WAKEUP_PIN_POLARITY_RISING_AND_FALLING (0x2U) |
| #define | DDL_PMU_STANDBY_PINMODE_ANALOG (0x0U) |
| #define | DDL_PMU_STANDBY_PINMODE_PU (0x1U) |
| #define | DDL_PMU_STANDBY_PINMODE_PD (0x2U) |
| #define | DDL_PMU_EVS_FILTER_NONE (0x00000000UL) |
| #define | DDL_PMU_EVS_FILTER_2LSICLK (PMU_EVSCR_VDCPVDFILTER_0) |
| #define | DDL_PMU_EVS_FILTER_4LSICLK (PMU_EVSCR_VDCPVDFILTER_1) |
| #define | DDL_PMU_EVS_FILTER_8LSICLK (PMU_EVSCR_VDCPVDFILTER) |
| #define | DDL_PMU_WriteReg(__REG__, __VALUE__) |
| Write a value in PMU register. | |
| #define | DDL_PMU_ReadReg(__REG__) |
| Read a value in PMU register. | |
Functions | |
| __STATIC_INLINE void | DDL_PMU_EnableWakeUpPin (uint32_t Pin) |
| Enable pin wake up. | |
| __STATIC_INLINE void | DDL_PMU_DisableWakeUpPin (uint32_t Pin) |
| Disable pin wake up. | |
| __STATIC_INLINE void | DDL_PMU_SetWakeUpPinPolarity (uint32_t Pin, uint32_t Polarity) |
| Set wake up pin polarity. | |
| __STATIC_INLINE uint32_t | DDL_PMU_GetWakeUpPinPolarity (uint32_t Pin) |
| Get wake up pin polarity. | |
| __STATIC_INLINE void | DDL_PMU_SetPinModeInStandby (uint32_t Pin, uint32_t Mode) |
| Set pin mode in standby mode. | |
| __STATIC_INLINE uint32_t | DDL_PMU_GetPinModeInStandby (uint32_t Pin) |
| Get pin mode in standby mode. | |
| __STATIC_INLINE uint32_t | DDL_PMU_IsActiveFlag_WakeUp (uint32_t Pin) |
| Check if pin wake up event occurred or not. | |
| __STATIC_INLINE void | DDL_PMU_ClearFlag_WakeUp (uint32_t Pin) |
| Clear pin wake up flag. | |
| __STATIC_INLINE uint32_t | DDL_PMU_IsActiveFlag_Standby (void) |
| Check if standby event occurred or not. | |
| __STATIC_INLINE void | DDL_PMU_ClearFlag_Standby (void) |
| Clear standby flag. | |
| __STATIC_INLINE void | DDL_PMU_EnableEVSWakeUp (void) |
| Enable EVS pin to wake up in standby mode. | |
| __STATIC_INLINE void | DDL_PMU_DisableEVSWakeUp (void) |
| Disable EVS pin to wake up in standby mode. | |
| __STATIC_INLINE void | DDL_PMU_EnableEVS (void) |
| Enable EVS pin. | |
| __STATIC_INLINE void | DDL_PMU_DisableEVS (void) |
| Disable EVS pin. | |
| __STATIC_INLINE void | DDL_PMU_SetEVSFilter (uint32_t Filter) |
| Set EVS pin filter. | |
| __STATIC_INLINE uint32_t | DDL_PMU_GetEVSFilter (void) |
| Get EVS pin filter. | |
| __STATIC_INLINE void | DDL_PMU_SetEVSThreshold (uint32_t threshold) |
| Get EVS thresholds value. | |
| __STATIC_INLINE uint32_t | DDL_PMU_GetEVSThreshold (void) |
| Get EVS thresholds value. | |
| __STATIC_INLINE uint32_t | DDL_PMU_IsActiveFlag_EVS (void) |
| Check if EVS wakeup event occurred or not. | |
| __STATIC_INLINE void | DDL_PMU_ClearFlag_EVS (void) |
| Clear EVS wakeup event flag. | |
| __STATIC_INLINE void | DDL_PMU_EnablePVD (void) |
| Enable PVD. | |
| __STATIC_INLINE void | DDL_PMU_DisablePVD (void) |
| Disable PVD. | |
| __STATIC_INLINE void | DDL_PMU_SetPVDThreshold (uint32_t Threshold) |
| Set PVD threshold. | |
| __STATIC_INLINE uint32_t | DDL_PMU_GetPVDThreshold (void) |
| Get PVD threshold. | |
| __STATIC_INLINE uint32_t | DDL_PMU_IsActiveFlag_PVDOutput (void) |
| Check if PVD output event occurred or not. | |
| void | DDL_PMU_EnterStandbyModeWFI (void) |
| Enter Standby Mode by WFI. | |
| void | DDL_PMU_EnterStopModeWFI (void) |
| Enter Stop Mode by WFI. | |
| void | DDL_PMU_EnterStandbyModeWFE (void) |
| Enter Standby Mode by WFE. | |
| void | DDL_PMU_EnterStopModeWFE (void) |
| Enter Stop Mode by WFE. | |
Header file of PMU DDL module.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
The original code has been modified by Geehy Semiconductor.
Copyright (c) 2017 STMicroelectronics. Copyright (C) 2025 Geehy Semiconductor. All rights reserved.
This software is licensed under terms that can be found in the LICENSE file in the root directory of this software component. If no LICENSE file comes with this software, it is provided AS-IS.
Definition in file g32r4xx_ddl_pmu.h.