Struct imxrt_boot_gen::flexspi::SequenceBuilder
source · 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§
source§impl SequenceBuilder
impl SequenceBuilder
sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new SequenceBuilder
than can accept up to eight instructions
All unspecified instructions are set to STOP
.
Auto Trait Implementations§
impl RefUnwindSafe for SequenceBuilder
impl Send for SequenceBuilder
impl Sync for SequenceBuilder
impl Unpin for SequenceBuilder
impl UnwindSafe for SequenceBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more