forked from italia/cie-PN532
-
Notifications
You must be signed in to change notification settings - Fork 2
/
cie_Nfc_Adafruit.h
35 lines (27 loc) · 916 Bytes
/
cie_Nfc_Adafruit.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
28
29
30
31
32
33
34
35
/**************************************************************************/
/*!
@file cie_Nfc_Adafruit.cpp
@author Developers Italia
@license BSD (see License)
Definition of the cie_Nfc abstract class using the Adafruit_PN532 library
@section HISTORY
v1.0 - First definition
*/
/**************************************************************************/
#include <Adafruit_PN532.h>
#include "cie_Nfc.h"
#ifndef CIE_NFC_ADAFRUIT
#define CIE_NFC_ADAFRUIT
class cie_Nfc_Adafruit : public cie_Nfc {
public:
cie_Nfc_Adafruit();
cie_Nfc_Adafruit(byte clk, byte miso, byte mosi, byte ss);
~cie_Nfc_Adafruit();
void begin();
bool detectCard();
bool sendCommand(byte *command, byte commandLength, byte *response, word *responseLength);
void generateRandomBytes(byte *buffer, const word offset, const byte length);
private:
Adafruit_PN532 *_nfc;
};
#endif