ATmega328p
Hardware definitions
Loading...
Searching...
No Matches
Power.h File Reference

Sleep modes and peripheral power reduction. More...

#include <stdint.h>
#include "Config.h"
Include dependency graph for Power.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  atmega328p
 Device-specific definitions for the ATmega328P.
namespace  atmega328p::power
 Power management definitions.

Enumerations

enum class  atmega328p::power::SleepMode : uint8_t {
  atmega328p::power::Idle = 0 , atmega328p::power::ADCNoiseReduction = 1 , atmega328p::power::PowerDown = 2 , atmega328p::power::PowerSave = 3 ,
  atmega328p::power::Standby = 6 , atmega328p::power::ExtendedStandby = 7
}
 Supported sleep modes. More...
enum  atmega328p::power::PowerReduction : uint8_t {
  atmega328p::power::adc = 0x01 , atmega328p::power::usart0 = 0x02 , atmega328p::power::spi = 0x04 , atmega328p::power::timer1 = 0x08 ,
  atmega328p::power::timer0 = 0x20 , atmega328p::power::timer2 = 0x40 , atmega328p::power::twi = 0x80
}
 Peripheral clock-disable masks. More...
enum  : uint8_t { atmega328p::power::sleep_mode_count = 6U , atmega328p::power::power_reduction_module_count = 7U , atmega328p::power::bod_can_be_disabled_during_sleep = 1 }

Detailed Description

Sleep modes and peripheral power reduction.