Trait r3_kernel::KernelCfg1
source · [−]pub unsafe trait KernelCfg1: Sized + Send + Sync + 'static {
type TaskPriority: BinUInteger;
const NUM_TASK_PRIORITY_LEVELS: usize;
fn to_task_priority(i: usize) -> Option<Self::TaskPriority>;
}
Expand description
Associated Types
Unsigned integer type capable of representing the range
0..NUM_TASK_PRIORITY_LEVELS
.
Associated Constants
The number of task priority levels.
Required methods
fn to_task_priority(i: usize) -> Option<Self::TaskPriority>
fn to_task_priority(i: usize) -> Option<Self::TaskPriority>
Convert usize
to Self::TaskPriority
. Returns None
if
i >= Self::NUM_TASK_PRIORITY_LEVELS
.