Struct lpc81x_pac::lpc810::i2c0::slvqual0::W

source ·
pub struct W(_);
Expand description

Register SLVQUAL0 writer

Implementations§

Bit 0 - Qualify mode for slave address 0.

Bits 1:7 - Slave address Qualifier for address 0. A value of 0 causes the address in SLVADR0 to be used as-is, assuming that it is enabled. If QUALMODE0 = 0, any bit in this field which is set to 1 will cause an automatic match of the corresponding bit of the received address when it is compared to the SLVADR0 register. If QUALMODE0 = 1, an address range is matched for address 0. This range extends from the value defined by SLVADR0 to the address defined by SLVQUAL0 (address matches when SLVADR0[7:1] <= received address <= SLVQUAL0[7:1]).

Writes raw bits to the register.

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

Writes raw bits to the register.

Examples found in repository?
src/lpc810/gpio/b0_0.rs (line 57)
56
57
58
59
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
More examples
Hide additional examples
src/lpc810/gpio/b0_1.rs (line 57)
56
57
58
59
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/lpc810/gpio/b0_10.rs (line 57)
56
57
58
59
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/lpc810/gpio/b0_11.rs (line 57)
56
57
58
59
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/lpc810/gpio/b0_12.rs (line 57)
56
57
58
59
    pub unsafe fn bits(&mut self, bits: u8) -> &mut Self {
        self.0.bits(bits);
        self
    }
src/lpc810/gpio/b0_13.rs (line 57)
56
57
58
59
    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.