PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
lpm.h File Reference
#include "pdl.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_backupreg
 

Macros

#define PDL_u8BREG00   0u
 
#define PDL_u8BREG01   1u
 
#define PDL_u8BREG02   2u
 
#define PDL_u8BREG03   3u
 
#define PDL_u8BREG04   4u
 
#define PDL_u8BREG05   5u
 
#define PDL_u8BREG06   6u
 
#define PDL_u8BREG07   7u
 
#define PDL_u8BREG08   8u
 
#define PDL_u8BREG09   9u
 
#define PDL_u8BREG0A   10u
 
#define PDL_u8BREG0B   11u
 
#define PDL_u8BREG0C   12u
 
#define PDL_u8BREG0D   13u
 
#define PDL_u8BREG0E   14u
 
#define PDL_u8BREG0F   15u
 
#define PDL_u8BREG10   16u
 
#define PDL_u8BREG11   17u
 
#define PDL_u8BREG12   18u
 
#define PDL_u8BREG13   19u
 
#define PDL_u8BREG14   20u
 
#define PDL_u8BREG15   21u
 
#define PDL_u8BREG16   22u
 
#define PDL_u8BREG17   23u
 
#define PDL_u8BREG18   24u
 
#define PDL_u8BREG19   25u
 
#define PDL_u8BREG1A   26u
 
#define PDL_u8BREG1B   27u
 
#define PDL_u8BREG1C   28u
 
#define PDL_u8BREG1D   29u
 
#define PDL_u8BREG1E   30u
 
#define PDL_u8BREG1F   31u
 
#define PDL_u16BREG00   0u
 
#define PDL_u16BREG02   2u
 
#define PDL_u16BREG04   4u
 
#define PDL_u16BREG06   6u
 
#define PDL_u16BREG08   8u
 
#define PDL_u16BREG0A   10u
 
#define PDL_u16BREG0C   12u
 
#define PDL_u16BREG0E   14u
 
#define PDL_u16BREG10   16u
 
#define PDL_u16BREG12   18u
 
#define PDL_u16BREG14   20u
 
#define PDL_u16BREG16   22u
 
#define PDL_u16BREG18   24u
 
#define PDL_u16BREG1A   26u
 
#define PDL_u16BREG1C   28u
 
#define PDL_u16BREG1E   30u
 
#define PDL_u32BREG00   0u
 
#define PDL_u32BREG04   4u
 
#define PDL_u32BREG08   8u
 
#define PDL_u32BREG0C   12u
 
#define PDL_u32BREG10   16u
 
#define PDL_u32BREG14   20u
 
#define PDL_u32BREG18   24u
 
#define PDL_u32BREG1C   28u
 

Typedefs

typedef struct stc_backupreg stc_backupreg_t
 

Functions

en_result_t Lpm_SetHsCrSleep (boolean_t bDisablePllMainClock, boolean_t bDisableSubClock)
 Enter HS-CR Sleep Mode. More...
 
en_result_t Lpm_SetMainSleep (boolean_t bDisablePllClock, boolean_t bDisableSubClock)
 Enter Main Sleep Mode. More...
 
en_result_t Lpm_SetPllSleep (boolean_t bDisableSubClock)
 Enter PLL Sleep Mode. More...
 
en_result_t Lpm_SetLsCrSleep (boolean_t bDisablePllMainClock, boolean_t bDisableSubClock)
 Enter LS-CR Sleep Mode. More...
 
en_result_t Lpm_SetSubSleep (boolean_t bDisablePllMainClock)
 Enter Sub Sleep Mode. More...
 
en_result_t Lpm_SetHsCrTimer (boolean_t bDisablePllMainClock, boolean_t bDisableSubClock)
 Enter HS-CR Timer Mode. More...
 
en_result_t Lpm_SetMainTimer (boolean_t bDisablePllClock, boolean_t bDisableSubClock)
 Enter Main Timer Mode. More...
 
en_result_t Lpm_SetPllTimer (boolean_t bDisableSubClock)
 Enter PLL Timer Mode. More...
 
en_result_t Lpm_SetLsCrTimer (boolean_t bDisablePllMainClock, boolean_t bDisableSubClock)
 Enter LS-CR Timer Mode. More...
 
en_result_t Lpm_SetSubTimer (boolean_t bDisablePllMainClock)
 Enter Sub Timer Mode. More...
 
en_result_t Lpm_SetRtcMode (void)
 Enter RTC Mode. More...
 
en_result_t Lpm_SetStopMode (void)
 Enter Stop Mode. More...
 
en_result_t Lpm_SetDeepRtcMode (void)
 Enter Deep RTC Mode. More...
 
en_result_t Lpm_SetDeepStopMode (void)
 Enter Deep Stop Mode. More...
 
en_result_t Lpm_ReadBackupRegisters (stc_backupreg_t *stcBackUpReg)
 Read Backup Registers. More...
 
en_result_t Lpm_WriteBackupRegisters (stc_backupreg_t *stcBackUpReg)
 Write Backup Registers. More...
 
en_result_t Lpm_Read_u8DataBackupRegister (uint8_t u8AddressOffset, uint8_t *u8Data)
 Read Backup Register (Byte) More...
 
en_result_t Lpm_Write_u8DataBackupRegister (uint8_t u8AddressOffset, uint8_t u8Data)
 Write Backup Registers (Byte) More...
 
en_result_t Lpm_Read_u16DataBackupRegister (uint8_t u8AddressOffset, uint16_t *u16Data)
 Read Backup Register (16-Bit) More...
 
en_result_t Lpm_Write_u16DataBackupRegister (uint8_t u8AddressOffset, uint16_t u16Data)
 Write Backup Registers (16-Bit) More...
 
en_result_t Lpm_Read_u32DataBackupRegister (uint8_t u8AddressOffset, uint32_t *u32Data)
 Read Backup Register (32-Bit) More...
 
en_result_t Lpm_Write_u32DataBackupRegister (uint8_t u8AddressOffset, uint32_t u32Data)
 Write Backup Registers (32-Bit) More...
 

Detailed Description

Headerfile for LPM functions

History:

  • 2013-10-23 1.0 MWi First version.

Definition in file lpm.h.