Add read/write for felica
felica types refactor
This commit is contained in:
+39
-5
@@ -43,17 +43,51 @@
|
||||
//! * The I2C interface is blocking and uses busy-wait polling for the PN532's
|
||||
//! "ready" flag, mirroring the original Arduino implementation.
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
pub mod commands;
|
||||
pub mod error;
|
||||
#[cfg(feature = "felica")]
|
||||
pub mod felica;
|
||||
pub mod interface;
|
||||
|
||||
pub(crate) mod driver;
|
||||
pub mod tg;
|
||||
#[cfg(feature = "mifare-classic")]
|
||||
pub mod mifare;
|
||||
#[cfg(feature = "iso14443a")]
|
||||
pub mod iso14443a;
|
||||
|
||||
pub use commands::BaudRate;
|
||||
pub use driver::{FelicaPollingResponse, Pn532, TargetInitStatus, Uid};
|
||||
pub use error::Error;
|
||||
pub use interface::{I2cInterface, Interface, NoIrq, NoReset};
|
||||
pub use commands::*;
|
||||
pub use driver::*;
|
||||
pub use error::*;
|
||||
pub use interface::*;
|
||||
|
||||
#[cfg(feature = "defmt")]
|
||||
use defmt::debug;
|
||||
|
||||
#[cfg(not(feature = "defmt"))]
|
||||
#[macro_export]
|
||||
macro_rules! error {
|
||||
($($arg:tt)+) => {};
|
||||
}
|
||||
#[cfg(not(feature = "defmt"))]
|
||||
#[macro_export]
|
||||
macro_rules! warn {
|
||||
($($arg:tt)+) => {};
|
||||
}
|
||||
#[cfg(not(feature = "defmt"))]
|
||||
#[macro_export]
|
||||
macro_rules! info {
|
||||
($($arg:tt)+) => {};
|
||||
}
|
||||
#[cfg(not(feature = "defmt"))]
|
||||
#[macro_export]
|
||||
macro_rules! debug {
|
||||
($($arg:tt)+) => {};
|
||||
}
|
||||
#[cfg(not(feature = "defmt"))]
|
||||
#[macro_export]
|
||||
macro_rules! trace {
|
||||
($($arg:tt)+) => {};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user