#[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

Create a new lookup table. All memory is set to zero.

Assign the sequence to the command that is found at the Command index

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.