Struct bare_metal::Peripheral
[−]
[src]
pub struct Peripheral<T> where
T: 'static, { /* fields omitted */ }
A peripheral
Methods
impl<T> Peripheral<T>
[src]
pub const unsafe fn new(address: usize) -> Self
[src]
Creates a new peripheral
address
is the base address of the register block
pub fn borrow<'cs>(&self, _ctxt: &'cs CriticalSection) -> &'cs T
[src]
Borrows the peripheral for the duration of a critical section
pub fn get(&self) -> *mut T
[src]
Returns a pointer to the register block
Trait Implementations
impl<T: Debug> Debug for Peripheral<T> where
T: 'static,
[src]
T: 'static,