forked from ATrappmann/PN5180-Library
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNDEFReader.h
More file actions
37 lines (24 loc) · 694 Bytes
/
NDEFReader.h
File metadata and controls
37 lines (24 loc) · 694 Bytes
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
37
#ifndef NDEFREADER_H_734657
#define NDEFREADER_H_734657
#include "PN5180ISO15693.h"
class NDEFReader {
private:
PN5180ISO15693 *_nfc;
uint8_t *_uid;
uint8_t _blockCount = 0;
uint8_t _blockSize = 0;
int16_t _blockIndex = -1;
uint16_t _blockDataPos = UINT16_MAX;
uint8_t _blockData[256];
private:
ISO15693ErrorCode readNextByte(uint8_t& data);
ISO15693ErrorCode skipNextByte(uint8_t count = 1);
public:
ISO15693ErrorCode readMessageAsText(String& text);
public:
NDEFReader& operator = (const NDEFReader&) = delete;
NDEFReader(PN5180ISO15693& nfc, uint8_t *uid);
NDEFReader(const NDEFReader&) = delete;
~NDEFReader();
};
#endif