Type Alias rp2040_pac::generic::R

source ·
pub type R<REG> = R<REG>;
Expand description

Register reader.

Result of the read methods of registers. Also used as a closure argument in the modify method.

Aliased Type§

struct R<REG> { /* private fields */ }

Implementations§

source§

impl<REG: RegisterSpec> R<REG>

source

pub const fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl<REG: RegisterSpec, FI> PartialEq<FI> for R<REG>
where REG::Ux: PartialEq + From<FI>, FI: Copy,

source§

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

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

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

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