pub struct MasterClock { /* private fields */ }Expand description
I2S clock configuration.
Implementations§
Source§impl MasterClock
impl MasterClock
Source§impl MasterClock
impl MasterClock
Sourcepub fn sample_rate(&self) -> u32
pub fn sample_rate(&self) -> u32
Get the sample rate for this clock configuration.
Trait Implementations§
Source§impl Clone for MasterClock
impl Clone for MasterClock
Source§fn clone(&self) -> MasterClock
fn clone(&self) -> MasterClock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MasterClock
Source§impl Debug for MasterClock
impl Debug for MasterClock
impl Eq for MasterClock
Source§impl From<ApproxSampleRate> for MasterClock
impl From<ApproxSampleRate> for MasterClock
Source§fn from(value: ApproxSampleRate) -> Self
fn from(value: ApproxSampleRate) -> Self
Converts to this type from the input type.
Source§impl From<ExactSampleRate> for MasterClock
impl From<ExactSampleRate> for MasterClock
Source§fn from(value: ExactSampleRate) -> Self
fn from(value: ExactSampleRate) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MasterClock
impl PartialEq for MasterClock
impl StructuralPartialEq for MasterClock
Auto Trait Implementations§
impl Freeze for MasterClock
impl RefUnwindSafe for MasterClock
impl Send for MasterClock
impl Sync for MasterClock
impl Unpin for MasterClock
impl UnsafeUnpin for MasterClock
impl UnwindSafe for MasterClock
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