pub struct SequenceBuilder { /* private fields */ }
Expand description

A Sequence builder

Use SequenceBuilder to define a FlexSPI LUT sequence. If you insert too many instructions into the sequence, you’ll observe a compile-time error.

Any unspecified instructions are set to STOP.

Example

use imxrt_boot_gen::flexspi::{
    Sequence,
    SequenceBuilder,
    Instr,
    Pads,
    opcodes::sdr::*,
};

const SEQ_READ: Sequence = SequenceBuilder::new()
    .instr(Instr::new(CMD, Pads::One, 0xEB))
    .instr(Instr::new(READ, Pads::Four, 0x04))
    .build();

Implementations

Creates a new SequenceBuilder than can accept up to eight instructions

All unspecified instructions are set to STOP.

Insert instr as the next sequence instruction

If you call instr more than 8 times, you’ll observe a compile-time error.

Create the sequence

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.