Struct rustduino::atmega2560p::hal::sleep_mode::Sleep [−][src]
#[repr(C, packed)]pub struct Sleep { /* fields omitted */ }
Expand description
Contains registers to control the sleep modes. These bits select between the six available sleep modes in ATMEGA2560P.
Implementations
Creates a new reference to the Sleep structure according to appropriate location.
Set the bits of SMCR register according to the sleep mode required.
The sleep mode to be set will be given as the standard name.
For more details about the available Options for the sleep mode please check the
comment given above the enum Options in the code.