infrared/
lib.rs

1//! # Infrared
2//!
3//! Rust library for using Infrared hardware decoders (For example a Vishay TSOP* decoder),
4//! enabling remote control support for embedded project.
5//!
6//! This library aims for to be useful with the any MCU hal that implements the embedded-hal traits,
7//! and at the same time provide functionality for using it with more efficient implementation
8//! such as input capture, and be useful in host applications (such as Blipper).
9//!
10//!
11//! ## Examples
12//!
13//! The [infrared](https://github.com/jkristell/infrared) github repo contains
14//! examples of both Event driven and poll based Receivers, with and without RTIC.
15//!
16
17#![no_std]
18
19pub(crate) mod fmt;
20
21pub mod cmd;
22pub mod protocol;
23pub mod receiver;
24pub mod sender;
25
26#[cfg(feature = "remotes")]
27pub mod remotecontrol;
28
29#[doc(inline)]
30pub use protocol::{Protocol, ProtocolId};
31#[doc(inline)]
32pub use receiver::{BufferInputReceiver, PeriodicPoll, Receiver};
33
34#[cfg(test)]
35#[macro_use]
36extern crate std;