Trait peripherals::Peripheral[][src]

pub trait Peripheral {
    const BASE: usize;
    const NAME: &'static str;
}
Expand description

A trait for peripheral instances

This trait is implemented by the device! macro for marker types that indicate peripheral instances.

Associated Constants

const BASE: usize[src]

The base address of this peripheral instance

const NAME: &'static str[src]

The name to be displayed in debug

Implementors

impl Peripheral for Periph[src]

const BASE: usize[src]

const NAME: &'static str[src]

impl Peripheral for PeriphAll[src]

all: on everything

const BASE: usize[src]

const NAME: &'static str[src]

impl Peripheral for PeriphField[src]

const BASE: usize[src]

const NAME: &'static str[src]

impl Peripheral for PeriphImpl[src]

impl: only on impls

const BASE: usize[src]

const NAME: &'static str[src]

impl Peripheral for PeriphType[src]

const BASE: usize[src]

const NAME: &'static str[src]

impl Peripheral for COMPLEX[src]

const BASE: usize[src]

const NAME: &'static str[src]

impl Peripheral for PERIPH1[src]

const BASE: usize[src]

const NAME: &'static str[src]

impl Peripheral for PERIPH2[src]

const BASE: usize[src]

const NAME: &'static str[src]