Type Definition atsaml21e16b::generic::BitWriter

source ·
pub type BitWriter<'a, U, REG, FI, const O: u8> = BitWriterRaw<'a, U, REG, FI, BitM, O>;
Expand description

Bit-wise write field proxy

Implementations§

Field width

Writes bit to the field

Writes variant to the field

Examples found in repository?
src/usb/device/ctrla.rs (line 91)
90
91
92
93
94
95
96
97
    pub fn device(self) -> &'a mut W {
        self.variant(MODESELECT_A::DEVICE)
    }
    #[doc = "Host Mode"]
    #[inline(always)]
    pub fn host(self) -> &'a mut W {
        self.variant(MODESELECT_A::HOST)
    }
More examples
Hide additional examples
src/usb/host/ctrla.rs (line 91)
90
91
92
93
94
95
96
97
    pub fn device(self) -> &'a mut W {
        self.variant(MODESELECT_A::DEVICE)
    }
    #[doc = "Host Mode"]
    #[inline(always)]
    pub fn host(self) -> &'a mut W {
        self.variant(MODESELECT_A::HOST)
    }

Sets the field bit

Clears the field bit