Struct atsaml21e16b::tcc0::drvctrl::W

source ·
pub struct W(_);
Expand description

Register DRVCTRL writer

Implementations§

Bit 0 - Non-Recoverable State 0 Output Enable

Bit 1 - Non-Recoverable State 1 Output Enable

Bit 2 - Non-Recoverable State 2 Output Enable

Bit 3 - Non-Recoverable State 3 Output Enable

Bit 4 - Non-Recoverable State 4 Output Enable

Bit 5 - Non-Recoverable State 5 Output Enable

Bit 6 - Non-Recoverable State 6 Output Enable

Bit 7 - Non-Recoverable State 7 Output Enable

Bit 8 - Non-Recoverable State 0 Output Value

Bit 9 - Non-Recoverable State 1 Output Value

Bit 10 - Non-Recoverable State 2 Output Value

Bit 11 - Non-Recoverable State 3 Output Value

Bit 12 - Non-Recoverable State 4 Output Value

Bit 13 - Non-Recoverable State 5 Output Value

Bit 14 - Non-Recoverable State 6 Output Value

Bit 15 - Non-Recoverable State 7 Output Value

Bit 16 - Output Waveform 0 Inversion

Bit 17 - Output Waveform 1 Inversion

Bit 18 - Output Waveform 2 Inversion

Bit 19 - Output Waveform 3 Inversion

Bit 20 - Output Waveform 4 Inversion

Bit 21 - Output Waveform 5 Inversion

Bit 22 - Output Waveform 6 Inversion

Bit 23 - Output Waveform 7 Inversion

Bits 24:27 - Non-Recoverable Fault Input 0 Filter Value

Bits 28:31 - Non-Recoverable Fault Input 1 Filter Value

Writes raw bits to the register.

Methods from Deref<Target = W<DRVCTRL_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.