[][src]Struct imxrt_boot_gen::flexspi::LookupTable

#[repr(transparent)]pub struct 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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.