pub struct I2sMclkConfig { /* private fields */ }Available on crate feature
unstable only.Expand description
Configures the I2S0_MCLK clock node.
The output is calculated as OUTPUT = (sclk * div_a) / (div_num * div_a + div_b).
Implementations§
Source§impl I2sMclkConfig
impl I2sMclkConfig
Sourcepub const fn new(
sclk: I2sMclkSclk,
div_num: u32,
div_a: u32,
div_b: u32,
) -> Self
pub const fn new( sclk: I2sMclkSclk, div_num: u32, div_a: u32, div_b: u32, ) -> Self
Creates a new configuration for the MCLK clock node.
§Panics
Panics if the div_num value is outside the valid range (1 ..= 255).
Panics if the div_a value is outside the valid range (1 ..= 63).
Panics if the div_b value is outside the valid range (0 ..= 63).
pub fn sclk(self) -> I2sMclkSclk
pub fn div_num(self) -> u32
pub fn div_a(self) -> u32
pub fn div_b(self) -> u32
Trait Implementations§
Source§impl Clone for I2sMclkConfig
impl Clone for I2sMclkConfig
Source§fn clone(&self) -> I2sMclkConfig
fn clone(&self) -> I2sMclkConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for I2sMclkConfig
Source§impl Debug for I2sMclkConfig
impl Debug for I2sMclkConfig
impl Eq for I2sMclkConfig
Source§impl Hash for I2sMclkConfig
impl Hash for I2sMclkConfig
Source§impl PartialEq for I2sMclkConfig
impl PartialEq for I2sMclkConfig
impl StructuralPartialEq for I2sMclkConfig
Auto Trait Implementations§
impl Freeze for I2sMclkConfig
impl RefUnwindSafe for I2sMclkConfig
impl Send for I2sMclkConfig
impl Sync for I2sMclkConfig
impl Unpin for I2sMclkConfig
impl UnsafeUnpin for I2sMclkConfig
impl UnwindSafe for I2sMclkConfig
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)