Struct cortex_m::peripheral::Peripheral [] [src]

pub struct Peripheral<T> where
    T: 'static, 
{ /* fields omitted */ }

A peripheral

Methods

impl<T> Peripheral<T>
[src]

Creates a new peripheral

address is the base address of the register block

Borrows the peripheral for the duration of a critical section

Returns a pointer to the register block