pub struct SaiConfig {Show 18 fields
pub mclk_source: MclkSource,
pub tx_fifo_wm: u32,
pub tx_stop_en: bool,
pub tx_debug_en: bool,
pub tx_bclk_div: u32,
pub rx_fifo_wm: u32,
pub rx_stop_en: bool,
pub rx_debug_en: bool,
pub rx_bclk_div: u32,
pub byte_order: ByteOrder,
pub mode: Mode,
pub sync_width: SyncWidth,
pub sync_early: bool,
pub sync_polarity: ClockPolarity,
pub sync_mode: SyncMode,
pub bclk_src_swap: bool,
pub bclk_input_delay: bool,
pub bclk_polarity: ClockPolarity,
}Expand description
Configuration for SAI peripheral
Fields§
§mclk_source: MclkSourceMCLK source
tx_fifo_wm: u32TX fifo watermark
tx_stop_en: boolTX stop enable
tx_debug_en: boolTX debug enable
tx_bclk_div: u32TX BCLK divider
rx_fifo_wm: u32RX FIFO watermark
rx_stop_en: boolRX stop enable
rx_debug_en: boolRX debug enable
rx_bclk_div: u32RX BCLK divider
byte_order: ByteOrderByte order
mode: ModeMode
sync_width: SyncWidthSync width
sync_early: boolSync early
sync_polarity: ClockPolaritySync polarity
sync_mode: SyncModeSync mode
bclk_src_swap: boolBCLK source swap
bclk_input_delay: boolBCLK input delay
bclk_polarity: ClockPolarityBCLK polarity
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SaiConfig
impl RefUnwindSafe for SaiConfig
impl Send for SaiConfig
impl Sync for SaiConfig
impl Unpin for SaiConfig
impl UnwindSafe for SaiConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more