Struct mcxn947_pac::SAI0

source ·
pub struct SAI0 { /* private fields */ }
Expand description

SAI

Implementations§

source§

impl SAI0

source

pub const PTR: *const RegisterBlock = {0x40106000 as *const sai0::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 verid(&self) -> &VERID

0x00 - Version ID

source

pub fn param(&self) -> &PARAM

0x04 - Parameter

source

pub fn tcsr(&self) -> &TCSR

0x08 - Transmit Control

source

pub fn tcr1(&self) -> &TCR1

0x0c - Transmit Configuration 1

source

pub fn tcr2(&self) -> &TCR2

0x10 - Transmit Configuration 2

source

pub fn tcr3(&self) -> &TCR3

0x14 - Transmit Configuration 3

source

pub fn tcr4(&self) -> &TCR4

0x18 - Transmit Configuration 4

source

pub fn tcr5(&self) -> &TCR5

0x1c - Transmit Configuration 5

source

pub fn tdr(&self, n: usize) -> &TDR

0x20..0x28 - Transmit Data

source

pub fn tdr_iter(&self) -> impl Iterator<Item = &TDR>

Iterator for array of: 0x20..0x28 - Transmit Data

source

pub fn tfr(&self, n: usize) -> &TFR

0x40..0x48 - Transmit FIFO

source

pub fn tfr_iter(&self) -> impl Iterator<Item = &TFR>

Iterator for array of: 0x40..0x48 - Transmit FIFO

source

pub fn tmr(&self) -> &TMR

0x60 - Transmit Mask

source

pub fn rcsr(&self) -> &RCSR

0x88 - Receive Control

source

pub fn rcr1(&self) -> &RCR1

0x8c - Receive Configuration 1

source

pub fn rcr2(&self) -> &RCR2

0x90 - Receive Configuration 2

source

pub fn rcr3(&self) -> &RCR3

0x94 - Receive Configuration 3

source

pub fn rcr4(&self) -> &RCR4

0x98 - Receive Configuration 4

source

pub fn rcr5(&self) -> &RCR5

0x9c - Receive Configuration 5

source

pub fn rdr(&self, n: usize) -> &RDR

0xa0..0xa8 - Receive Data

source

pub fn rdr_iter(&self) -> impl Iterator<Item = &RDR>

Iterator for array of: 0xa0..0xa8 - Receive Data

source

pub fn rfr(&self, n: usize) -> &RFR

0xc0..0xc8 - Receive FIFO

source

pub fn rfr_iter(&self) -> impl Iterator<Item = &RFR>

Iterator for array of: 0xc0..0xc8 - Receive FIFO

source

pub fn rmr(&self) -> &RMR

0xe0 - Receive Mask

source

pub fn mcr(&self) -> &MCR

0x100 - MCLK Control

Trait Implementations§

source§

impl Debug for SAI0

source§

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

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

impl Deref for SAI0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for SAI0

Auto Trait Implementations§

§

impl RefUnwindSafe for SAI0

§

impl !Sync for SAI0

§

impl Unpin for SAI0

§

impl UnwindSafe for SAI0

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>,

§

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>,

§

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.