Struct StateMachineConfiguration

Source
pub struct StateMachineConfiguration {
Show 25 fields pub out_pins_count: u32, pub out_pins_base: u32, pub set_pins_count: u32, pub set_pins_base: u32, pub in_pins_base: u32, pub side_set_base: u32, pub side_set_opt_enable: bool, pub side_set_bit_count: u32, pub side_set_pindirs: bool, pub wrap: u32, pub wrap_to: u32, pub in_shift_direction_right: bool, pub in_autopush: bool, pub in_push_threshold: u32, pub out_shift_direction_right: bool, pub out_autopull: bool, pub out_pull_threshold: u32, pub jmp_pin: u32, pub out_special_sticky: bool, pub out_special_has_enable_pin: bool, pub out_special_enable_pin_index: u32, pub mov_status_sel: PioMovStatusType, pub mov_status_n: u32, pub div_int: u32, pub div_frac: u32,
}
Expand description

PIO State Machine configuration structure

Used to initialize a PIO with all of its state machines.

Fields§

§out_pins_count: u32§out_pins_base: u32§set_pins_count: u32§set_pins_base: u32§in_pins_base: u32§side_set_base: u32§side_set_opt_enable: bool§side_set_bit_count: u32§side_set_pindirs: bool§wrap: u32§wrap_to: u32§in_shift_direction_right: bool§in_autopush: bool§in_push_threshold: u32§out_shift_direction_right: bool§out_autopull: bool§out_pull_threshold: u32§jmp_pin: u32§out_special_sticky: bool§out_special_has_enable_pin: bool§out_special_enable_pin_index: u32§mov_status_sel: PioMovStatusType§mov_status_n: u32§div_int: u32§div_frac: u32

Trait Implementations§

Source§

impl Default for StateMachineConfiguration

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.