-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nfctype4.go
41 lines (35 loc) · 1.6 KB
/
nfctype4.go
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
38
39
40
41
/***
Copyright (c) 2020, Hector Sanjuan
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
***/
// Package nfctype4 is an implementation of the NFC Forum Type 4 Tag
// Operation Specification Version 2.0 (NFCForum-TS-Type-4-Tag_2.0)
//
// nfctype4 can be used for both reading Tags, but also for implementing
// software-based Tags which can be emulated with the help of NFC
// Readers in "target" mode.
//
// The `Device` type offers functionality to perform `Read` and `Update`
// on NFC Type 4 Tags.
//
// The bridge between the `Device` and the hardware is covered by the
// modules in `libnfc4/drivers/*`, which implement the `CommandDriver`
// interface. A `libnfc` driver is provided, which allows working with any
// libnfc-supported hardware.
package nfctype4
// This is the NFC Type 4 Tag standard version that we are following.
const (
NFCForumMajorVersion = 2
NFCForumMinorVersion = 0
)
// NDEFAPPLICATION is the name for the NDEF Application.
const NDEFAPPLICATION = uint64(0xD2760000850101)