Trait drone_cortexm::thr::SoftThrToken[][src]

pub trait SoftThrToken: ThrToken {
    type SoftThread: SoftThread;
    pub fn to_soft_thr(self) -> &'static Self::SoftThread { ... }
pub fn set_pending(self) { ... }
pub fn clear_pending(self) { ... }
pub fn is_pending(self) -> bool { ... }
pub fn priority(self) -> u8 { ... }
pub fn set_priority(self, priority: u8) { ... } }

Token for a software-managed thread.

Associated Types

type SoftThread: SoftThread[src]

The software-managed thread type.

Loading content...

Provided methods

pub fn to_soft_thr(self) -> &'static Self::SoftThread[src]

Returns a reference to the software-managed thread object.

pub fn set_pending(self)[src]

Sets the thread pending.

pub fn clear_pending(self)[src]

Clears the thread pending state.

pub fn is_pending(self) -> bool[src]

Returns true if the thread is pending.

pub fn priority(self) -> u8[src]

Reads the priority of the thread.

pub fn set_priority(self, priority: u8)[src]

Writes the priority of the thread.

Panics

If priority is greater than or equals to PRIORITY_LEVELS.

Loading content...

Implementors

impl<S, T> SoftThrToken for T where
    T: ThrToken<Thread = S>,
    S: SoftThread
[src]

type SoftThread = S

Loading content...