pub struct I2sClkConfig { /* private fields */ }Available on crate feature
unstable only.Expand description
Configures the I2S0_TX_CLK clock node.
The output is calculated as OUTPUT = (sclk * div_a) / (div_num * div_a + div_b).
Implementations§
Source§impl I2sClkConfig
impl I2sClkConfig
Sourcepub const fn new(sclk: I2sClkSclk, div_num: u32, div_a: u32, div_b: u32) -> Self
pub const fn new(sclk: I2sClkSclk, div_num: u32, div_a: u32, div_b: u32) -> Self
Creates a new configuration for the TX_CLK 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 ..= 511).
Panics if the div_b value is outside the valid range (0 ..= 511).
pub fn sclk(self) -> I2sClkSclk
pub fn div_num(self) -> u32
pub fn div_a(self) -> u32
pub fn div_b(self) -> u32
Trait Implementations§
Source§impl Clone for I2sClkConfig
impl Clone for I2sClkConfig
Source§fn clone(&self) -> I2sClkConfig
fn clone(&self) -> I2sClkConfig
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 I2sClkConfig
Source§impl Debug for I2sClkConfig
impl Debug for I2sClkConfig
impl Eq for I2sClkConfig
Source§impl Hash for I2sClkConfig
impl Hash for I2sClkConfig
Source§impl PartialEq for I2sClkConfig
impl PartialEq for I2sClkConfig
impl StructuralPartialEq for I2sClkConfig
Auto Trait Implementations§
impl Freeze for I2sClkConfig
impl RefUnwindSafe for I2sClkConfig
impl Send for I2sClkConfig
impl Sync for I2sClkConfig
impl Unpin for I2sClkConfig
impl UnsafeUnpin for I2sClkConfig
impl UnwindSafe for I2sClkConfig
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)