Struct cortex_m::peripheral::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) -> Peripheral<T>
[src]
Creates a new peripheral
address
is the base address of the register block
pub fn borrow(&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 for Peripheral<T> where
T: Debug + 'static,
[src]
T: Debug + 'static,