Struct atsam4s2a_pac::tc0::bmr::W

source ·
pub struct W(_);
Expand description

Register BMR writer

Implementations§

source§

impl W

source

pub fn tc0xc0s(&mut self) -> TC0XC0S_W<'_, 0>

Bits 0:1 - External Clock Signal 0 Selection

source

pub fn tc1xc1s(&mut self) -> TC1XC1S_W<'_, 2>

Bits 2:3 - External Clock Signal 1 Selection

source

pub fn tc2xc2s(&mut self) -> TC2XC2S_W<'_, 4>

Bits 4:5 - External Clock Signal 2 Selection

source

pub fn qden(&mut self) -> QDEN_W<'_, 8>

Bit 8 - Quadrature Decoder ENabled

source

pub fn posen(&mut self) -> POSEN_W<'_, 9>

Bit 9 - POSition ENabled

source

pub fn speeden(&mut self) -> SPEEDEN_W<'_, 10>

Bit 10 - SPEED ENabled

source

pub fn qdtrans(&mut self) -> QDTRANS_W<'_, 11>

Bit 11 - Quadrature Decoding TRANSparent

source

pub fn edgpha(&mut self) -> EDGPHA_W<'_, 12>

Bit 12 - EDGe on PHA count mode

source

pub fn inva(&mut self) -> INVA_W<'_, 13>

Bit 13 - INVerted phA

source

pub fn invb(&mut self) -> INVB_W<'_, 14>

Bit 14 - INVerted phB

source

pub fn invidx(&mut self) -> INVIDX_W<'_, 15>

Bit 15 - INVerted InDeX

source

pub fn swap(&mut self) -> SWAP_W<'_, 16>

Bit 16 - SWAP PHA and PHB

source

pub fn idxphb(&mut self) -> IDXPHB_W<'_, 17>

Bit 17 - InDeX pin is PHB pin

source

pub fn filter(&mut self) -> FILTER_W<'_, 19>

Bit 19 - Glitch Filter

source

pub fn maxfilt(&mut self) -> MAXFILT_W<'_, 20>

Bits 20:25 - MAXimum FILTer

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut Self

Writes raw bits to the register.

Methods from Deref<Target = W<BMR_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: REG::Ux) -> &mut Self

Writes raw bits to the register.

Safety

Read datasheet or reference manual to find what values are allowed to pass.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<BMR_SPEC>

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl DerefMut for W

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
source§

impl From<W<BMR_SPEC>> for W

source§

fn from(writer: W<BMR_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.