[][src]Enum cc13x2_cc26x2_hal::aux_tdc::ctl::CMDR

pub enum CMDR {
    ABORT,
    RUN,
    RUN_SYNC_START,
    CLR_RESULT,
}

Possible values of the field CMD

Variants

ABORT

Force TDC state machine back to IDLE state.

Never write this command while AUX_TDC:STAT.STATE equals CLR_CNT or WAIT_CLR_CNT_DONE.

RUN

Asynchronous counter start.

The counter starts to count when the start event is high. To achieve precise edge-to-edge measurements you must ensure that the start event is low for at least 420 ns after you write this command.

RUN_SYNC_START

Synchronous counter start.

The counter looks for the opposite edge of the selected start event before it starts to count when the selected edge occurs. This guarantees an edge-triggered start and is recommended for frequency measurements.

CLR_RESULT

Clear STAT.SAT, STAT.DONE, and RESULT.VALUE.

This is not needed as prerequisite for a measurement. Reliable clear is only guaranteed from IDLE state.

Methods

impl CMDR[src]

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

Value of the field as raw bits

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

Checks if the value of the field is ABORT

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

Checks if the value of the field is RUN

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

Checks if the value of the field is RUN_SYNC_START

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

Checks if the value of the field is CLR_RESULT

Trait Implementations

impl Copy for CMDR[src]

impl Debug for CMDR[src]

impl PartialEq<CMDR> for CMDR[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Clone for CMDR[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for CMDR

impl Sync for CMDR

Blanket Implementations

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> From for T[src]

impl<T, U> TryInto 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, U> Into for T where
    U: From<T>, 
[src]

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

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

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

impl<T> Same for T

type Output = T

Should always be Self