Struct attiny_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§
source§impl Clone for AdcSettings
impl Clone for AdcSettings
source§fn clone(&self) -> AdcSettings
fn clone(&self) -> AdcSettings
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 AdcSettings
impl Debug for AdcSettings
source§impl Default for AdcSettings
impl Default for AdcSettings
source§fn default() -> AdcSettings
fn default() -> AdcSettings
Returns the “default value” for a type. Read more
source§impl PartialEq for AdcSettings
impl PartialEq for AdcSettings
source§fn 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 ==
.impl Copy for AdcSettings
impl Eq for AdcSettings
impl StructuralPartialEq for AdcSettings
Auto Trait Implementations§
impl Freeze for AdcSettings
impl RefUnwindSafe for AdcSettings
impl Send for AdcSettings
impl Sync for AdcSettings
impl Unpin for AdcSettings
impl UnwindSafe for AdcSettings
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