PDL for FM4  Version1.2
Peripheral Driverl Library for FM4
Low Power Modes Functions (LPM)

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

static en_result_t ReadBackupRegisters (stc_backupreg_t *stcBackUpReg)
 Read Backup Registers. More...
 
static en_result_t WriteBackupRegisters (stc_backupreg_t *stcBackUpReg)
 Write Backup Registers. More...
 
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_SetPllTimer (boolean_t bDisableSubClock)
 Enter PLL Timer 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_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

Note
This driver module requires the CLK and EXINT module to be activated. For Back-up Register usage only, no additional module has to be activated

Provided functions of LPM module:

Lpm_WriteBackupRegisters() writes a structure of the type of stc_backupreg_t to the back-up registers and Lpm_ReadBackupRegisters() reads them out to this structure.
Lpm_Read_u8DataBackupRegister() and Lpm_Write_u8DataBackupRegister() accesses a single byte of the back-up registers.
Lpm_Read_u16DataBackupRegister() and Lpm_Write_u16DataBackupRegister() accesses 16-Bit data of the back-up registers.
Lpm_Read_u32DataBackupRegister() and Lpm_Write_u32DataBackupRegister() accesses 32-Bit data of the back-up registers.


The following functions are only available, if CLK and EXINT modules are activated:

Sleep Mode Transition Functions:

Lpm_SetHsCrSleep()  High-Speec CR Clock
Lpm_SetMainSleep()  Main Clock
Lpm_SetPllSleep()  PLL Clock
Lpm_SetLsCrSleep()  Low-Speed CR Clock
Lpm_SetSubSleep()  Sub Clock


Timer Mode Transition Functions:

Lpm_SetHsCrTimer()  High-Speec CR Clock
Lpm_SetMainTimer()  Main Clock
Lpm_SetPllTimer()  PLL Clock
Lpm_SetLsCrTimer()  Low-Speed CR Clock
Lpm_SetSubTimer()  Sub Clock


Stop Mode Transition Functions:

Lpm_SetRtcMode()  RTC Stop Mode
Lpm_SetStopMode()  Stop Mode


Deep Standby Mode Transition Functions:

Lpm_SetDeepRtcMode()  Deep RTC Stop Mode
Lpm_SetDeepStopMode()  Deep Stop Mode


Macro Definition Documentation

#define PDL_u16BREG00   0u

Definition at line 186 of file lpm.h.

#define PDL_u16BREG02   2u

Definition at line 187 of file lpm.h.

#define PDL_u16BREG04   4u

Definition at line 188 of file lpm.h.

#define PDL_u16BREG06   6u

Definition at line 189 of file lpm.h.

#define PDL_u16BREG08   8u

Definition at line 190 of file lpm.h.

#define PDL_u16BREG0A   10u

Definition at line 191 of file lpm.h.

#define PDL_u16BREG0C   12u

Definition at line 192 of file lpm.h.

#define PDL_u16BREG0E   14u

Definition at line 193 of file lpm.h.

#define PDL_u16BREG10   16u

Definition at line 194 of file lpm.h.

#define PDL_u16BREG12   18u

Definition at line 195 of file lpm.h.

#define PDL_u16BREG14   20u

Definition at line 196 of file lpm.h.

#define PDL_u16BREG16   22u

Definition at line 197 of file lpm.h.

#define PDL_u16BREG18   24u

Definition at line 198 of file lpm.h.

#define PDL_u16BREG1A   26u

Definition at line 199 of file lpm.h.

#define PDL_u16BREG1C   28u

Definition at line 200 of file lpm.h.

#define PDL_u16BREG1E   30u

Definition at line 201 of file lpm.h.

#define PDL_u32BREG00   0u

Definition at line 204 of file lpm.h.

#define PDL_u32BREG04   4u

Definition at line 205 of file lpm.h.

#define PDL_u32BREG08   8u

Definition at line 206 of file lpm.h.

#define PDL_u32BREG0C   12u

Definition at line 207 of file lpm.h.

#define PDL_u32BREG10   16u

Definition at line 208 of file lpm.h.

#define PDL_u32BREG14   20u

Definition at line 209 of file lpm.h.

#define PDL_u32BREG18   24u

Definition at line 210 of file lpm.h.

#define PDL_u32BREG1C   28u

Definition at line 211 of file lpm.h.

#define PDL_u8BREG00   0u

Definition at line 152 of file lpm.h.

#define PDL_u8BREG01   1u

Definition at line 153 of file lpm.h.

#define PDL_u8BREG02   2u

Definition at line 154 of file lpm.h.

#define PDL_u8BREG03   3u

Definition at line 155 of file lpm.h.

#define PDL_u8BREG04   4u

Definition at line 156 of file lpm.h.

#define PDL_u8BREG05   5u

Definition at line 157 of file lpm.h.

#define PDL_u8BREG06   6u

Definition at line 158 of file lpm.h.

#define PDL_u8BREG07   7u

Definition at line 159 of file lpm.h.

#define PDL_u8BREG08   8u

Definition at line 160 of file lpm.h.

#define PDL_u8BREG09   9u

Definition at line 161 of file lpm.h.

#define PDL_u8BREG0A   10u

Definition at line 162 of file lpm.h.

#define PDL_u8BREG0B   11u

Definition at line 163 of file lpm.h.

#define PDL_u8BREG0C   12u

Definition at line 164 of file lpm.h.

#define PDL_u8BREG0D   13u

Definition at line 165 of file lpm.h.

#define PDL_u8BREG0E   14u

Definition at line 166 of file lpm.h.

#define PDL_u8BREG0F   15u

Definition at line 167 of file lpm.h.

#define PDL_u8BREG10   16u

Definition at line 168 of file lpm.h.

#define PDL_u8BREG11   17u

Definition at line 169 of file lpm.h.

#define PDL_u8BREG12   18u

Definition at line 170 of file lpm.h.

#define PDL_u8BREG13   19u

Definition at line 171 of file lpm.h.

#define PDL_u8BREG14   20u

Definition at line 172 of file lpm.h.

#define PDL_u8BREG15   21u

Definition at line 173 of file lpm.h.

#define PDL_u8BREG16   22u

Definition at line 174 of file lpm.h.

#define PDL_u8BREG17   23u

Definition at line 175 of file lpm.h.

#define PDL_u8BREG18   24u

Definition at line 176 of file lpm.h.

#define PDL_u8BREG19   25u

Definition at line 177 of file lpm.h.

#define PDL_u8BREG1A   26u

Definition at line 178 of file lpm.h.

#define PDL_u8BREG1B   27u

Definition at line 179 of file lpm.h.

#define PDL_u8BREG1C   28u

Definition at line 180 of file lpm.h.

#define PDL_u8BREG1D   29u

Definition at line 181 of file lpm.h.

#define PDL_u8BREG1E   30u

Definition at line 182 of file lpm.h.

#define PDL_u8BREG1F   31u

Definition at line 183 of file lpm.h.

Typedef Documentation

Function Documentation

en_result_t Lpm_Read_u16DataBackupRegister ( uint8_t  u8AddressOffset,
uint16_t *  u16Data 
)

Read Backup Register (16-Bit)

Parameters
[in]u8AddressOffsetByte address offset to Back-up register
[out]u16DataPointer to 16-Bit data to be read
Return values
OkSuccessfully written
ErrorInvalidParameterAddress offset out of range (highest priority)
ErrorAddressAlignmentAddress not aligned to 16-bit

Definition at line 664 of file lpm.c.

References ErrorAddressAlignment, ErrorInvalidParameter, Ok, PDL_BACK_UP_REGISTERS, ReadBackupRegisters(), and stc_backupreg::u8BREG00.

Here is the call graph for this function:

en_result_t Lpm_Read_u32DataBackupRegister ( uint8_t  u8AddressOffset,
uint32_t *  u32Data 
)

Read Backup Register (32-Bit)

Parameters
[in]u8AddressOffsetByte address offset to Back-up register
[out]u32DataPointer to 32-Bit data to be read
Return values
OkSuccessfully written
ErrorInvalidParameterAddress offset out of range (highest priority)
ErrorAddressAlignmentAddress not aligned to 32-bit

Definition at line 728 of file lpm.c.

References ErrorAddressAlignment, ErrorInvalidParameter, Ok, PDL_BACK_UP_REGISTERS, ReadBackupRegisters(), and stc_backupreg::u8BREG00.

Here is the call graph for this function:

en_result_t Lpm_Read_u8DataBackupRegister ( uint8_t  u8AddressOffset,
uint8_t *  u8Data 
)

Read Backup Register (Byte)

Parameters
[in]u8AddressOffsetByte address offset to Back-up register
[out]u8DataPointer to Byte data to be read
Return values
OkSuccessfully written
ErrorInvalidParameterAddress offset out of range

Definition at line 611 of file lpm.c.

References ErrorInvalidParameter, Ok, PDL_BACK_UP_REGISTERS, ReadBackupRegisters(), and stc_backupreg::u8BREG00.

Here is the call graph for this function:

en_result_t Lpm_ReadBackupRegisters ( stc_backupreg_t *  stcBackUpReg)

Read Backup Registers.

Parameters
[out]stcBackUpRegPointer to a data structure of backup registers to be read
Return values
OkSuccessfully read

Definition at line 579 of file lpm.c.

References Ok, and ReadBackupRegisters().

Here is the call graph for this function:

en_result_t Lpm_SetDeepRtcMode ( void  )

Enter Deep RTC Mode.

Precondition
This function requires a proper initialized and running RTC
Return values
OkReturned from Deep RTC Mode

Definition at line 541 of file lpm.c.

References Clk_SetMode(), ClkDeepRtc, stc_clk_main_config::enMode, and Ok.

Here is the call graph for this function:

en_result_t Lpm_SetDeepStopMode ( void  )

Enter Deep Stop Mode.

Return values
OkReturned from Deep Stop Mode

Definition at line 557 of file lpm.c.

References Clk_SetMode(), ClkDeepStop, stc_clk_main_config::enMode, and Ok.

Here is the call graph for this function:

en_result_t Lpm_SetHsCrSleep ( boolean_t  bDisablePllMainClock,
boolean_t  bDisableSubClock 
)

Enter HS-CR Sleep Mode.

Parameters
[in]bDisablePllMainClockTRUE: Disable PLL Clock and Main Clock
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from HS-CR Sleep Mode

Definition at line 158 of file lpm.c.

References Clk_DisableMainClock(), Clk_DisablePllClock(), Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToHsCrClock(), ClkSleep, stc_clk_main_config::enMode, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetHsCrTimer ( boolean_t  bDisablePllMainClock,
boolean_t  bDisableSubClock 
)

Enter HS-CR Timer Mode.

Parameters
[in]bDisablePllMainClockTRUE: Disable PLL Clock and Main Clock
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from HS-CR Timer Mode

Definition at line 369 of file lpm.c.

References Clk_DisableMainClock(), Clk_DisablePllClock(), Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToHsCrClock(), ClkTimer, stc_clk_main_config::enMode, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetLsCrSleep ( boolean_t  bDisablePllMainClock,
boolean_t  bDisableSubClock 
)

Enter LS-CR Sleep Mode.

Parameters
[in]bDisablePllMainClockTRUE: Disable PLL Clock and Main Clock
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from LS-CR Sleep Mode

Definition at line 264 of file lpm.c.

References Clk_DisableMainClock(), Clk_DisablePllClock(), Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToLsCrClock(), ClkSleep, stc_clk_main_config::enMode, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetLsCrTimer ( boolean_t  bDisablePllMainClock,
boolean_t  bDisableSubClock 
)

Enter LS-CR Timer Mode.

Parameters
[in]bDisablePllMainClockTRUE: Disable PLL Clock and Main Clock
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from LS-CR Timer Mode

Definition at line 439 of file lpm.c.

References Clk_DisableMainClock(), Clk_DisablePllClock(), Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToLsCrClock(), ClkTimer, stc_clk_main_config::enMode, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetMainSleep ( boolean_t  bDisablePllClock,
boolean_t  bDisableSubClock 
)

Enter Main Sleep Mode.

Parameters
[in]bDisablePllClockTRUE: Disable PLL Clock
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from Main Sleep Mode

Definition at line 193 of file lpm.c.

References Clk_DisablePllClock(), Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToMainClock(), ClkSleep, stc_clk_main_config::enMode, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetMainTimer ( boolean_t  bDisablePllClock,
boolean_t  bDisableSubClock 
)

Enter Main Timer Mode.

Parameters
[in]bDisablePllClockTRUE: Disable PLL Clock
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from Main Timer Mode

Definition at line 404 of file lpm.c.

References Clk_DisablePllClock(), Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToMainClock(), ClkTimer, stc_clk_main_config::enMode, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetPllSleep ( boolean_t  bDisableSubClock)

Enter PLL Sleep Mode.

Precondition
The system has to be in stabilized PLL mode before calling this function
Parameters
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from PLL Sleep Mode
ErrorNotReadyPLL clock not available

Definition at line 231 of file lpm.c.

References Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), ClkSleep, stc_clk_main_config::enMode, ErrorNotReady, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetPllTimer ( boolean_t  bDisableSubClock)

Enter PLL Timer Mode.

Precondition
The system has to be in stabilized PLL mode before calling this function
Parameters
[in]bDisableSubClockTRUE: Disable Sub Clock
Return values
OkReturned from PLL Timer Mode
ErrorNotReadyPLL clock not available

Definition at line 336 of file lpm.c.

References Clk_DisableSubClock(), Clk_MainGetParameters(), Clk_SetMode(), ClkTimer, stc_clk_main_config::enMode, ErrorNotReady, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetRtcMode ( void  )

Enter RTC Mode.

Precondition
This function requires a proper initialized and running RTC
Return values
OkReturned from RTC Mode

Definition at line 507 of file lpm.c.

References Clk_SetMode(), ClkRtc, stc_clk_main_config::enMode, and Ok.

Here is the call graph for this function:

en_result_t Lpm_SetStopMode ( void  )

Enter Stop Mode.

Return values
OkReturned from Stop Mode

Definition at line 523 of file lpm.c.

References Clk_SetMode(), ClkStop, stc_clk_main_config::enMode, and Ok.

Here is the call graph for this function:

en_result_t Lpm_SetSubSleep ( boolean_t  bDisablePllMainClock)

Enter Sub Sleep Mode.

Parameters
[in]bDisablePllMainClockTRUE: Disable PLL Clock and Main Clock
Return values
OkReturned from LS-CR Sleep Mode
ErrorNotReadySub clock not available

Definition at line 299 of file lpm.c.

References Clk_DisableMainClock(), Clk_DisablePllClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToSubClock(), ClkSleep, stc_clk_main_config::enMode, ErrorNotReady, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_SetSubTimer ( boolean_t  bDisablePllMainClock)

Enter Sub Timer Mode.

Parameters
[in]bDisablePllMainClockTRUE: Disable PLL Clock and Main Clock
Return values
OkReturned from LS-CR Timer Mode
ErrorNotReadySub clock not available

Definition at line 474 of file lpm.c.

References Clk_DisableMainClock(), Clk_DisablePllClock(), Clk_MainGetParameters(), Clk_SetMode(), Clk_SwitchToSubClock(), ClkTimer, stc_clk_main_config::enMode, ErrorNotReady, Ok, and TRUE.

Here is the call graph for this function:

en_result_t Lpm_Write_u16DataBackupRegister ( uint8_t  u8AddressOffset,
uint16_t  u16Data 
)

Write Backup Registers (16-Bit)

Parameters
[in]u8AddressOffsetByte address offset to Back-up register
[in]u16Data16-Bit data to be written
Return values
OkSuccessfully written
ErrorInvalidParameterAddress offset out of range (highest priority)
ErrorAddressAlignmentAddress not aligned to 16-bit

Definition at line 696 of file lpm.c.

References ErrorAddressAlignment, ErrorInvalidParameter, Ok, PDL_BACK_UP_REGISTERS, ReadBackupRegisters(), stc_backupreg::u8BREG00, and WriteBackupRegisters().

Here is the call graph for this function:

en_result_t Lpm_Write_u32DataBackupRegister ( uint8_t  u8AddressOffset,
uint32_t  u32Data 
)

Write Backup Registers (32-Bit)

Parameters
[in]u8AddressOffsetByte address offset to Back-up register
[in]u32DataPointer to 32-Bit data
Return values
OkSuccessfully written
ErrorInvalidParameterAddress offset out of range (highest priority)
ErrorAddressAlignmentAddress not aligned to 32-bit

Definition at line 760 of file lpm.c.

References ErrorAddressAlignment, ErrorInvalidParameter, Ok, PDL_BACK_UP_REGISTERS, ReadBackupRegisters(), stc_backupreg::u8BREG00, and WriteBackupRegisters().

Here is the call graph for this function:

en_result_t Lpm_Write_u8DataBackupRegister ( uint8_t  u8AddressOffset,
uint8_t  u8Data 
)

Write Backup Registers (Byte)

Parameters
[in]u8AddressOffsetByte address offset to Back-up register
[in]u8DataByte data to be written
Return values
OkSuccessfully written
ErrorInvalidParameterAddress offset out of range

Definition at line 637 of file lpm.c.

References ErrorInvalidParameter, Ok, PDL_BACK_UP_REGISTERS, ReadBackupRegisters(), stc_backupreg::u8BREG00, and WriteBackupRegisters().

Here is the call graph for this function:

en_result_t Lpm_WriteBackupRegisters ( stc_backupreg_t *  stcBackUpReg)

Write Backup Registers.

Parameters
[in]stcBackUpRegstructure of backup registers
Return values
OkSuccessfully written

Definition at line 594 of file lpm.c.

References Ok, and WriteBackupRegisters().

Here is the call graph for this function:

static en_result_t ReadBackupRegisters ( stc_backupreg_t *  stcBackUpReg)
static

Read Backup Registers.

Parameters
[out]stcBackUpRegdouble pointer to user backup register structure
Return values
OkSuccessfully read

Definition at line 98 of file lpm.c.

References Ok, PDL_BACK_UP_REGISTERS, and stc_backupreg::u8BREG00.

Referenced by Lpm_Read_u16DataBackupRegister(), Lpm_Read_u32DataBackupRegister(), Lpm_Read_u8DataBackupRegister(), Lpm_ReadBackupRegisters(), Lpm_Write_u16DataBackupRegister(), Lpm_Write_u32DataBackupRegister(), and Lpm_Write_u8DataBackupRegister().

Here is the caller graph for this function:

static en_result_t WriteBackupRegisters ( stc_backupreg_t *  stcBackUpReg)
static

Write Backup Registers.

Parameters
[out]stcBackUpRegstructure of backup registers
Return values
OkSuccessfully written

Definition at line 126 of file lpm.c.

References Ok, PDL_BACK_UP_REGISTERS, and stc_backupreg::u8BREG00.

Referenced by Lpm_Write_u16DataBackupRegister(), Lpm_Write_u32DataBackupRegister(), Lpm_Write_u8DataBackupRegister(), and Lpm_WriteBackupRegisters().

Here is the caller graph for this function: