Struct atsaml21e16b::tcc0::evctrl::W

source ·
pub struct W(_);
Expand description

Register EVCTRL writer

Implementations§

Bits 0:2 - Timer/counter Input Event0 Action

Bits 3:5 - Timer/counter Input Event1 Action

Bits 6:7 - Timer/counter Output Event Mode

Bit 8 - Overflow/Underflow Output Event Enable

Bit 9 - Retrigger Output Event Enable

Bit 10 - Timer/counter Output Event Enable

Bit 12 - Inverted Event 0 Input Enable

Bit 13 - Inverted Event 1 Input Enable

Bit 14 - Timer/counter Event 0 Input Enable

Bit 15 - Timer/counter Event 1 Input Enable

Bit 16 - Match or Capture Channel 0 Event Input Enable

Bit 17 - Match or Capture Channel 1 Event Input Enable

Bit 18 - Match or Capture Channel 2 Event Input Enable

Bit 19 - Match or Capture Channel 3 Event Input Enable

Bit 24 - Match or Capture Channel 0 Event Output Enable

Bit 25 - Match or Capture Channel 1 Event Output Enable

Bit 26 - Match or Capture Channel 2 Event Output Enable

Bit 27 - Match or Capture Channel 3 Event Output Enable

Writes raw bits to the register.

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

Writes raw bits to the register.

Safety

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

Examples found in repository?
src/ac/ctrla.rs (line 66)
65
66
67
68
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
More examples
Hide additional examples
src/ac/ctrlb.rs (line 42)
41
42
43
44
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/ac/dbgctrl.rs (line 58)
57
58
59
60
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/ac/intenclr.rs (line 88)
87
88
89
90
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/ac/intenset.rs (line 88)
87
88
89
90
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/ac/intflag.rs (line 88)
87
88
89
90
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }

Trait Implementations§

The resulting type after dereferencing.
Dereferences the value.
Mutably dereferences the value.
Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

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

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.