| PDL for FM0+ Version1.0 Peripheral Driverl Library for FM0+

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Data Structures | Defines | Typedefs | Enumerations | Functions
C:/pdl_v10/library/driver/lpm/lpm.h File Reference
`#include "mcu.h"`
`#include "pdl_user.h"`
Include dependency graph for lpm.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Data Structures
struct | stc_ret_cause
| Deep standby mode return cause. More...
## Defines
#define | WIFSR_WRTCI (1ul<<0)
#define | WIFSR_WLVDI (1ul<<1)
#define | WIFSR_WUI0 (1ul<<2)
#define | WIFSR_WUI1 (1ul<<3)
#define | WIFSR_WUI2 (1ul<<4)
#define | WIFSR_WUI3 (1ul<<5)
#define | WIFSR_WUI4 (1ul<<6)
#define | WIFSR_WUI5 (1ul<<7)
#define | WIFSR_WCEC0I (1ul<<8)
#define | WIFSR_WCEC1I (1ul<<9)
#define | WRFSR_WINITX (1ul<<0)
#define | WRFSR_WLVDH (1ul<<1)
## Typedefs
typedef enum en_lpm_mode | en_lpm_mode_t
| define standby mode type
typedef struct stc_ret_cause | stc_dstb_ret_cause_t
| Deep standby mode return cause.
typedef enum en_ret_cause_flag | en_dstb_ret_cause_t
| define deep standby mode return cause flag
typedef enum en_dstb_wkup_pin | en_dstb_wkup_pin_t
| define wkup pin index
typedef enum en_wkup_valid_level | en_wkup_valid_level_t
| Valid level of wakeup pin.
typedef enum en_dstb_bakup_reg | en_dstb_bakup_reg_t
| backup register index
## Enumerations
enum | en_lpm_mode { StbSleepMode = 0u, StbTimerMode = 1u, StbStopMode = 2u, StbRtcMode = 3u, DeepStbRtcMode = 4u, DeepStbStopMode = 5u }
| define standby mode type More...
enum | en_ret_cause_flag { DeepStbNoFlag = 0u, DeepStbInitx = 1u, DeepStbLvdReset = 2u, DeepStbRtcInt = 3u, DeepStbLvdInt = 4u, DeepStbWkupPin0 = 5u, DeepStbWkupPin1 = 6u, DeepStbWkupPin2 = 7u, DeepStbWkupPin3 = 8u, DeepStbWkupPin4 = 9u, DeepStbWkupPin5 = 10u, DeepStbCec0 = 11u, DeepStbCec1 = 12u }
| define deep standby mode return cause flag More...
enum | en_dstb_wkup_pin { WkupPin1 = 0u, WkupPin2 = 1u, WkupPin3 = 2u, WkupPin4 = 3u, WkupPin5 = 4u }
| define wkup pin index More...
enum | en_wkup_valid_level { WkupLowLevelValid = 0u, WkupHighLevelValid = 1u }
| Valid level of wakeup pin. More...
enum | en_dstb_bakup_reg { BackupReg1 = 1u, BackupReg2 = 2u, BackupReg3 = 3u, BackupReg4 = 4u, BackupReg5 = 5u, BackupReg6 = 6u, BackupReg7 = 7u, BackupReg8 = 8u, BackupReg9 = 9u, BackupReg10 = 10u, BackupReg11 = 11u, BackupReg12 = 12u, BackupReg13 = 13u, BackupReg14 = 14u, BackupReg15 = 15u, BackupReg16 = 16u }
| backup register index More...
## Functions
void | Lpm_GoToStandByMode (en_lpm_mode_t enMode, boolean_t bIoRemain)
| go to standby mode
en_result_t | Lpm_ConfigDeepStbRetCause (stc_dstb_ret_cause_t *pstcCause)
| Configure return cause from deep standby mode.
en_dstb_ret_cause_t | Lpm_ReadDeepStbRetCause (void)
| Read deep standby mode return cause flag.
en_result_t | Lpm_SetWkupPinLevel (en_dstb_wkup_pin_t enPinIndex, en_wkup_valid_level_t enLevel)
| Set the valid level of wkup pin.
en_result_t | Lpm_ConfigSubClk (boolean_t bSupplyCec, boolean_t bSupplyRtc)
| Configue the sub clock supply.
en_result_t | Lpm_ConfigDeepStbRAMRetention (boolean_t bRamRetain)
| Configure deep standby mode RAM retention.
en_result_t | Lpm_WriteBackupReg (en_dstb_bakup_reg_t enRegIndex, uint8_t u8Data)
| Write the backup register.
uint8_t | Lpm_ReadBackupReg (en_dstb_bakup_reg_t enRegIndex)
| Read the backup register.

## Detailed Description

Headerfile for LPM functions

History:

- 2013-10-23 1.0 MWi First version.

Definition in file lpm.h.