Struct stm32_metapac::adc::regs::Dr
#[repr(transparent)]pub struct Dr(pub u32);
Expand description
ADC data register.
Tuple Fields§
§0: u32
Implementations§
§impl Dr
impl Dr
pub const fn data(&self) -> u16
pub const fn data(&self) -> u16
Converted data These bits are read-only. They contain the conversion result from the last converted channel. The data are left- or right-aligned as shown in Figure 78: Data alignment and resolution (oversampling disabled: OVSE = 0) on page 631. Just after a calibration is complete, DATA[6:0] contains the calibration factor.
pub fn set_data(&mut self, val: u16)
pub fn set_data(&mut self, val: u16)
Converted data These bits are read-only. They contain the conversion result from the last converted channel. The data are left- or right-aligned as shown in Figure 78: Data alignment and resolution (oversampling disabled: OVSE = 0) on page 631. Just after a calibration is complete, DATA[6:0] contains the calibration factor.
Trait Implementations§
impl Copy for Dr
impl Eq for Dr
impl StructuralPartialEq for Dr
Auto Trait Implementations§
impl Freeze for Dr
impl RefUnwindSafe for Dr
impl Send for Dr
impl Sync for Dr
impl Unpin for Dr
impl UnwindSafe for Dr
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
Mutably borrows from an owned value. Read more
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)