Struct Cfgr1
#[repr(transparent)]pub struct Cfgr1(pub u32);Expand description
DFSDM channel y configuration register.
Tuple Fields§
§0: u32Implementations§
§impl Cfgr1
impl Cfgr1
pub const fn sitp(&self) -> Sitp
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)
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
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)
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 set_ckaben(&mut self, val: bool)
pub const fn set_ckaben(&mut self, val: bool)
Clock absence detector enable on channel y.
pub const fn chen(&self) -> bool
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)
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
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)
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
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)
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
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)
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
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)
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
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)
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
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)
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).