embassy-stm32

Crates

git

Versions

stm32h747xi-cm4

Flavors

Module sai

Source
Expand description

Serial Audio Interface (SAI)

Re-exports§

pub use crate::dma::word;

Structs§

Config
[SAI] configuration.
Sai
SAI sub-block driver.
SubBlock
SAI subblock instance.

Enums§

A
Sub-block A.
B
Sub-block B.
BitOrder
Bit order
ClockStrobe
Clock strobe.
Companding
Companding setting.
ComplementFormat
Complements format for negative samples.
DataSize
Data size.
Error
SAI error
FifoThreshold
FIFO threshold level.
FrameSyncDefinition
Sync definition.
FrameSyncOffset
Frame sync offset.
FrameSyncPolarity
Frame sync polarity
MasterClockDivider
Master clock divider.
Mode
Master/slave mode.
MuteValue
Output value on mute.
OutputDrive
Output drive
Protocol
Protocol variant to use.
SlotSize
Data slot size.
StereoMono
Channels (stereo or mono).
SyncInput
Sync input between SAI units/blocks.
SyncInputInstance
SAI instance to sync from.
TxRx
Direction: transmit or receive

Traits§

Dma
Dma DMA request trait
FsPin
FsPin pin trait
Instance
SAI instance trait.
MclkPin
MclkPin pin trait
SckPin
SckPin pin trait
SdPin
SdPin pin trait
SubBlockInstance
Sub-block instance trait.

Functions§

split_subblocks
Split the main SAIx peripheral into the two subblocks.