Struct SAICH

Source
pub struct SAICH<SAI, const C: bool> { /* private fields */ }
Expand description

SAI sub-block.

Methods from Deref<Target = CH>§

Source

pub fn cr1(&self) -> &Reg<CR1rs>

0x00 - AConfiguration register 1

Source

pub fn cr2(&self) -> &Reg<CR2rs>

0x04 - AConfiguration register 2

Source

pub fn frcr(&self) -> &Reg<FRCRrs>

0x08 - AFRCR

Source

pub fn slotr(&self) -> &Reg<SLOTRrs>

0x0c - ASlot register

Source

pub fn im(&self) -> &Reg<IMrs>

0x10 - AInterrupt mask register2

Source

pub fn sr(&self) -> &Reg<SRrs>

0x14 - AStatus register

Source

pub fn clrfr(&self) -> &Reg<CLRFRrs>

0x18 - AClear flag register

Source

pub fn dr(&self) -> &Reg<DRrs>

0x1c - AData register

Trait Implementations§

Source§

impl<SAI, const C: bool> ChannelClocks for SAICH<SAI, C>

Source§

impl<SAI, const C: bool> Deref for SAICH<SAI, C>
where SAI: Instance,

Source§

type Target = CH

The resulting type after dereferencing.
Source§

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

Dereferences the value.
Source§

impl<SAI: Instance, const C: bool> PeriAddress for SAICH<SAI, C>

Source§

type MemSize = u32

Memory size of the peripheral.
Source§

fn address(&self) -> u32

Returns the address to be used by the DMA stream.
Source§

impl DMASet<StreamX<DMA2, 1>, 0, MemoryToPeripheral> for SAICH<SAI, false>

Source§

impl DMASet<StreamX<DMA2, 1>, 0, PeripheralToMemory> for SAICH<SAI, false>

Source§

impl DMASet<StreamX<DMA2, 3>, 0, MemoryToPeripheral> for SAICH<SAI, false>

Source§

impl DMASet<StreamX<DMA2, 3>, 0, PeripheralToMemory> for SAICH<SAI, false>

Source§

impl DMASet<StreamX<DMA2, 4>, 1, MemoryToPeripheral> for SAICH<SAI, true>

Source§

impl DMASet<StreamX<DMA2, 4>, 1, PeripheralToMemory> for SAICH<SAI, true>

Source§

impl DMASet<StreamX<DMA2, 5>, 0, MemoryToPeripheral> for SAICH<SAI, true>

Source§

impl DMASet<StreamX<DMA2, 5>, 0, PeripheralToMemory> for SAICH<SAI, true>

Auto Trait Implementations§

§

impl<SAI, const C: bool> Freeze for SAICH<SAI, C>
where SAI: Freeze,

§

impl<SAI, const C: bool> RefUnwindSafe for SAICH<SAI, C>
where SAI: RefUnwindSafe,

§

impl<SAI, const C: bool> Send for SAICH<SAI, C>
where SAI: Send,

§

impl<SAI, const C: bool> Sync for SAICH<SAI, C>
where SAI: Sync,

§

impl<SAI, const C: bool> Unpin for SAICH<SAI, C>
where SAI: Unpin,

§

impl<SAI, const C: bool> UnwindSafe for SAICH<SAI, C>
where SAI: UnwindSafe,

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<Ch> Channel for Ch
where Ch: Deref<Target = CH> + ChannelClocks,

Source§

fn set_master_tx(&self)

Source§

fn set_master_rx(&self)

Source§

fn set_slave_tx(&self)

Source§

fn set_slave_rx(&self)

Source§

fn is_slave(&self) -> bool

Source§

fn set_clock_gen(&self, sample_freq: Rate<u32, 1, 1>, clocks: &Clocks)

Source§

fn set_protocol(&self, protocol: Protocol, tx: bool)

Source§

fn start(&self)

Source§

fn stop(&self)

Source§

fn fifo_full(&self) -> bool

Source§

fn fifo_empty(&self) -> bool

Source§

fn write(&self, word: u32)

Source§

fn read(&self) -> u32

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.