5.8 SLPCTRL - Sleep Controller

5.8.1 Introduction

The MCC Melody Sleep Controller (SLPCTRL) System driver generates APIs to support SLPCTRL-specific peripheral functionality on AVRxxxDx and ATtiny target MCUs.

The SLPCTRL controls and handles the transitions between Active and Sleep modes. Sleep modes are used to shut down peripherals and clock domains in the device in order to save power.

There are four modes available: One Active mode in which software is executed, and three sleep modes. The available sleep modes are Idle, Standby and Power-Down.

5.8.2 Supported Device Families

AVR® Dx AVR® Ex ATtiny ATmega

5.8.3 Required Header Files:

#include "mcc_generated_files/system.h"

5.8.4 File Documentation

5.8.4.1 source/system.c File Reference

This file contains the API implementation for the SLPCTRL driver.

#include "../system.h"

5.8.4.1.2 Detailed Description

This file contains the API implementation for the SLPCTRL driver.

System Driver Source File

Version: Driver Version 1.0.1

5.8.4.1.3 Function Documentation

SLPCTRL_Initialize()

int8_t SLPCTRL_Initialize ( )

Initializes the SLPCTRL module.

Parameters:
None.
Returns:

None.