Struct atmega_hal::adc::AdcSettings
source · [−]pub struct AdcSettings {
pub clock_divider: ClockDivider,
pub ref_voltage: ReferenceVoltage,
}
Expand description
Configuration for the ADC peripheral.
Fields
clock_divider: ClockDivider
ref_voltage: ReferenceVoltage
Trait Implementations
sourceimpl Clone for AdcSettings
impl Clone for AdcSettings
sourcefn clone(&self) -> AdcSettings
fn clone(&self) -> AdcSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AdcSettings
impl Debug for AdcSettings
sourceimpl Default for AdcSettings
impl Default for AdcSettings
sourcefn default() -> AdcSettings
fn default() -> AdcSettings
Returns the “default value” for a type. Read more
sourceimpl PartialEq<AdcSettings> for AdcSettings
impl PartialEq<AdcSettings> for AdcSettings
sourcefn eq(&self, other: &AdcSettings) -> bool
fn eq(&self, other: &AdcSettings) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AdcSettings) -> bool
fn ne(&self, other: &AdcSettings) -> bool
This method tests for !=
.
impl Copy for AdcSettings
impl Eq for AdcSettings
impl StructuralEq for AdcSettings
impl StructuralPartialEq for AdcSettings
Auto Trait Implementations
impl RefUnwindSafe for AdcSettings
impl Send for AdcSettings
impl Sync for AdcSettings
impl Unpin for AdcSettings
impl UnwindSafe for AdcSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more