pub struct ConfigParams {
pub clk_in_div_2: bool,
pub clk_out_div_2: bool,
pub is_usb: bool,
pub src: u8,
pub bosr: u8,
}Expand description
Describes a specific configuration in terms of MCLK, ADC Sample Rate, and DAC Sample Rate
Fields§
§clk_in_div_2: boolTrue if you want to divive the clock input by 2.
clk_out_div_2: boolTrue if you want to divive the clock output by 2.
is_usb: boolTrue if you have a 12 MHz “USB” clock input, false if you have a different clock crystal
src: u8Sample Rate Control
Take the value from the tables in Datasheet section 3.3.2
bosr: u8Base Oversampling Rate
Take the value from the tables in Datasheet section 3.3.2
Trait Implementations§
Source§impl Clone for ConfigParams
impl Clone for ConfigParams
Source§fn clone(&self) -> ConfigParams
fn clone(&self) -> ConfigParams
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigParams
impl Debug for ConfigParams
Source§impl PartialEq for ConfigParams
impl PartialEq for ConfigParams
impl Copy for ConfigParams
impl Eq for ConfigParams
impl StructuralPartialEq for ConfigParams
Auto Trait Implementations§
impl Freeze for ConfigParams
impl RefUnwindSafe for ConfigParams
impl Send for ConfigParams
impl Sync for ConfigParams
impl Unpin for ConfigParams
impl UnwindSafe for ConfigParams
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