forked from italia/cie-PN532
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcie_Nfc.h
27 lines (21 loc) · 818 Bytes
/
cie_Nfc.h
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
/**************************************************************************/
/*!
@file cie_Nfc.h
@author Developers Italia
@license BSD (see License)
An interface needed by cie_PN532 as a decoupling abstraction to the underlying PN532 communication library
@section HISTORY
v1.0 - Methods for initializing the library, detecting the card and sending APDU commands
*/
/**************************************************************************/
#ifndef CIE_NFC
#define CIE_NFC
#include <Arduino.h>
class cie_Nfc {
public:
virtual void begin() = 0;
virtual bool detectCard() = 0;
virtual bool sendCommand(byte *command, byte commandLength, byte *response, word *responseLength) = 0;
virtual void generateRandomBytes(byte *buffer, const word offset, const byte length) = 0;
};
#endif