![]() |
Synergy Software Package User's Manual
|
Driver for Low Power Modes. More...
Data Structures | |
| struct | lpmv2_mcu_cfg_t |
Functions | |
| ssp_err_t | R_LPMV2_VersionGet (ssp_version_t *const p_version) |
| Get the driver version based on compile time macros. More... | |
| ssp_err_t | R_LPMV2_Init (void) |
| Perform any necessary initialization. More... | |
| ssp_err_t | R_LPMV2_LowPowerConfigure (lpmv2_cfg_t const *const p_cfg) |
| Configure a low power mode. More... | |
| ssp_err_t | R_LPMV2_LowPowerModeEnter (void) |
| Enter low power mode (sleep/standby/deep standby) using WFI macro. More... | |
| ssp_err_t | R_LPMV2_ClearIOKeep (void) |
| Clear the IOKEEP bit after deep software stand by. More... | |
Driver for Low Power Modes.
The LPMV2 driver supports low power modes deep standby, standby, sleep, and snooze.
Deep Standby Interrupt Edge
Deep Standby cancel sources
| enum lpmv2_io_port_t |
I/O port state after Deep Software Standby mode (S5D3, S5D5, S5D9, S7G2)
Output port enable (S3A1, S3A3, S3A7, S5D3, S5D5, S5D9, S7G2)
| enum lpmv2_power_supply_t |
Power supply control (S5D3, S5D5, S5D9, S7G2)
Snooze cancel control
| enum lpmv2_snooze_dtc_t |
| enum lpmv2_snooze_end_t |
Snooze end control
Snooze request sources
Wake from standby mode sources, does not apply to sleep or deep standby modes
| ssp_err_t R_LPMV2_ClearIOKeep | ( | void | ) |
Clear the IOKEEP bit after deep software stand by.
| SSP_SUCCESS | DSPBYCR_b.IOKEEP bit cleared Successfully. |
| SSP_ERR_UNSUPPORTED | Deep stand by mode not supported on this MCU. |
| ssp_err_t R_LPMV2_Init | ( | void | ) |
Perform any necessary initialization.
| SSP_SUCCESS | LPMV2 Software lock initialized |
| ssp_err_t R_LPMV2_LowPowerConfigure | ( | lpmv2_cfg_t const *const | p_cfg | ) |
Configure a low power mode.
NOTE: This function does not enter the low power mode, it only configures parameters of the mode. Execution of the WFI instruction is what causes the low power mode to be entered.
| SSP_SUCCESS | Low power mode successfuly applied |
| SSP_ERR_INVALID_POINTER | p_cfg is NULL |
| SSP_ERR_IN_USE | Lock was not acquired |
| SSP_ERR_INVALID_HW_CONDITION | Operating mode change transition was detected (OPCMTSF, SOPCMTSF bits) |
Get hardware lock
Unlock LPMV2 registers
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Configure MCU specific settings related to low power modes
Lock LPMV2 registers
Release hardware lock.
Get hardware lock
Unlock LPMV2 registers
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Configures MCU specific settings related to low power modes
Lock LPMV2 registers
Release hardware lock
Get hardware lock
Unlock LPMV2 registers
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Configure MCU specific settings related to low power modes
Lock LPMV2 registers
Release hardware lock.
Get hardware lock
Unlock LPMV2 registers
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Configure MCU specific settings related to low power modes
Lock LPMV2 registers
Release hardware lock.
| ssp_err_t R_LPMV2_LowPowerModeEnter | ( | void | ) |
Enter low power mode (sleep/standby/deep standby) using WFI macro.
Function will return after waking from low power mode.
| SSP_SUCCESS | Successful. |
| SSP_ERR_INVALID_HW_CONDITION | HOCO was unstable during attempt to revert operating mode. |
Get hardware lock
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Enter low power mode
Release hardware lock
Get hardware lock
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Enter low power mode
Release hardware lock
Get hardware lock
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Enter low power mode
Release hardware lock.
Get hardware lock
Check for ongoing operating mode transition (OPCMTSF, SOPCMTSF)
Enter low power mode
Release hardware lock.
| ssp_err_t R_LPMV2_VersionGet | ( | ssp_version_t *const | p_version | ) |
Get the driver version based on compile time macros.
| SSP_SUCCESS | Successful close. |
| SSP_ERR_INVALID_POINTER | p_version is NULL. |