[−][src]Crate embedded_timeout_macros
Useful macros for working with timeouts on top of embedded-hal
APIs
The non-blocking APIs in the embedded-hal
crate use nb::Result
from
the nb
crate to signal whether an operation has finished. This can be
a bit tedious to work with in non-trivial cases, for example if timeouts are
involved.
This crate defines macros that help working with timeouts on top of
embedded-hal
APIs.
Re-exports
pub use embedded_hal; |
pub use nb; |
Macros
block_timeout | Blocks on a non-blocking operation until a timer times out |
repeat_timeout | Repeats an operation until a timer times out |
Enums
TimeoutError | An error that can either be a timeout or another error |