Enum atmega_hal::adc::ReferenceVoltage
source · #[repr(u8)]pub enum ReferenceVoltage {
Aref = 0,
AVcc = 1,
Internal = 2,
}
Expand description
Select the voltage reference for the ADC peripheral
The internal voltage reference options may not be used if an external reference voltage is being applied to the AREF pin.
Variants§
Aref = 0
Voltage applied to AREF pin.
AVcc = 1
Default reference voltage (default).
Internal = 2
Internal reference voltage.
Trait Implementations§
source§impl Clone for ReferenceVoltage
impl Clone for ReferenceVoltage
source§fn clone(&self) -> ReferenceVoltage
fn clone(&self) -> ReferenceVoltage
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ReferenceVoltage
impl Debug for ReferenceVoltage
source§impl Default for ReferenceVoltage
impl Default for ReferenceVoltage
source§impl PartialEq for ReferenceVoltage
impl PartialEq for ReferenceVoltage
source§fn eq(&self, other: &ReferenceVoltage) -> bool
fn eq(&self, other: &ReferenceVoltage) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ReferenceVoltage
impl Eq for ReferenceVoltage
impl StructuralPartialEq for ReferenceVoltage
Auto Trait Implementations§
impl Freeze for ReferenceVoltage
impl RefUnwindSafe for ReferenceVoltage
impl Send for ReferenceVoltage
impl Sync for ReferenceVoltage
impl Unpin for ReferenceVoltage
impl UnwindSafe for ReferenceVoltage
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