[][src]Struct imxrt_boot_gen::flexspi::SequenceBuilder

pub struct SequenceBuilder { /* fields omitted */ }

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

impl SequenceBuilder[src]

pub const fn new() -> Self[src]

Creates a new SequenceBuilder than can accept up to eight instructions

All unspecified instructions are set to STOP.

pub const fn instr(self, instr: Instr) -> Self[src]

Insert instr as the next sequence instruction

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

pub const fn build(self) -> Sequence[src]

Create the sequence

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.