nxp-pac

Crates

git

Versions

lpc55s69_cm33_core1

Flavors

Casper

Struct Casper 

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

CASPER

Implementations§

Source§

impl Casper

Source

pub const unsafe fn from_ptr(ptr: *mut ()) -> Self

Source

pub const fn as_ptr(&self) -> *mut ()

Source

pub const fn ctrl0(self) -> Reg<Ctrl0, RW>

Contains the offsets of AB and CD in the RAM.

Source

pub const fn ctrl1(self) -> Reg<Ctrl1, RW>

Contains the opcode mode, iteration count, and result offset (in RAM) and also launches the accelerator. Note: with CP version: CTRL0 and CRTL1 can be written in one go with MCRR.

Source

pub const fn loader(self) -> Reg<Loader, RW>

Contains an optional loader to load into CTRL0/1 in steps to perform a set of operations.

Source

pub const fn status(self) -> Reg<Status, RW>

Indicates operational status and would contain the carry bit if used.

Source

pub const fn intenset(self) -> Reg<Intenset, RW>

Sets interrupts

Source

pub const fn intenclr(self) -> Reg<Intenclr, RW>

Clears interrupts

Source

pub const fn intstat(self) -> Reg<Intstat, RW>

Interrupt status bits (mask of INTENSET and STATUS)

Source

pub const fn areg(self) -> Reg<Areg, RW>

A register

Source

pub const fn breg(self) -> Reg<Breg, RW>

B register

Source

pub const fn creg(self) -> Reg<Creg, RW>

C register

Source

pub const fn dreg(self) -> Reg<Dreg, RW>

D register

Source

pub const fn res0(self) -> Reg<Res0, RW>

Result register 0

Source

pub const fn res1(self) -> Reg<Res1, RW>

Result register 1

Source

pub const fn res2(self) -> Reg<Res2, RW>

Result register 2

Source

pub const fn res3(self) -> Reg<Res3, RW>

Result register 3

Source

pub const fn mask(self) -> Reg<Mask, RW>

Optional mask register

Source

pub const fn remask(self) -> Reg<Remask, RW>

Optional re-mask register

Source

pub const fn lock(self) -> Reg<Lock, RW>

Security lock register

Trait Implementations§

Source§

impl Clone for Casper

Source§

fn clone(&self) -> Casper

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl PartialEq for Casper

Source§

fn eq(&self, other: &Casper) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for Casper

Source§

impl Eq for Casper

Source§

impl Send for Casper

Source§

impl StructuralPartialEq for Casper

Source§

impl Sync for Casper

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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.