mirror of
https://github.com/rtic-rs/rtic.git
synced 2024-12-25 11:29:33 +01:00
33 lines
7.4 KiB
HTML
33 lines
7.4 KiB
HTML
|
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="crates.io crates.io Documentation"><title>embedded_hal_async - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-b0742ba02757f159.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="embedded_hal_async" data-themes="" data-resource-suffix="" data-rustdoc-version="1.83.0 (90b35a623 2024-11-26)" data-channel="1.83.0" data-search-js="search-f0d225181b97f9a4.js" data-settings-js="settings-805db61a62df4bd2.js" ><script src="../static.files/storage-1d39b6787ed640ff.js"></script><script defer src="../crates.js"></script><script defer src="../static.files/main-f070b9041d14864c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-0111fcff984fae8f.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc mod crate"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../embedded_hal_async/index.html">embedded_<wbr>hal_<wbr>async</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#embedded-hal-async" title="`embedded-hal-async`"><code>embedded-hal-async</code></a><ul><li><a href="#serialuart-traits" title="Serial/UART traits">Serial/UART traits</a></li><li><a href="#optional-cargo-features" title="Optional Cargo features">Optional Cargo features</a></li><li><a href="#minimum-supported-rust-version-msrv" title="Minimum Supported Rust Version (MSRV)">Minimum Supported Rust Version (MSRV)</a></li><li><a href="#license" title="License">License</a></li></ul></li></ul><h3><a href="#modules">Crate Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li></ul></section><div id="rustdoc-modnav"></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Crate <span>embedded_hal_async</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/embedded_hal_async/lib.rs.html#1-15">source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><a href="https://crates.io/crates/embedded-hal-async"><img src="https://img.shields.io/crates/d/embedded-hal-async.svg" alt="crates.io" /></a>
|
|||
|
<a href="https://crates.io/crates/embedded-hal-async"><img src="https://img.shields.io/crates/v/embedded-hal-async.svg" alt="crates.io" /></a>
|
|||
|
<a href="https://docs.rs/embedded-hal-async"><img src="https://docs.rs/embedded-hal-async/badge.svg" alt="Documentation" /></a></p>
|
|||
|
<h2 id="embedded-hal-async"><a class="doc-anchor" href="#embedded-hal-async">§</a><code>embedded-hal-async</code></h2>
|
|||
|
<p>An asynchronous Hardware Abstraction Layer (HAL) for embedded systems.</p>
|
|||
|
<p>This crate contains asynchronous versions of the <a href="https://crates.io/crates/embedded-hal"><code>embedded-hal</code></a> traits and shares its scope and <a href="https://docs.rs/embedded-hal/latest/embedded_hal/#design-goals">design goals</a>.</p>
|
|||
|
<p>This project is developed and maintained by the <a href="https://github.com/rust-embedded/wg#the-hal-team">HAL team</a>.</p>
|
|||
|
<h3 id="serialuart-traits"><a class="doc-anchor" href="#serialuart-traits">§</a>Serial/UART traits</h3>
|
|||
|
<p>There is no serial traits in <code>embedded-hal-async</code>. Instead, use <a href="https://crates.io/crates/embedded-io-async"><code>embedded-io-async</code></a>.
|
|||
|
A serial port is essentially a byte-oriented stream, and that’s what <code>embedded-io-async</code> models. Sharing the traits
|
|||
|
with all byte streams has some advantages. For example, it allows generic code providing a command-line interface
|
|||
|
or a console to operate either on hardware serial ports or on virtual ones like Telnet or USB CDC-ACM.</p>
|
|||
|
<h3 id="optional-cargo-features"><a class="doc-anchor" href="#optional-cargo-features">§</a>Optional Cargo features</h3>
|
|||
|
<ul>
|
|||
|
<li><strong><code>defmt-03</code></strong>: Derive <code>defmt::Format</code> from <code>defmt</code> 0.3 for enums and structs.</li>
|
|||
|
</ul>
|
|||
|
<h3 id="minimum-supported-rust-version-msrv"><a class="doc-anchor" href="#minimum-supported-rust-version-msrv">§</a>Minimum Supported Rust Version (MSRV)</h3>
|
|||
|
<p>This crate is guaranteed to compile on stable Rust 1.75 and up. It <em>might</em>
|
|||
|
compile with older versions but that may change in any new patch release.</p>
|
|||
|
<p>See <a href="../docs/msrv.md">here</a> for details on how the MSRV may be upgraded.</p>
|
|||
|
<h3 id="license"><a class="doc-anchor" href="#license">§</a>License</h3>
|
|||
|
<p>Licensed under either of</p>
|
|||
|
<ul>
|
|||
|
<li>Apache License, Version 2.0 (<a href="LICENSE-APACHE">LICENSE-APACHE</a> or
|
|||
|
<a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a>)</li>
|
|||
|
<li>MIT license (<a href="LICENSE-MIT">LICENSE-MIT</a> or <a href="http://opensource.org/licenses/MIT">http://opensource.org/licenses/MIT</a>)</li>
|
|||
|
</ul>
|
|||
|
<p>at your option.</p>
|
|||
|
<h4 id="contribution"><a class="doc-anchor" href="#contribution">§</a>Contribution</h4>
|
|||
|
<p>Unless you explicitly state otherwise, any contribution intentionally submitted
|
|||
|
for inclusion in the work by you, as defined in the Apache-2.0 license, shall be
|
|||
|
dual licensed as above, without any additional terms or conditions.</p>
|
|||
|
</div></details><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><ul class="item-table"><li><div class="item-name"><a class="mod" href="delay/index.html" title="mod embedded_hal_async::delay">delay</a></div><div class="desc docblock-short">Delays.</div></li><li><div class="item-name"><a class="mod" href="digital/index.html" title="mod embedded_hal_async::digital">digital</a></div><div class="desc docblock-short">Asynchronous digital I/O.</div></li><li><div class="item-name"><a class="mod" href="i2c/index.html" title="mod embedded_hal_async::i2c">i2c</a></div><div class="desc docblock-short">Async I2C API.</div></li><li><div class="item-name"><a class="mod" href="spi/index.html" title="mod embedded_hal_async::spi">spi</a></div><div class="desc docblock-short">SPI master mode traits.</div></li></ul></section></div></main></body></html>
|