Struct SAI3

pub struct SAI3 { /* private fields */ }
Expand description

SAI

Implementations§

§

impl SAI3

pub const PTR: *const RegisterBlock = {0x40016000 as *const stm32h7xx_hal::stm32::sai4::RegisterBlock}

Pointer to the register block

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

pub fn cha(&self) -> &CH

0x04..0x24 - Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR

pub fn chb(&self) -> &CH

0x24..0x44 - Cluster CH%s, containing ?CR1, ?CR2, ?FRCR, ?SLOTR, ?IM, ?SR, ?CLRFR, ?DR

Trait Implementations§

§

impl Debug for SAI3

§

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

Formats the value using the given formatter. Read more
§

impl Deref for SAI3

§

type Target = RegisterBlock

The resulting type after dereferencing.
§

fn deref(&self) -> &<SAI3 as Deref>::Target

Dereferences the value.
§

impl GetClkSAI for SAI3

§

fn sai_a_ker_ck( prec: &<SAI3 as GetClkSAI>::Rec, clocks: &CoreClocks, ) -> Rate<u32, 1, 1>

Current kernel clock - A

§

fn sai_b_ker_ck( prec: &<SAI3 as GetClkSAI>::Rec, clocks: &CoreClocks, ) -> Rate<u32, 1, 1>

Current kernel clock - B

§

type Rec = Sai3

§

impl TargetAddress<MemoryToPeripheral> for SAI3

§

const REQUEST_LINE: Option<u8>

An optional associated request line
§

type MemSize = u32

Memory size of the target address
§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target
§

impl TargetAddress<PeripheralToMemory> for SAI3

§

const REQUEST_LINE: Option<u8>

An optional associated request line
§

type MemSize = u32

Memory size of the target address
§

fn address(&self) -> usize

The address to be used by the DMA stream
§

const TRBUFF: bool = false

Mark that the TRBUFF bit must be set for this target
§

impl SaiDmaExt<SAI3> for SAI3

§

fn dma_ch_a(self) -> ChannelA<SAI3>

§

fn dma_ch_b(self) -> ChannelB<SAI3>

§

impl SaiI2sExt<SAI3> for SAI3

§

type Rec = Sai3

§

fn i2s_ch_a<PINS>( self, _pins: PINS, audio_freq: Rate<u32, 1, 1>, data_size: I2SDataSize, prec: Sai3, clocks: &CoreClocks, users: I2S, ) -> Sai<SAI3, I2S>
where PINS: I2SPinsChA<SAI3>,

§

fn i2s_ch_b<PINS>( self, _pins: PINS, audio_freq: Rate<u32, 1, 1>, data_size: I2SDataSize, prec: Sai3, clocks: &CoreClocks, users: I2S, ) -> Sai<SAI3, I2S>
where PINS: I2SPinsChB<SAI3>,

§

impl Send for SAI3

Auto Trait Implementations§

§

impl Freeze for SAI3

§

impl RefUnwindSafe for SAI3

§

impl !Sync for SAI3

§

impl Unpin for SAI3

§

impl UnwindSafe for SAI3

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.