embassy-rp

Crates

git

Versions

rp2040

Flavors

Skip to main content

InterpolatorLane0

Struct InterpolatorLane0 

Source
pub struct InterpolatorLane0<'d, T: Instance> { /* private fields */ }
Expand description

Lane 0

Implementations§

Source§

impl<'d, T: Instance> InterpolatorLane0<'d, T>

Source

pub fn pop(&mut self) -> u32

Read the lane result, and simultaneously write lane results to both accumulators.

Source

pub fn peek(&self) -> u32

Read the lane result without altering any internal state

Source

pub fn set_accum(&mut self, v: u32)

Write a value to the accumulator

Source

pub fn get_accum(&self) -> u32

Read the value from the accumulator

Source

pub fn add_accum(&mut self, v: u32)

Add the value to the accumulator register

Source

pub fn set_base(&mut self, v: u32)

Write a value to the base register

Source

pub fn get_base(&self) -> u32

Read the value from the base register

Source

pub fn set_ctrl(&mut self, v: LaneCtrl)

Write to the control register

Source

pub fn get_ctrl(&self) -> LaneCtrl

Read from the control register

Source

pub fn read_raw(&self) -> u32

Read the raw shift and mask value (BASE register not added)

Auto Trait Implementations§

§

impl<'d, T> !UnwindSafe for InterpolatorLane0<'d, T>

§

impl<'d, T> Freeze for InterpolatorLane0<'d, T>

§

impl<'d, T> RefUnwindSafe for InterpolatorLane0<'d, T>

§

impl<'d, T> Send for InterpolatorLane0<'d, T>

§

impl<'d, T> Sync for InterpolatorLane0<'d, T>

§

impl<'d, T> Unpin for InterpolatorLane0<'d, T>

§

impl<'d, T> UnsafeUnpin for InterpolatorLane0<'d, T>

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 = !

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.