Trait r3::kernel::KernelCfg1 [−][src]
pub unsafe trait KernelCfg1: Sized + Send + Sync + 'static {
type TaskPriority: BinUInteger;
const NUM_TASK_PRIORITY_LEVELS: usize;
const TASK_PRIORITY_LEVELS: &'static [Self::TaskPriority];
}
Expand description
Associated Types
type TaskPriority: BinUInteger
type TaskPriority: BinUInteger
Unsigned integer type capable of representing the range
0..NUM_TASK_PRIORITY_LEVELS
.
Associated Constants
The number of task priority levels.
const TASK_PRIORITY_LEVELS: &'static [Self::TaskPriority]
const TASK_PRIORITY_LEVELS: &'static [Self::TaskPriority]
All possible values of TaskPriority
.
TASK_PRIORITY_LEVELS[i]
is equivalent to
TaskPriority::try_from(i).unwrap()
except that the latter doesn’t work
in const fn
.