Struct cortex_m_rtfm::Peripheral
[−]
[src]
pub struct Peripheral<P, PC> where
P: 'static, { /* fields omitted */ }
A hardware peripheral as a resource
To assign a ceiling to a peripheral, use the
peripherals!
macro
Methods
impl<Periph, PC> Peripheral<Periph, PC>
[src]
fn access<'cs, TP, PT>(
&'static self,
_task_priority: &Priority<TP>,
_preemption_threshold: &'cs Threshold<PT>
) -> Ref<'cs, Periph> where
PC: GreaterThanOrEqual<TP>,
PT: GreaterThanOrEqual<PC>,
&'static self,
_task_priority: &Priority<TP>,
_preemption_threshold: &'cs Threshold<PT>
) -> Ref<'cs, Periph> where
PC: GreaterThanOrEqual<TP>,
PT: GreaterThanOrEqual<PC>,
See Resource.access
Trait Implementations
impl<T, C> Sync for Peripheral<T, C>
[src]
impl<P, PC> ResourceLike for Peripheral<P, PC>
[src]
type Ceiling = PC
The ceiling of the resource