Struct stm32_metapac::adc::regs::Calfact
#[repr(transparent)]pub struct Calfact(pub u32);
Expand description
ADC Calibration factor.
Tuple Fields§
§0: u32
Implementations§
§impl Calfact
impl Calfact
pub const fn calfact(&self) -> u8
pub const fn calfact(&self) -> u8
Calibration factor These bits are written by hardware or by software. Once a calibration is complete, they are updated by hardware with the calibration factors. Software can write these bits with a new calibration factor. If the new calibration factor is different from the current one stored into the analog ADC, it is then applied once a new calibration is launched. Just after a calibration is complete, DATA[6:0] contains the calibration factor. Note: Software can write these bits only when ADEN = 1 (ADC is enabled and no calibration is ongoing and no conversion is ongoing).
pub fn set_calfact(&mut self, val: u8)
pub fn set_calfact(&mut self, val: u8)
Calibration factor These bits are written by hardware or by software. Once a calibration is complete, they are updated by hardware with the calibration factors. Software can write these bits with a new calibration factor. If the new calibration factor is different from the current one stored into the analog ADC, it is then applied once a new calibration is launched. Just after a calibration is complete, DATA[6:0] contains the calibration factor. Note: Software can write these bits only when ADEN = 1 (ADC is enabled and no calibration is ongoing and no conversion is ongoing).
Trait Implementations§
impl Copy for Calfact
impl Eq for Calfact
impl StructuralPartialEq for Calfact
Auto Trait Implementations§
impl Freeze for Calfact
impl RefUnwindSafe for Calfact
impl Send for Calfact
impl Sync for Calfact
impl Unpin for Calfact
impl UnwindSafe for Calfact
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)