#[repr(u8)]
pub enum MODE_A {
NORMAL,
NOP,
ALLBANKS_PRECHARGE,
LOAD_MODEREG,
AUTO_REFRESH,
EXT_LOAD_MODEREG,
DEEP_POWERDOWN,
}
Expand description
SDRAMC Command Mode
Value on reset: 0
Variants
NORMAL
0: Normal mode. Any access to the SDRAM is decoded normally. To activate this mode, the command must be followed by a write to the SDRAM.
NOP
1: The SDRAMC issues a NOP command when the SDRAM device is accessed regardless of the cycle. To activate this mode, the command must be followed by a write to the SDRAM.
ALLBANKS_PRECHARGE
2: The SDRAMC issues an ‘All Banks Precharge’ command when the SDRAM device is accessed regardless of the cycle. To activate this mode, the command must be followed by a write to the SDRAM.
LOAD_MODEREG
3: The SDRAMC issues a ‘Load Mode Register’ command when the SDRAM device is accessed regardless of the cycle. To activate this mode, the command must be followed by a write to the SDRAM.
AUTO_REFRESH
4: The SDRAMC issues an ‘Auto-Refresh’ Command when the SDRAM device is accessed regardless of the cycle. Previously, an ‘All Banks Precharge’ command must be issued. To activate this mode, the command must be followed by a write to the SDRAM.
EXT_LOAD_MODEREG
5: The SDRAMC issues an ‘Extended Load Mode Register’ command when the SDRAM device is accessed regardless of the cycle. To activate this mode, the ‘Extended Load Mode Register’ command must be followed by a write to the SDRAM. The write in the SDRAM must be done in the appropriate bank; most low-power SDRAM devices use the bank 1.
DEEP_POWERDOWN
6: Deep Power-down mode. Enters Deep Power-down mode.
Trait Implementations
impl Copy for MODE_A
impl StructuralPartialEq for MODE_A
Auto Trait Implementations
impl RefUnwindSafe for MODE_A
impl Send for MODE_A
impl Sync for MODE_A
impl Unpin for MODE_A
impl UnwindSafe for MODE_A
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more