stm32-metapac

Crates

git

Versions

stm32wb06cc

Flavors

DfConf

Struct DfConf 

#[repr(transparent)]
pub struct DfConf(pub u32);
Expand description

Decimation filter configuration register.

Tuple Fields§

§0: u32

Implementations§

§

impl DfConf

pub const fn df_cic_dec_factor(&self) -> u8

pub fn set_df_cic_dec_factor(&mut self, val: u8)

pub const fn df_cic_dhf(&self) -> bool

CIC filter decimator half factor.

pub fn set_df_cic_dhf(&mut self, val: bool)

CIC filter decimator half factor.

pub const fn df_itp1p2(&self) -> bool

1.2 fractional interpolator enable.

pub fn set_df_itp1p2(&mut self, val: bool)

1.2 fractional interpolator enable.

pub const fn df_i_u2s(&self) -> bool

select signed/unsigned format for input.

pub fn set_df_i_u2s(&mut self, val: bool)

select signed/unsigned format for input.

pub const fn df_o_s2u(&self) -> bool

select signed/unsigned format for data output.

pub fn set_df_o_s2u(&mut self, val: bool)

select signed/unsigned format for data output.

pub const fn pdm_rate(&self) -> u8

select the PDM clock rate.

pub fn set_pdm_rate(&mut self, val: u8)

select the PDM clock rate.

pub const fn df_microl_rn(&self) -> bool

left/right channel selection on digital microphone.

pub fn set_df_microl_rn(&mut self, val: bool)

left/right channel selection on digital microphone.

pub const fn df_hpf_en(&self) -> bool

high pass filter enable.

pub fn set_df_hpf_en(&mut self, val: bool)

high pass filter enable.

pub const fn df_half_d_en(&self) -> bool

half dynamic enable.

pub fn set_df_half_d_en(&mut self, val: bool)

half dynamic enable.

Trait Implementations§

§

impl Clone for DfConf

§

fn clone(&self) -> DfConf

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for DfConf

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl Default for DfConf

§

fn default() -> DfConf

Returns the “default value” for a type. Read more
§

impl PartialEq for DfConf

§

fn eq(&self, other: &DfConf) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Copy for DfConf

§

impl Eq for DfConf

§

impl StructuralPartialEq for DfConf

Auto Trait Implementations§

§

impl Freeze for DfConf

§

impl RefUnwindSafe for DfConf

§

impl Send for DfConf

§

impl Sync for DfConf

§

impl Unpin for DfConf

§

impl UnwindSafe for DfConf

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.