ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
Power.h

Purpose: Sleep modes and peripheral power gates.

Namespace: atmega2560::power.

The six sleep modes are Idle, ADC Noise Reduction, Power-down, Power-save, Standby and Extended Standby. Their SM2:0 encodings are 000, 001, 010, 011, 110 and 111, respectively.

namespace mcu = atmega2560;
static_assert(mcu::power::has_prr1 == 1, "ATmega2560 Power definition");
static_assert(mcu::power::has_sleep_mode_adc_noise_reduction == 1, "ATmega2560 ADC Noise Reduction mode");
static_assert(static_cast<unsigned>(mcu::power::SleepMode::ExtendedStandby) == 7, "ATmega2560 sleep mode encoding");
Sleep modes and peripheral power gates.
ATmega2560 hardware definitions.
Definition ADC.h:15

These are hardware definitions, not runtime register access or initialization.

Source: ATmega2560 datasheet (DS40002211A), Section 11.