#[repr(u8)]pub enum ReferenceVoltage {
Aref = 0,
AVcc = 1,
Internal = 2,
}Available on crate feature
mcu-atmega only.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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReferenceVoltage
Source§impl Debug for ReferenceVoltage
impl Debug for ReferenceVoltage
Source§impl Default for ReferenceVoltage
impl Default for ReferenceVoltage
Source§fn default() -> ReferenceVoltage
fn default() -> ReferenceVoltage
Returns the “default value” for a type. Read more
impl Eq for ReferenceVoltage
Source§impl PartialEq for ReferenceVoltage
impl PartialEq 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 UnsafeUnpin 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