Trait peripherals::Register[][src]

pub trait Register {
    type Int: Int;
    type Value: RegisterValue<Int = Self::Int>;

    const OFFSET: usize;
    const NAME: &'static str;
}
Expand description

A trait for registers This trait is implemented by the periph! macro for marker types that indicate registers.

Associated Types

type Int: Int[src]

The width of this register (u8, u16, etc.)

type Value: RegisterValue<Int = Self::Int>[src]

The marker type for values read from this register

Associated Constants

const OFFSET: usize[src]

The offset from the base address

const NAME: &'static str[src]

The name to be displayed in debug

Implementors

impl Register for Register[src]

type Int = u8

type Value = Register

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for RegisterAll[src]

all: on everything

type Int = u8

type Value = RegisterAll

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for RegisterField[src]

type Int = u8

type Value = RegisterField

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for RegisterImpl[src]

impl: only on impls

type Int = u8

type Value = RegisterImpl

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for RegisterType[src]

type Int = u8

type Value = RegisterType

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for BIG1[src]

type Int = u16

type Value = BigRegister

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for BIG2[src]

type Int = u16

type Value = BigRegister

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for SMALL1[src]

type Int = u8

type Value = SmallRegister

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for SMALL2[src]

type Int = u8

type Value = SmallRegister

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for BUFFER[src]

type Int = u16

type Value = BUFFER

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for CONFIG[src]

type Int = u16

type Value = CONFIG

const OFFSET: usize[src]

const NAME: &'static str[src]

impl Register for STATUS[src]

type Int = u16

type Value = STATUS

const OFFSET: usize[src]

const NAME: &'static str[src]