Struct alt_stm32f30x_hal::stm32::opamp::opamp2_csr::PGA_GAIN_R
source · [−]pub struct PGA_GAIN_R(_);
Expand description
Field PGA_GAIN
reader - Gain in PGA mode
Implementations
sourceimpl PGA_GAIN_R
impl PGA_GAIN_R
sourcepub fn variant(&self) -> Option<PGA_GAIN_A>
pub fn variant(&self) -> Option<PGA_GAIN_A>
Get enumerated values variant
sourcepub fn is_gain2_vm0(&self) -> bool
pub fn is_gain2_vm0(&self) -> bool
Checks if the value of the field is GAIN2_VM0
sourcepub fn is_gain4_vm0(&self) -> bool
pub fn is_gain4_vm0(&self) -> bool
Checks if the value of the field is GAIN4_VM0
sourcepub fn is_gain8_vm0(&self) -> bool
pub fn is_gain8_vm0(&self) -> bool
Checks if the value of the field is GAIN8_VM0
sourcepub fn is_gain16_vm0(&self) -> bool
pub fn is_gain16_vm0(&self) -> bool
Checks if the value of the field is GAIN16_VM0
sourcepub fn is_gain2_vm1(&self) -> bool
pub fn is_gain2_vm1(&self) -> bool
Checks if the value of the field is GAIN2_VM1
sourcepub fn is_gain4_vm1(&self) -> bool
pub fn is_gain4_vm1(&self) -> bool
Checks if the value of the field is GAIN4_VM1
sourcepub fn is_gain8_vm1(&self) -> bool
pub fn is_gain8_vm1(&self) -> bool
Checks if the value of the field is GAIN8_VM1
sourcepub fn is_gain16_vm1(&self) -> bool
pub fn is_gain16_vm1(&self) -> bool
Checks if the value of the field is GAIN16_VM1
Methods from Deref<Target = FieldReader<u8, PGA_GAIN_A>>
sourcepub fn bit_is_clear(&self) -> bool
pub fn bit_is_clear(&self) -> bool
Returns true
if the bit is clear (0).
sourcepub fn bit_is_set(&self) -> bool
pub fn bit_is_set(&self) -> bool
Returns true
if the bit is set (1).
Trait Implementations
sourceimpl Deref for PGA_GAIN_R
impl Deref for PGA_GAIN_R
type Target = FieldReader<u8, PGA_GAIN_A>
type Target = FieldReader<u8, PGA_GAIN_A>
The resulting type after dereferencing.
sourcefn deref(&self) -> &<PGA_GAIN_R as Deref>::Target
fn deref(&self) -> &<PGA_GAIN_R as Deref>::Target
Dereferences the value.
Auto Trait Implementations
impl RefUnwindSafe for PGA_GAIN_R
impl Send for PGA_GAIN_R
impl Sync for PGA_GAIN_R
impl Unpin for PGA_GAIN_R
impl UnwindSafe for PGA_GAIN_R
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