Type Definition atsaml21e16b::generic::BitReader

source ·
pub type BitReader<FI> = BitReaderRaw<FI>;
Expand description

Bit-wise field reader

Implementations§

Value of the field as raw bits.

Examples found in repository?
src/generic.rs (line 360)
359
360
361
362
363
364
365
366
    pub fn bit_is_clear(&self) -> bool {
        !self.bit()
    }
    #[doc = " Returns `true` if the bit is set (1)."]
    #[inline(always)]
    pub fn bit_is_set(&self) -> bool {
        self.bit()
    }

Returns true if the bit is clear (0).

Returns true if the bit is set (1).

Trait Implementations§

This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more