Struct lpc845_pac::capt::touch::R[][src]

pub struct R(_);
Expand description

Register TOUCH reader

Implementations

Bits 0:11 - Count value reached at trigger. If timeout, will be (1 bigger than TOUT)-1; e.g. if TOUT=12, then 0xFFF.

Bits 12:15 - Is the X that triggered this, or lowest X if more than one.

Bit 16 - 1 if is Touch (by count) or 0 if is no-touch.

Bit 17 - 1 if is Timeout.

Bits 20:23 - Sequence number - rolling counter of polls. Changes after all selected Xs per poll (so, 0 for 1st set of Xs, then 1 for next set, etc).

Bit 31 - If 1, the rest of the register is 0 because the data is changing. This will only happen for 1 cycle and would never happen if using interrupts to read, unless took so long as to overrun.

Methods from Deref<Target = R<TOUCH_SPEC>>

Reads raw bits from register.

Trait Implementations

The resulting type after dereferencing.

Dereferences the value.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.