pub struct W(_);
Expand description
Register CFGR1
writer
Implementations
sourceimpl W
impl W
sourcepub fn dmaen(&mut self) -> DMAEN_W<'_, 0>
pub fn dmaen(&mut self) -> DMAEN_W<'_, 0>
Bit 0 - Direct memory access enable This bit is set and cleared by software to enable the generation of DMA requests. This allows the DMA controller to be used to manage automatically the converted data. For more details, refer to . Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn dmacfg(&mut self) -> DMACFG_W<'_, 1>
pub fn dmacfg(&mut self) -> DMACFG_W<'_, 1>
Bit 1 - Direct memory access configuration This bit is set and cleared by software to select between two DMA modes of operation and is effective only when DMAEN = 1. For more details, refer to page 403 Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn scandir(&mut self) -> SCANDIR_W<'_, 2>
pub fn scandir(&mut self) -> SCANDIR_W<'_, 2>
Bit 2 - Scan sequence direction This bit is set and cleared by software to select the direction in which the channels is scanned in the sequence. It is effective only if CHSELMOD bit is cleared to 0. Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing). If CCRDY is not yet asserted after channel configuration (writing ADC_CHSELR register or changing CHSELRMOD or SCANDIR), the value written to this bit is ignored.
sourcepub fn res(&mut self) -> RES_W<'_, 3>
pub fn res(&mut self) -> RES_W<'_, 3>
Bits 3:4 - Data resolution These bits are written by software to select the resolution of the conversion. Note: The software is allowed to write these bits only when ADENÂ =Â 0.
sourcepub fn align(&mut self) -> ALIGN_W<'_, 5>
pub fn align(&mut self) -> ALIGN_W<'_, 5>
Bit 5 - Data alignment This bit is set and cleared by software to select right or left alignment. Refer to Data alignment and resolution (oversampling disabled: OVSE = 0) on page 401 Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn extsel(&mut self) -> EXTSEL_W<'_, 6>
pub fn extsel(&mut self) -> EXTSEL_W<'_, 6>
Bits 6:8 - External trigger selection These bits select the external event used to trigger the start of conversion (refer to External triggers for details): Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn exten(&mut self) -> EXTEN_W<'_, 10>
pub fn exten(&mut self) -> EXTEN_W<'_, 10>
Bits 10:11 - External trigger enable and polarity selection These bits are set and cleared by software to select the external trigger polarity and enable the trigger. Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn ovrmod(&mut self) -> OVRMOD_W<'_, 12>
pub fn ovrmod(&mut self) -> OVRMOD_W<'_, 12>
Bit 12 - Overrun management mode This bit is set and cleared by software and configure the way data overruns are managed. Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn cont(&mut self) -> CONT_W<'_, 13>
pub fn cont(&mut self) -> CONT_W<'_, 13>
Bit 13 - Single / continuous conversion mode This bit is set and cleared by software. If it is set, conversion takes place continuously until it is cleared. Note: It is not possible to have both discontinuous mode and continuous mode enabled: it is forbidden to set both bits DISCENÂ =Â 1 and CONTÂ =Â 1. The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn wait(&mut self) -> WAIT_W<'_, 14>
pub fn wait(&mut self) -> WAIT_W<'_, 14>
Bit 14 - Wait conversion mode This bit is set and cleared by software to enable/disable wait conversion mode.. Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn autoff(&mut self) -> AUTOFF_W<'_, 15>
pub fn autoff(&mut self) -> AUTOFF_W<'_, 15>
Bit 15 - Auto-off mode This bit is set and cleared by software to enable/disable auto-off mode.. Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn discen(&mut self) -> DISCEN_W<'_, 16>
pub fn discen(&mut self) -> DISCEN_W<'_, 16>
Bit 16 - Discontinuous mode This bit is set and cleared by software to enable/disable discontinuous mode. Note: It is not possible to have both discontinuous mode and continuous mode enabled: it is forbidden to set both bits DISCENÂ =Â 1 and CONTÂ =Â 1. The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn chselrmod(&mut self) -> CHSELRMOD_W<'_, 21>
pub fn chselrmod(&mut self) -> CHSELRMOD_W<'_, 21>
Bit 21 - Mode selection of the ADC_CHSELR register This bit is set and cleared by software to control the ADC_CHSELR feature: Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing). If CCRDY is not yet asserted after channel configuration (writing ADC_CHSELR register or changing CHSELRMOD or SCANDIR), the value written to this bit is ignored.
sourcepub fn awd1sgl(&mut self) -> AWD1SGL_W<'_, 22>
pub fn awd1sgl(&mut self) -> AWD1SGL_W<'_, 22>
Bit 22 - Enable the watchdog on a single channel or on all channels This bit is set and cleared by software to enable the analog watchdog on the channel identified by the AWDCH[4:0] bits or on all the channels Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn awd1en(&mut self) -> AWD1EN_W<'_, 23>
pub fn awd1en(&mut self) -> AWD1EN_W<'_, 23>
Bit 23 - Analog watchdog enable This bit is set and cleared by software. Note: The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
sourcepub fn awd1ch(&mut self) -> AWD1CH_W<'_, 26>
pub fn awd1ch(&mut self) -> AWD1CH_W<'_, 26>
Bits 26:30 - Analog watchdog channel selection These bits are set and cleared by software. They select the input channel to be guarded by the analog watchdog. ….. Others: Reserved Note: The channel selected by the AWDCH[4:0] bits must be also set into the CHSELR register. The software is allowed to write this bit only when ADSTART bit is cleared to 0 (this ensures that no conversion is ongoing).
Methods from Deref<Target = W<CFGR1_SPEC>>
Trait Implementations
sourceimpl From<W<CFGR1_SPEC>> for W
impl From<W<CFGR1_SPEC>> for W
sourcefn from(writer: W<CFGR1_SPEC>) -> Self
fn from(writer: W<CFGR1_SPEC>) -> Self
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more