pub struct Tdm { /* private fields */ }Expand description
Time division multiplexed audio interface 0
Implementations§
Source§impl Tdm
impl Tdm
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 TDM transfer. Also starts MCK when this is enabled
Sourcepub const fn tasks_stop(self) -> Reg<u32, W>
pub const fn tasks_stop(self) -> Reg<u32, W>
Stops TDM transfer after the completion of MAXCNT bytes. Triggering this task will cause the STOPPED event to be generated.
Sourcepub const fn tasks_abort(self) -> Reg<u32, W>
pub const fn tasks_abort(self) -> Reg<u32, W>
Abort TDM transfer without completing MAXCNT bytes. Triggering this task will cause the ABORTED event 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 subscribe_abort(self) -> Reg<Subscribe, RW>
pub const fn subscribe_abort(self) -> Reg<Subscribe, RW>
Subscribe configuration for task ABORT
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 TDM is started and RX is enabled, this event will be generated for every RXTXD.MAXCNT bytes received on the SDIN pin.
Sourcepub const fn events_stopped(self) -> Reg<u32, RW>
pub const fn events_stopped(self) -> Reg<u32, RW>
Transfer stopped.
Sourcepub const fn events_aborted(self) -> Reg<u32, RW>
pub const fn events_aborted(self) -> Reg<u32, RW>
Transfer aborted.
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 TDM is started and TX is enabled, this event will be generated for every RXTXD.MAXCNT bytes that are sent on the SDOUT pin.
Sourcepub const fn events_maxcnt(self) -> Reg<u32, RW>
pub const fn events_maxcnt(self) -> Reg<u32, RW>
Generated on the active edge of FSYNC, after both RX and TX DMA transfers have completed. An initial MAXCNT event is also triggered on the first active edge of FSYNC after the START task is issued.
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_aborted(self) -> Reg<Publish, RW>
pub const fn publish_aborted(self) -> Reg<Publish, RW>
Publish configuration for event ABORTED
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_maxcnt(self) -> Reg<Publish, RW>
pub const fn publish_maxcnt(self) -> Reg<Publish, RW>
Publish configuration for event MAXCNT
Trait Implementations§
impl Copy for Tdm
impl Eq for Tdm
impl Send for Tdm
impl StructuralPartialEq for Tdm
impl Sync for Tdm
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)