pub struct AdcSampleRateTsPinControl { /* private fields */ }
Expand description
Configures ADC sample rate and TS (Temperature Sense) pin functionality, current, and output mode.
Implementations§
Source§impl AdcSampleRateTsPinControl
impl AdcSampleRateTsPinControl
Sourcepub fn adc_sample_rate(&self) -> AdcSampleRateValue
pub fn adc_sample_rate(&self) -> AdcSampleRateValue
Read the adc_sample_rate
field of the register.
ADC sampling rate for enabled channels.
Sourcepub fn ts_pin_output_current(&self) -> TsPinCurrentValue
pub fn ts_pin_output_current(&self) -> TsPinCurrentValue
Read the ts_pin_output_current
field of the register.
Output current for the TS pin (typically for NTC biasing).
Sourcepub fn ts_pin_function_is_external_adc(&self) -> bool
pub fn ts_pin_function_is_external_adc(&self) -> bool
Read the ts_pin_function_is_external_adc
field of the register.
TS pin function (true: External ADC input, false: Battery Temperature Monitor).
Sourcepub fn ts_pin_current_output_mode(&self) -> TsPinOutputMode
pub fn ts_pin_current_output_mode(&self) -> TsPinOutputMode
Read the ts_pin_current_output_mode
field of the register.
Controls when current is output on the TS pin.
Sourcepub fn set_adc_sample_rate(&mut self, value: AdcSampleRateValue)
pub fn set_adc_sample_rate(&mut self, value: AdcSampleRateValue)
Write the adc_sample_rate
field of the register.
ADC sampling rate for enabled channels.
Sourcepub fn set_ts_pin_output_current(&mut self, value: TsPinCurrentValue)
pub fn set_ts_pin_output_current(&mut self, value: TsPinCurrentValue)
Write the ts_pin_output_current
field of the register.
Output current for the TS pin (typically for NTC biasing).
Sourcepub fn set_ts_pin_function_is_external_adc(&mut self, value: bool)
pub fn set_ts_pin_function_is_external_adc(&mut self, value: bool)
Write the ts_pin_function_is_external_adc
field of the register.
TS pin function (true: External ADC input, false: Battery Temperature Monitor).
Sourcepub fn set_ts_pin_current_output_mode(&mut self, value: TsPinOutputMode)
pub fn set_ts_pin_current_output_mode(&mut self, value: TsPinOutputMode)
Write the ts_pin_current_output_mode
field of the register.
Controls when current is output on the TS pin.
Trait Implementations§
Source§impl BitAnd for AdcSampleRateTsPinControl
impl BitAnd for AdcSampleRateTsPinControl
Source§impl BitAndAssign for AdcSampleRateTsPinControl
impl BitAndAssign for AdcSampleRateTsPinControl
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
&=
operation. Read moreSource§impl BitOr for AdcSampleRateTsPinControl
impl BitOr for AdcSampleRateTsPinControl
Source§impl BitOrAssign for AdcSampleRateTsPinControl
impl BitOrAssign for AdcSampleRateTsPinControl
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|=
operation. Read moreSource§impl BitXor for AdcSampleRateTsPinControl
impl BitXor for AdcSampleRateTsPinControl
Source§impl BitXorAssign for AdcSampleRateTsPinControl
impl BitXorAssign for AdcSampleRateTsPinControl
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
^=
operation. Read moreSource§impl Clone for AdcSampleRateTsPinControl
impl Clone for AdcSampleRateTsPinControl
Source§fn clone(&self) -> AdcSampleRateTsPinControl
fn clone(&self) -> AdcSampleRateTsPinControl
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more