Module kernel::common::cells[][src]

Create a "fake" module inside of common for all of the Tock Cell types.

To use TakeCell, for example, users should use:

use kernel::common::cells::TakeCell;

Structs

MapCell

A mutable memory location that enforces borrow rules at runtime without possible panics.

NumCell

NumCell is a simple wrapper around a Cell that restricts the type T to a number. NumCell then provides convenient methods, like increment and add. This means instead of this code:

OptionalCell

OptionalCell is a Cell that wraps an Option. This is helper type that makes keeping types that can be None a little cleaner.

TakeCell

A shared reference to a mutable reference.

VolatileCell

VolatileCell provides a wrapper around unsafe volatile pointer reads and writes. This is particularly useful for accessing microcontroller registers.