Trait r3_kernel::KernelCfg1
source · pub unsafe trait KernelCfg1: Sized + Send + Sync + 'static {
type TaskPriority: BinUInteger;
const NUM_TASK_PRIORITY_LEVELS: usize;
// Required method
fn to_task_priority(i: usize) -> Option<Self::TaskPriority>;
}
Expand description
Required Associated Types§
sourcetype TaskPriority: BinUInteger
type TaskPriority: BinUInteger
Unsigned integer type capable of representing the range
0..NUM_TASK_PRIORITY_LEVELS
.
Required Associated Constants§
sourceconst NUM_TASK_PRIORITY_LEVELS: usize
const NUM_TASK_PRIORITY_LEVELS: usize
The number of task priority levels.
Required Methods§
sourcefn 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
.