[−][src]Struct imxrt_boot_gen::flexspi::LookupTable
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
impl LookupTable
[src]
pub const fn new() -> Self
[src]
Create a new lookup table. All memory is set to zero.
pub const fn command(self, cmd: Command, sequence: Sequence) -> Self
[src]
Assign the sequence
to the command that is found at the Command
index
Trait Implementations
impl Clone for LookupTable
[src]
pub fn clone(&self) -> LookupTable
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for LookupTable
[src]
impl Debug for LookupTable
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,