Trait d1_pac::generic::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

Object Safety§

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§