Struct esp32c3_hal::pac::apb_saradc::ctrl2::R
pub struct R(_);
Expand description
Register CTRL2
reader
Implementations
impl R
impl R
pub fn saradc_meas_num_limit(&self) -> BitReaderRaw<bool>
pub fn saradc_meas_num_limit(&self) -> BitReaderRaw<bool>
Bit 0 - enable max meas num
pub fn saradc_max_meas_num(&self) -> FieldReaderRaw<u8, u8>
pub fn saradc_max_meas_num(&self) -> FieldReaderRaw<u8, u8>
Bits 1:8 - max conversion number
pub fn saradc_sar1_inv(&self) -> BitReaderRaw<bool>
pub fn saradc_sar1_inv(&self) -> BitReaderRaw<bool>
Bit 9 - 1: data to DIG ADC1 CTRL is inverted, otherwise not
pub fn saradc_sar2_inv(&self) -> BitReaderRaw<bool>
pub fn saradc_sar2_inv(&self) -> BitReaderRaw<bool>
Bit 10 - 1: data to DIG ADC2 CTRL is inverted, otherwise not
pub fn saradc_timer_target(&self) -> FieldReaderRaw<u16, u16>
pub fn saradc_timer_target(&self) -> FieldReaderRaw<u16, u16>
Bits 12:23 - to set saradc timer target
pub fn saradc_timer_en(&self) -> BitReaderRaw<bool>
pub fn saradc_timer_en(&self) -> BitReaderRaw<bool>
Bit 24 - to enable saradc timer trigger
Methods from Deref<Target = R<CTRL2_SPEC>>
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations
impl From<R<CTRL2_SPEC>> for R
impl From<R<CTRL2_SPEC>> for R
fn from(reader: R<CTRL2_SPEC>) -> R
fn from(reader: R<CTRL2_SPEC>) -> R
Converts to this type from the input type.
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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