Interface refactor 2

This commit is contained in:
2026-08-31 09:39:08 +08:00
parent 2e25cda230
commit 89dfed231f
9 changed files with 101 additions and 25 deletions
@@ -1,6 +1,14 @@
use embedded_hal::delay::DelayNs;
use embedded_hal::digital::{InputPin, OutputPin};
use crate::{Interface, Pn532};
impl<B: Interface, const N: usize> Pn532<B, N> {
impl<RST, IRQ, DELAY, B, const N: usize> Pn532<RST, IRQ, DELAY, B, N>
where
RST: OutputPin,
IRQ: InputPin,
DELAY: DelayNs,
B: Interface<RST, IRQ, DELAY>
{
pub fn setup_first_issuance(&mut self) {
todo!()
}