stm32-metapac

Crates

git

Versions

stm32h725ie

Flavors

Skip to main content

Cfgr1

Struct Cfgr1 

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

DFSDM channel y configuration register.

Tuple Fields§

§0: u32

Implementations§

§

impl Cfgr1

pub const fn sitp(&self) -> Sitp

Serial interface type for channel y. This value can only be modified when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn set_sitp(&mut self, val: Sitp)

Serial interface type for channel y. This value can only be modified when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn spicksel(&self) -> Spicksel

SPI clock select for channel y. This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn set_spicksel(&mut self, val: Spicksel)

SPI clock select for channel y. This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn scden(&self) -> bool

Short-circuit detector enable on channel y.

pub const fn set_scden(&mut self, val: bool)

Short-circuit detector enable on channel y.

pub const fn ckaben(&self) -> bool

Clock absence detector enable on channel y.

pub const fn set_ckaben(&mut self, val: bool)

Clock absence detector enable on channel y.

pub const fn chen(&self) -> bool

Channel y enable If channel y is enabled, then serial data receiving is started according to the given channel setting.

pub const fn set_chen(&mut self, val: bool)

Channel y enable If channel y is enabled, then serial data receiving is started according to the given channel setting.

pub const fn chinsel(&self) -> bool

Channel inputs selection This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn set_chinsel(&mut self, val: bool)

Channel inputs selection This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn datmpx(&self) -> Datmpx

Input data multiplexer for channel y. This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn set_datmpx(&mut self, val: Datmpx)

Input data multiplexer for channel y. This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn datpack(&self) -> Datpack

Data packing mode in DFSDM_CHyDATINR register. This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn set_datpack(&mut self, val: Datpack)

Data packing mode in DFSDM_CHyDATINR register. This value can be modified only when CHEN=0 (in DFSDM_CHyCFGR1 register).

pub const fn ckoutdiv(&self) -> u8

Output serial clock divider. 0: Output clock generation is disabled (CKOUT signal is set to low state). 1-255: Divider = CKOUTDIV+1 (2-256) for the serial clock output CKOUT. CKOUTDIV also defines the threshold for a clock absence detection. This value can only be modified when DFSDMEN=0 (in DFSDM_CH0CFGR1 register). Note: CKOUTDIV is present only in DFSDM_CH0CFGR1 register (channel y=0).

pub const fn set_ckoutdiv(&mut self, val: u8)

Output serial clock divider. 0: Output clock generation is disabled (CKOUT signal is set to low state). 1-255: Divider = CKOUTDIV+1 (2-256) for the serial clock output CKOUT. CKOUTDIV also defines the threshold for a clock absence detection. This value can only be modified when DFSDMEN=0 (in DFSDM_CH0CFGR1 register). Note: CKOUTDIV is present only in DFSDM_CH0CFGR1 register (channel y=0).

pub const fn ckoutsrc(&self) -> bool

Output serial clock source selection This value can be modified only when DFSDMEN=0 (in DFSDM_CH0CFGR1 register). Note: CKOUTSRC is present only in DFSDM_CH0CFGR1 register (channel y=0).

pub const fn set_ckoutsrc(&mut self, val: bool)

Output serial clock source selection This value can be modified only when DFSDMEN=0 (in DFSDM_CH0CFGR1 register). Note: CKOUTSRC is present only in DFSDM_CH0CFGR1 register (channel y=0).

pub const fn dfsdmen(&self) -> bool

Global enable for DFSDM interface If DFSDM interface is enabled, then it is started to operate according to enabled y channels and enabled x filters settings (CHEN bit in DFSDM_CHyCFGR1 and DFEN bit in DFSDM_FLTxCR1). Data cleared by setting DFSDMEN=0: all registers DFSDM_FLTxISR are set to reset state (x = 0..7) all registers DFSDM_FLTxAWSR are set to reset state (x = 0..7) Note: DFSDMEN is present only in DFSDM_CH0CFGR1 register (channel y=0).

pub const fn set_dfsdmen(&mut self, val: bool)

Global enable for DFSDM interface If DFSDM interface is enabled, then it is started to operate according to enabled y channels and enabled x filters settings (CHEN bit in DFSDM_CHyCFGR1 and DFEN bit in DFSDM_FLTxCR1). Data cleared by setting DFSDMEN=0: all registers DFSDM_FLTxISR are set to reset state (x = 0..7) all registers DFSDM_FLTxAWSR are set to reset state (x = 0..7) Note: DFSDMEN is present only in DFSDM_CH0CFGR1 register (channel y=0).

Trait Implementations§

§

impl Clone for Cfgr1

§

fn clone(&self) -> Cfgr1

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
§

impl Copy for Cfgr1

§

impl Default for Cfgr1

§

fn default() -> Cfgr1

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

impl Eq for Cfgr1

§

impl PartialEq for Cfgr1

§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
§

impl StructuralPartialEq for Cfgr1

Auto Trait Implementations§

§

impl Freeze for Cfgr1

§

impl RefUnwindSafe for Cfgr1

§

impl Send for Cfgr1

§

impl Sync for Cfgr1

§

impl Unpin for Cfgr1

§

impl UnsafeUnpin for Cfgr1

§

impl UnwindSafe for Cfgr1

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 = !

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.