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
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SequenceBuilder
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