Enum efm32gg990::timer0::ctrl::MODER [−][src]
pub enum MODER { UP, DOWN, UPDOWN, QDEC, }
Possible values of the field MODE
Variants
UP
Up-count mode
DOWN
Down-count mode
UPDOWN
Up/down-count mode
QDEC
Quadrature decoder mode
Methods
impl MODER
[src]
impl MODER
pub fn bits(&self) -> u8
[src]
pub fn bits(&self) -> u8
Value of the field as raw bits
pub fn is_up(&self) -> bool
[src]
pub fn is_up(&self) -> bool
Checks if the value of the field is UP
pub fn is_down(&self) -> bool
[src]
pub fn is_down(&self) -> bool
Checks if the value of the field is DOWN
pub fn is_updown(&self) -> bool
[src]
pub fn is_updown(&self) -> bool
Checks if the value of the field is UPDOWN
pub fn is_qdec(&self) -> bool
[src]
pub fn is_qdec(&self) -> bool
Checks if the value of the field is QDEC
Trait Implementations
impl Clone for MODER
[src]
impl Clone for MODER
fn clone(&self) -> MODER
[src]
fn clone(&self) -> MODER
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for MODER
[src]
impl Copy for MODER
impl Debug for MODER
[src]
impl Debug for MODER
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for MODER
[src]
impl PartialEq for MODER