Trait rp2040_hal::sio::Lane

source ·
pub trait Lane: Sealed {
    // Required methods
    fn pop(&mut self) -> u32;
    fn peek(&self) -> u32;
    fn set_accum(&mut self, v: u32);
    fn get_accum(&self) -> u32;
    fn set_base(&mut self, v: u32);
    fn get_base(&self) -> u32;
    fn set_ctrl(&mut self, v: u32);
    fn get_ctrl(&self) -> u32;
    fn add_accum(&mut self, v: u32);
    fn read_raw(&self) -> u32;
}
Expand description

Trait representing the functionality of a single lane of an interpolator.

Required Methods§

source

fn pop(&mut self) -> u32

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

source

fn peek(&self) -> u32

Read the lane result without altering any internal state

source

fn set_accum(&mut self, v: u32)

Write a value to the accumulator

source

fn get_accum(&self) -> u32

Read the value from the accumulator

source

fn set_base(&mut self, v: u32)

Write a value to the base register

source

fn get_base(&self) -> u32

Read the value from the base register

source

fn set_ctrl(&mut self, v: u32)

Write to the control register

source

fn get_ctrl(&self) -> u32

Read from the control register

source

fn add_accum(&mut self, v: u32)

Add the value to the accumulator register

source

fn read_raw(&self) -> u32

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

Implementors§