pub struct Ref { /* private fields */ }
Implementations§
Source§impl Ref
impl Ref
pub const fn new() -> Ref
Sourcepub fn select_ref_voltage(&self, ref_voltage: ReferenceVoltage)
pub fn select_ref_voltage(&self, ref_voltage: ReferenceVoltage)
Set the reference voltage of this module which will be used in the ADC and DAC modules. The default voltage is 1.2V.
Sourcepub fn enable_temp_sensor(&self, enable: bool)
pub fn enable_temp_sensor(&self, enable: bool)
Enable or disable the internal temperature sensor. The default-setting is enabled.
Trait Implementations§
Source§impl AnalogReference for Ref
impl AnalogReference for Ref
Source§fn ref_voltage_mv(&self) -> usize
fn ref_voltage_mv(&self) -> usize
Return the configured reference voltage in mV
Auto Trait Implementations§
impl !Freeze for Ref
impl !RefUnwindSafe for Ref
impl !Send for Ref
impl !Sync for Ref
impl Unpin for Ref
impl !UnwindSafe for Ref
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