[][src]Enum stm32l0xx_hal::stm32::adc::cfgr1::RESR

pub enum RESR {
    TWELVEBIT,
    TENBIT,
    EIGHTBIT,
    SIXBIT,
}

Possible values of the field RES

Variants

TWELVEBIT

12 bits

TENBIT

10 bits

EIGHTBIT

8 bits

SIXBIT

6 bits

Methods

impl RESR[src]

pub fn bits(&self) -> u8[src]

Value of the field as raw bits

pub fn is_twelve_bit(&self) -> bool[src]

Checks if the value of the field is TWELVEBIT

pub fn is_ten_bit(&self) -> bool[src]

Checks if the value of the field is TENBIT

pub fn is_eight_bit(&self) -> bool[src]

Checks if the value of the field is EIGHTBIT

pub fn is_six_bit(&self) -> bool[src]

Checks if the value of the field is SIXBIT

Trait Implementations

impl PartialEq<RESR> for RESR[src]

impl Debug for RESR[src]

impl Copy for RESR[src]

impl Clone for RESR[src]

Auto Trait Implementations

impl Unpin for RESR

impl Send for RESR

impl Sync for RESR

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self