#[repr(transparent)]pub struct Ctrlstat(pub u32);Expand description
Control Status.
Tuple Fields§
§0: u32Implementations§
Source§impl Ctrlstat
impl Ctrlstat
Sourcepub const fn set_ref_scale(&mut self, val: u8)
pub const fn set_ref_scale(&mut self, val: u8)
Reference Scale.
Sourcepub const fn pulse_mode(&self) -> bool
pub const fn pulse_mode(&self) -> bool
Pulse Mode. Raw bit values: false (0) = Freq: Frequency Measurement mode.; true (1) = Pulse: Pulse Width Measurement mode.
Sourcepub const fn set_pulse_mode(&mut self, val: bool)
pub const fn set_pulse_mode(&mut self, val: bool)
Pulse Mode. Raw bit values: false (0) = Freq: Frequency Measurement mode.; true (1) = Pulse: Pulse Width Measurement mode.
Sourcepub const fn pulse_pol(&self) -> bool
pub const fn pulse_pol(&self) -> bool
Pulse Polarity. Raw bit values: false (0) = High: High period.; true (1) = Low: Low period.
Sourcepub const fn set_pulse_pol(&mut self, val: bool)
pub const fn set_pulse_pol(&mut self, val: bool)
Pulse Polarity. Raw bit values: false (0) = High: High period.; true (1) = Low: Low period.
Sourcepub const fn lt_min_int_en(&self) -> bool
pub const fn lt_min_int_en(&self) -> bool
Less Than Minimum Interrupt Enable.
Sourcepub const fn set_lt_min_int_en(&mut self, val: bool)
pub const fn set_lt_min_int_en(&mut self, val: bool)
Less Than Minimum Interrupt Enable.
Sourcepub const fn gt_max_int_en(&self) -> bool
pub const fn gt_max_int_en(&self) -> bool
Greater Than Maximum Interrupt Enable.
Sourcepub const fn set_gt_max_int_en(&mut self, val: bool)
pub const fn set_gt_max_int_en(&mut self, val: bool)
Greater Than Maximum Interrupt Enable.
Sourcepub const fn result_ready_int_en(&self) -> bool
pub const fn result_ready_int_en(&self) -> bool
Result Ready Interrupt Enable.
Sourcepub const fn set_result_ready_int_en(&mut self, val: bool)
pub const fn set_result_ready_int_en(&mut self, val: bool)
Result Ready Interrupt Enable.
Sourcepub const fn lt_min_stat(&self) -> bool
pub const fn lt_min_stat(&self) -> bool
Less Than Minimum Results Status. Raw bit values: false (0) = InRange: Greater than MIN[MIN_VALUE].; true (1) = LtMin: Less than MIN[MIN_VALUE].
Sourcepub const fn set_lt_min_stat(&mut self, val: bool)
pub const fn set_lt_min_stat(&mut self, val: bool)
Less Than Minimum Results Status. Raw bit values: false (0) = InRange: Greater than MIN[MIN_VALUE].; true (1) = LtMin: Less than MIN[MIN_VALUE].
Sourcepub const fn gt_max_stat(&self) -> bool
pub const fn gt_max_stat(&self) -> bool
Greater Than Maximum Result Status. Raw bit values: false (0) = InRange: Less than MAX[MAX_VALUE].; true (1) = GtMax: Greater than MAX[MAX_VALUE].
Sourcepub const fn set_gt_max_stat(&mut self, val: bool)
pub const fn set_gt_max_stat(&mut self, val: bool)
Greater Than Maximum Result Status. Raw bit values: false (0) = InRange: Less than MAX[MAX_VALUE].; true (1) = GtMax: Greater than MAX[MAX_VALUE].
Sourcepub const fn result_ready_stat(&self) -> bool
pub const fn result_ready_stat(&self) -> bool
Result Ready Status.
Sourcepub const fn set_result_ready_stat(&mut self, val: bool)
pub const fn set_result_ready_stat(&mut self, val: bool)
Result Ready Status.
Sourcepub const fn continuous_mode_en(&self) -> bool
pub const fn continuous_mode_en(&self) -> bool
Continuous Mode Enable Status.
Sourcepub const fn set_continuous_mode_en(&mut self, val: bool)
pub const fn set_continuous_mode_en(&mut self, val: bool)
Continuous Mode Enable Status.
Sourcepub const fn measure_in_progress(&self) -> bool
pub const fn measure_in_progress(&self) -> bool
Measurement in Progress Status. Raw bit values: false (0) = Idle: Not in progress.; true (1) = Ongoing: In progress.
Sourcepub const fn set_measure_in_progress(&mut self, val: bool)
pub const fn set_measure_in_progress(&mut self, val: bool)
Measurement in Progress Status. Raw bit values: false (0) = Idle: Not in progress.; true (1) = Ongoing: In progress.