Type Definition atsam4s2a_pac::generic::BitReader

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

Bit-wise field reader

Implementations§

source§

impl<FI> BitReader<FI>

source

pub fn bit(&self) -> bool

Value of the field as raw bits.

source

pub fn bit_is_clear(&self) -> bool

Returns true if the bit is clear (0).

source

pub fn bit_is_set(&self) -> bool

Returns true if the bit is set (1).

Trait Implementations§

source§

impl<FI> PartialEq<FI> for BitReader<FI>where FI: Copy, bool: From<FI>,

source§

fn eq(&self, other: &FI) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.