rp2040_pac::generic

Trait RawReg

Source
pub trait RawReg:
    Copy
    + Default
    + From<bool>
    + BitOr<Output = Self>
    + BitAnd<Output = Self>
    + BitOrAssign
    + BitAndAssign
    + Not<Output = Self>
    + Shl<u8, Output = Self> {
    // Required methods
    fn mask<const WI: u8>() -> Self;
    fn one() -> Self;
}
Expand description

Raw register type (u8, u16, u32, …)

Required Methods§

Source

fn mask<const WI: u8>() -> Self

Mask for bits of width WI

Source

fn one() -> Self

Mask for bits of width 1

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl RawReg for u8

Source§

fn mask<const WI: u8>() -> Self

Source§

fn one() -> Self

Source§

impl RawReg for u16

Source§

fn mask<const WI: u8>() -> Self

Source§

fn one() -> Self

Source§

impl RawReg for u32

Source§

fn mask<const WI: u8>() -> Self

Source§

fn one() -> Self

Source§

impl RawReg for u64

Source§

fn mask<const WI: u8>() -> Self

Source§

fn one() -> Self

Implementors§