Struct stm32_metapac::adf::regs::Dfltcicr
#[repr(transparent)]pub struct Dfltcicr(pub u32);
Expand description
ADF digital filer configuration register 0.
Tuple Fields§
§0: u32
Implementations§
§impl Dfltcicr
impl Dfltcicr
pub fn set_datsrc(&mut self, val: Datsrc)
pub fn set_datsrc(&mut self, val: Datsrc)
Source data for the digital filter.
pub fn set_cicmod(&mut self, val: Cicmod)
pub fn set_cicmod(&mut self, val: Cicmod)
Select the CIC order.
pub const fn mcicd(&self) -> u16
pub const fn mcicd(&self) -> u16
CIC decimation ratio selection. This bitfield is set and cleared by software.It is used to select the CIC decimation ratio. A decimation ratio smaller than two is not allowed. The decimation ratio is given by (CICDEC+1).
pub fn set_mcicd(&mut self, val: u16)
pub fn set_mcicd(&mut self, val: u16)
CIC decimation ratio selection. This bitfield is set and cleared by software.It is used to select the CIC decimation ratio. A decimation ratio smaller than two is not allowed. The decimation ratio is given by (CICDEC+1).
pub const fn scale(&self) -> u8
pub const fn scale(&self) -> u8
Scaling factor selection. This bitfield is set and cleared by software. It is used to select the gain to be applied at CIC output. If the application attempts to write a new gain value while the previous one is not yet applied, this new gain value is ignored. Reading back this bitfield informs the application on the current gain value.
pub fn set_scale(&mut self, val: u8)
pub fn set_scale(&mut self, val: u8)
Scaling factor selection. This bitfield is set and cleared by software. It is used to select the gain to be applied at CIC output. If the application attempts to write a new gain value while the previous one is not yet applied, this new gain value is ignored. Reading back this bitfield informs the application on the current gain value.
Trait Implementations§
impl Copy for Dfltcicr
impl Eq for Dfltcicr
impl StructuralPartialEq for Dfltcicr
Auto Trait Implementations§
impl Freeze for Dfltcicr
impl RefUnwindSafe for Dfltcicr
impl Send for Dfltcicr
impl Sync for Dfltcicr
impl Unpin for Dfltcicr
impl UnwindSafe for Dfltcicr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)