Type Definition lpc81x_pac::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 330)
329
330
331
332
333
334
335
336
    pub fn bit_is_clear(&self) -> bool {
        !self.bit()
    }
    /// 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