[−][src]Struct imxrt_boot_gen::flexspi::SequenceBuilder
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
impl Send for SequenceBuilder
[src]
impl Sync for SequenceBuilder
[src]
impl Unpin for SequenceBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,