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.

Write appropriate value to register for enabling the sleep mode.

Write appropriate value to register for disabling the sleep mode.

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.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.