pub enum Ratio {
_32x,
_48x,
_64x,
_96x,
_128x,
_192x,
_256x,
_384x,
_512x,
}Expand description
Master clock frequency ratio
Sample Rate = LRCK = MCK / Ratio
Variants§
_32x
Divide by 32
_48x
Divide by 48
_64x
Divide by 64
_96x
Divide by 96
_128x
Divide by 128
_192x
Divide by 192
_256x
Divide by 256
_384x
Divide by 384
_512x
Divide by 512
Implementations§
Source§impl Ratio
impl Ratio
Sourcepub fn to_register_value(&self) -> Ratio
pub fn to_register_value(&self) -> Ratio
Return the value that needs to be written to the register.
Sourcepub fn to_divisor(&self) -> u32
pub fn to_divisor(&self) -> u32
Return the divisor for this ratio
Trait Implementations§
impl Copy for Ratio
impl Eq for Ratio
impl StructuralPartialEq for Ratio
Auto Trait Implementations§
impl Freeze for Ratio
impl RefUnwindSafe for Ratio
impl Send for Ratio
impl Sync for Ratio
impl Unpin for Ratio
impl UnsafeUnpin for Ratio
impl UnwindSafe for Ratio
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