Crate os_trait

Crate os_trait 

Source
Expand description

Traits used to adapter different embedded RTOS. See OsInterface

§Cargo Features

  • alloc: Enabled by default.
  • std: Used for unit test. Disabled by default.
  • std-custom-mutex: Enable it when you want to use BlockingMutex instead of STD Mutex in STD environment.

Re-exports§

pub use mutex_impls::FakeRawMutex;
pub use mutex_impls::Mutex;
pub use os_impls::FakeOs;
pub use os_impls::StdOs;
pub use embedded_hal;
pub use fugit;
pub use mutex_traits;
pub use timeout_trait;
pub use notifier_impls::*;

Modules§

delay
duration
embedded_hal
crates.io crates.io Documentation Minimum Supported Rust Version
fake_impls
fugit
fugit provides a comprehensive library of Duration and Instant for the handling of time in embedded systems. The library is specifically designed to maximize const-ification which allows for most comparisons and changes of time-base to be made at compile time, rather than run time.
mutex_impls
notifier
notifier_impls
os_impls
prelude
std_impls
timeout

Structs§

FakeTickInstant
TickDelay
DelayNs implementation
TickDuration
TickTimeout

Traits§

ConstInit
Const Init Trait
OsInterface
Adapter for different operating systems.
RawMutex
Raw mutex trait.
TickInstant
It doesn’t require operation interfaces on TickInstant itself. Embedded systems can thus implement only the relative time version.

Type Aliases§

Duration
KilohertzU32
Alias for kilohertz rate (u32 backing storage)
MicrosDurationU32
Alias for microsecond duration (u32 backing storage)
Timeout