embassy-nrf

Crates

git

Versions

nrf54lm20-app-s

Flavors

Skip to main content

Vpr

Struct Vpr 

Source
pub struct Vpr<'d> { /* private fields */ }
Expand description

VPR coprocessor driver.

Implementations§

Source§

impl<'d> Vpr<'d>

Source

pub fn new<T: Instance>( _peri: Peri<'d, T>, address: *const u8, ) -> Result<Self, Error>

Initialize the VPR coprocessor program counter.

The address must be an 8-byte aligned in RAM.

Source

pub fn load(&mut self, program: &[u8]) -> Result<(), Error>

Load the provided program into RAM.

Call start() to start the coprocessor.

Source

pub fn init(&mut self, address: *const u8) -> Result<(), Error>

Initialize the coprocessor program counter.

If the coprocessor is already running, this will only take effect on the next reset.

Source

pub fn start(&mut self)

Start the coprocessor.

If the coprocessor is already running, this does nothing.

Source

pub fn stop(&mut self)

Stop the coprocessor.

If the coprocessor is already running, this will only take effect on the next reset.

Auto Trait Implementations§

§

impl<'d> !Send for Vpr<'d>

§

impl<'d> !Sync for Vpr<'d>

§

impl<'d> Freeze for Vpr<'d>

§

impl<'d> RefUnwindSafe for Vpr<'d>

§

impl<'d> Unpin for Vpr<'d>

§

impl<'d> UnsafeUnpin for Vpr<'d>

§

impl<'d> UnwindSafe for Vpr<'d>

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.