pub type StaticQueue = StaticKernelObject<k_queue>;
Expand description
A statically defined Zephyr k_queue
.
This should be declared as follows:
kobj_define! {
static MY_QUEUE: StaticQueue;
}
let my_queue = MY_QUEUE.init_once(());
my_queue.send(...);
Aliased Type§
struct StaticQueue {
pub value: UnsafeCell<k_queue>,
pub init: AtomicUsize,
}
Fields§
§value: UnsafeCell<k_queue>
The underlying zephyr kernel object.
init: AtomicUsize
Initialization status of this object. Most objects will start uninitialized and be initialized manually.