Struct imxrt_boot_gen::flexspi::LookupTable
source · #[repr(transparent)]pub struct LookupTable(_);
Expand description
A sequence lookup table, part of the general FlexSPI configuration block
The contents of the sequences depend on what kind of FLASH device we’re interfacing. Refer to your FLASH device manual for more information.
Any unspecified command is set to a sequence of STOPs.
use imxrt_boot_gen::flexspi::{
LookupTable,
Command,
SequenceBuilder,
Sequence, Instr,
opcodes::sdr::*,
Pads,
};
const LUT: LookupTable = LookupTable::new()
.command(Command::Read, SequenceBuilder::new()
.instr(Instr::new(CMD, Pads::One, 0xEB))
.instr(Instr::new(RADDR, Pads::Four, 0x02))
.build());
Implementations
Trait Implementations
sourceimpl Clone for LookupTable
impl Clone for LookupTable
sourcefn clone(&self) -> LookupTable
fn clone(&self) -> LookupTable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LookupTable
impl Debug for LookupTable
impl Copy for LookupTable
Auto Trait Implementations
impl RefUnwindSafe for LookupTable
impl Send for LookupTable
impl Sync for LookupTable
impl Unpin for LookupTable
impl UnwindSafe for LookupTable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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