Struct imxrt_boot_gen::flexspi::LookupTable
source · pub struct LookupTable(/* private fields */);
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§
source§impl Clone for LookupTable
impl Clone for LookupTable
source§fn clone(&self) -> LookupTable
fn clone(&self) -> LookupTable
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more