AVR Power Saving Sleep Modes

This section introduces the AVR Power Saving Sleep API. This API provides the necessary functions and constants to configure and manage sleep states on AVR microcontrollers. Not all AVR microcontrollers implement the same set of functionality with respect to sleep modes. Using a feature that is not supported by the targeted controller will result in a compile error.

Sleep Modes

Warning

doxygenenum: Cannot find enum “avr::sleep::mode” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml

Configuring Sleep Modes

Warning

doxygenfunction: Cannot find function “avr::sleep::select” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml

Warning

doxygenfunction: Cannot find function “avr::sleep::disable_brownout_detector” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml

Managing Sleep State

Warning

doxygenfunction: Cannot find function “avr::sleep::enter” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml

Warning

doxygenfunction: Cannot find function “avr::sleep::select_enter” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml

Warning

doxygenfunction: Cannot find function “avr::sleep::enable” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml

Warning

doxygenfunction: Cannot find function “avr::sleep::select_enable” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml

Warning

doxygenfunction: Cannot find function “avr::sleep::sleep” in doxygen xml output for project “AVR++” from directory: /home/docs/checkouts/readthedocs.org/user_builds/avrxx/checkouts/latest/doc/xml