1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//! # Infrared
//!
//! Rust library for using Infrared hardware decoders (For example a Vishay TSOP* decoder),
//! enabling remote control support for embedded project.
//!
//! This library aims for to be useful with the any MCU hal that implements the embedded-hal traits,
//! and at the same time provide functionality for using it with more efficient implementation
//! such as input capture, and be useful in host applications (such as Blipper).
//!
//!
//! ## Examples
//!
//! The [infrared-examples](https://github.com/jkristell/infrared-examples) github repo contains
//! examples of both Event driven and poll based Receivers, with and without RTIC.
//!

#![no_std]

pub(crate) mod fmt;

pub mod cmd;
pub mod protocol;
pub mod receiver;
pub mod sender;

#[cfg(feature = "remotes")]
pub mod remotecontrol;

pub use receiver::{ConstReceiver, Receiver};

#[doc(inline)]
pub use protocol::{Protocol, ProtocolId};

#[cfg(test)]
#[macro_use]
extern crate std;