#[repr(transparent)]pub struct Scr(pub u32);Expand description
SPDIF Configuration Register
Tuple Fields§
§0: u32Implementations§
Source§impl Scr
impl Scr
Sourcepub const fn set_usrc_sel(&mut self, val: UsrcSel)
pub const fn set_usrc_sel(&mut self, val: UsrcSel)
USrc_Sel
Sourcepub const fn set_tx_sel(&mut self, val: TxSel)
pub const fn set_tx_sel(&mut self, val: TxSel)
TxSel
Sourcepub const fn set_val_ctrl(&mut self, val: ValCtrl)
pub const fn set_val_ctrl(&mut self, val: ValCtrl)
ValCtrl
Sourcepub const fn input_src_sel(&self) -> InputSrcSel
pub const fn input_src_sel(&self) -> InputSrcSel
InputSrcSel
Sourcepub const fn set_input_src_sel(&mut self, val: InputSrcSel)
pub const fn set_input_src_sel(&mut self, val: InputSrcSel)
InputSrcSel
Sourcepub const fn set_dma_tx_en(&mut self, val: bool)
pub const fn set_dma_tx_en(&mut self, val: bool)
DMA_TX_En
Sourcepub const fn set_dma_rx_en(&mut self, val: bool)
pub const fn set_dma_rx_en(&mut self, val: bool)
DMA_Rx_En
Sourcepub const fn tx_fifo_ctrl(&self) -> TxFifoCtrl
pub const fn tx_fifo_ctrl(&self) -> TxFifoCtrl
TxFIFO_Ctrl
Sourcepub const fn set_tx_fifo_ctrl(&mut self, val: TxFifoCtrl)
pub const fn set_tx_fifo_ctrl(&mut self, val: TxFifoCtrl)
TxFIFO_Ctrl
Sourcepub const fn soft_reset(&self) -> bool
pub const fn soft_reset(&self) -> bool
soft_reset
Sourcepub const fn set_soft_reset(&mut self, val: bool)
pub const fn set_soft_reset(&mut self, val: bool)
soft_reset
Sourcepub const fn set_low_power(&mut self, val: bool)
pub const fn set_low_power(&mut self, val: bool)
LOW_POWER
Sourcepub const fn tx_fifoempty_sel(&self) -> TxFifoemptySel
pub const fn tx_fifoempty_sel(&self) -> TxFifoemptySel
TxFIFOEmpty_Sel
Sourcepub const fn set_tx_fifoempty_sel(&mut self, val: TxFifoemptySel)
pub const fn set_tx_fifoempty_sel(&mut self, val: TxFifoemptySel)
TxFIFOEmpty_Sel
Sourcepub const fn tx_auto_sync(&self) -> bool
pub const fn tx_auto_sync(&self) -> bool
TxAutoSync
Sourcepub const fn set_tx_auto_sync(&mut self, val: bool)
pub const fn set_tx_auto_sync(&mut self, val: bool)
TxAutoSync
Sourcepub const fn rx_auto_sync(&self) -> bool
pub const fn rx_auto_sync(&self) -> bool
RxAutoSync
Sourcepub const fn set_rx_auto_sync(&mut self, val: bool)
pub const fn set_rx_auto_sync(&mut self, val: bool)
RxAutoSync
Sourcepub const fn rx_fifofull_sel(&self) -> RxFifofullSel
pub const fn rx_fifofull_sel(&self) -> RxFifofullSel
RxFIFOFull_Sel
Sourcepub const fn set_rx_fifofull_sel(&mut self, val: RxFifofullSel)
pub const fn set_rx_fifofull_sel(&mut self, val: RxFifofullSel)
RxFIFOFull_Sel
Sourcepub const fn rx_fifo_rst(&self) -> RxFifoRst
pub const fn rx_fifo_rst(&self) -> RxFifoRst
RxFIFO_Rst
Sourcepub const fn set_rx_fifo_rst(&mut self, val: RxFifoRst)
pub const fn set_rx_fifo_rst(&mut self, val: RxFifoRst)
RxFIFO_Rst
Sourcepub const fn rx_fifo_off_on(&self) -> RxFifoOffOn
pub const fn rx_fifo_off_on(&self) -> RxFifoOffOn
RxFIFO_Off_On
Sourcepub const fn set_rx_fifo_off_on(&mut self, val: RxFifoOffOn)
pub const fn set_rx_fifo_off_on(&mut self, val: RxFifoOffOn)
RxFIFO_Off_On
Sourcepub const fn rx_fifo_ctrl(&self) -> RxFifoCtrl
pub const fn rx_fifo_ctrl(&self) -> RxFifoCtrl
RxFIFO_Ctrl
Sourcepub const fn set_rx_fifo_ctrl(&mut self, val: RxFifoCtrl)
pub const fn set_rx_fifo_ctrl(&mut self, val: RxFifoCtrl)
RxFIFO_Ctrl
Trait Implementations§
impl Copy for Scr
impl Eq for Scr
impl StructuralPartialEq for Scr
Auto Trait Implementations§
impl Freeze for Scr
impl RefUnwindSafe for Scr
impl Send for Scr
impl Sync for Scr
impl Unpin for Scr
impl UnwindSafe for Scr
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