Powerquad

Struct Powerquad 

Source
pub struct Powerquad { /* private fields */ }
Expand description

LPC-Next0 Digital Signal Co-Processing companion to a Cortex-M v8M CPU core

Implementations§

Source§

impl Powerquad

Source

pub const PTR: *const RegisterBlock = {0x40150000 as *const powerquad::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn outbase(&self) -> &Outbase

0x00 - Base address register for output region

Source

pub fn outformat(&self) -> &Outformat

0x04 - Output format

Source

pub fn tmpbase(&self) -> &Tmpbase

0x08 - Base address register for temp region

Source

pub fn tmpformat(&self) -> &Tmpformat

0x0c - Temp format

Source

pub fn inabase(&self) -> &Inabase

0x10 - Base address register for input A region

Source

pub fn inaformat(&self) -> &Inaformat

0x14 - Input A format

Source

pub fn inbbase(&self) -> &Inbbase

0x18 - Base address register for input B region

Source

pub fn inbformat(&self) -> &Inbformat

0x1c - Input B format

Source

pub fn control(&self) -> &Control

0x100 - PowerQuad Control register

Source

pub fn length(&self) -> &Length

0x104 - Length register

Source

pub fn cppre(&self) -> &Cppre

0x108 - Pre-scale register

Source

pub fn misc(&self) -> &Misc

0x10c - Misc register

Source

pub fn cursory(&self) -> &Cursory

0x110 - Cursory register

Source

pub fn cordic_x(&self) -> &CordicX

0x180 - Cordic input X register

Source

pub fn cordic_y(&self) -> &CordicY

0x184 - Cordic input Y register

Source

pub fn cordic_z(&self) -> &CordicZ

0x188 - Cordic input Z register

Source

pub fn errstat(&self) -> &Errstat

0x18c - Read/Write register where error statuses are captured (sticky)

Source

pub fn intren(&self) -> &Intren

0x190 - INTERRUPT enable register

Source

pub fn eventen(&self) -> &Eventen

0x194 - Event Enable register

Source

pub fn intrstat(&self) -> &Intrstat

0x198 - INTERRUPT STATUS register

Source

pub fn gpreg(&self, n: usize) -> &Gpreg

0x200..0x240 - General purpose register bank N.

Source

pub fn gpreg_iter(&self) -> impl Iterator<Item = &Gpreg>

Iterator for array of: 0x200..0x240 - General purpose register bank N.

Source

pub fn compreg(&self, n: usize) -> &Compreg

0x240..0x260 - Compute register bank

Source

pub fn compreg_iter(&self) -> impl Iterator<Item = &Compreg>

Iterator for array of: 0x240..0x260 - Compute register bank

Trait Implementations§

Source§

impl Debug for Powerquad

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Deref for Powerquad

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for Powerquad

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.