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