imxrt_ral::lpspi

Type Alias Instance

Source
pub type Instance<const N: u8> = Instance<RegisterBlock, N>;

Aliased Type§

struct Instance<const N: u8> { /* private fields */ }

Implementations

Source§

impl Instance<RegisterBlock, 1>

Source

pub const unsafe fn instance() -> Self

Acquire a vaild, but possibly aliased, instance.

§Safety

See the struct-level safety documentation.

Source§

impl Instance<RegisterBlock, 2>

Source

pub const unsafe fn instance() -> Self

Acquire a vaild, but possibly aliased, instance.

§Safety

See the struct-level safety documentation.

Source§

impl Instance<RegisterBlock, 3>

Source

pub const unsafe fn instance() -> Self

Acquire a vaild, but possibly aliased, instance.

§Safety

See the struct-level safety documentation.

Source§

impl Instance<RegisterBlock, 4>

Source

pub const unsafe fn instance() -> Self

Acquire a vaild, but possibly aliased, instance.

§Safety

See the struct-level safety documentation.

Source§

impl<T, const N: u8> Instance<T, N>

Source

pub const unsafe fn new(ptr: *const T) -> Self

Create an arbitrary Instance from a pointer to T.

§Safety

See the struct docs for the safety contract.

Trait Implementations

Source§

impl<T, const N: u8> Deref for Instance<T, N>

Source§

type Target = T

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl<T, const N: u8> Send for Instance<T, N>