pub struct I2s { /* private fields */ }
Expand description
Inter-IC Sound 0
Implementations§
Source§impl I2s
impl I2s
pub const unsafe fn from_ptr(ptr: *mut ()) -> Self
pub const fn as_ptr(&self) -> *mut ()
Sourcepub const fn tasks_start(self) -> Reg<u32, W>
pub const fn tasks_start(self) -> Reg<u32, W>
Starts continuous I2S transfer. Also starts MCK generator when this is enabled
Sourcepub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Stops I2S transfer and MCK generator. Triggering this task will cause the event STOPPED to be generated.
Sourcepub const fn subscribe_start(self) -> Reg<Subscribe, RW>
pub const fn subscribe_start(self) -> Reg<Subscribe, RW>
Subscribe configuration for task START
Sourcepub const fn subscribe_stop(self) -> Reg<Subscribe, RW>
pub const fn subscribe_stop(self) -> Reg<Subscribe, RW>
Subscribe configuration for task STOP
Sourcepub const fn events_rxptrupd(self) -> Reg<u32, RW>
pub const fn events_rxptrupd(self) -> Reg<u32, RW>
The RXD.PTR register has been copied to internal double-buffers. When the I2S module is started and RX is enabled, this event will be generated for every RXTXD.MAXCNT words received on the SDIN pin.
Sourcepub const fn events_stopped(self) -> Reg<u32, RW>
pub const fn events_stopped(self) -> Reg<u32, RW>
I2S transfer stopped.
Sourcepub const fn events_txptrupd(self) -> Reg<u32, RW>
pub const fn events_txptrupd(self) -> Reg<u32, RW>
The TDX.PTR register has been copied to internal double-buffers. When the I2S module is started and TX is enabled, this event will be generated for every RXTXD.MAXCNT words that are sent on the SDOUT pin.
Sourcepub const fn events_framestart(self) -> Reg<u32, RW>
pub const fn events_framestart(self) -> Reg<u32, RW>
Frame start event, generated on the active edge of LRCK
Sourcepub const fn publish_rxptrupd(self) -> Reg<Publish, RW>
pub const fn publish_rxptrupd(self) -> Reg<Publish, RW>
Publish configuration for event RXPTRUPD
Sourcepub const fn publish_stopped(self) -> Reg<Publish, RW>
pub const fn publish_stopped(self) -> Reg<Publish, RW>
Publish configuration for event STOPPED
Sourcepub const fn publish_txptrupd(self) -> Reg<Publish, RW>
pub const fn publish_txptrupd(self) -> Reg<Publish, RW>
Publish configuration for event TXPTRUPD
Sourcepub const fn publish_framestart(self) -> Reg<Publish, RW>
pub const fn publish_framestart(self) -> Reg<Publish, RW>
Publish configuration for event FRAMESTART
Trait Implementations§
impl Copy for I2s
impl Eq for I2s
impl Send for I2s
impl StructuralPartialEq for I2s
impl Sync for I2s
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)