Stay organized with collections
Save and categorize content based on your preferences.
nfc_tag_device Struct Reference
#include <
nfc_tag.h
>
Definition at line
44
of file
nfc_tag.h
.
Common methods of the NFC tag device. This
must
be the first member of nfc_tag_device_t as users of this structure will cast a
hw_device_t
to nfc_tag_device_t pointer in contexts where it's known the
hw_device_t
references a nfc_tag_device_t.
Definition at line
51
of file
nfc_tag.h
.
Returns the memory size of the data area.
Definition at line
80
of file
nfc_tag.h
.
Initialize the NFC tag.
The driver must:
-
Set the static lock bytes to read only
-
Configure the Capability Container to disable write acess eg: 0xE1 0x10 <size> 0x0F
This function is called once before any calls to
setContent()
.
Return 0 on success or -errno on error.
Definition at line
65
of file
nfc_tag.h
.
int(* setContent)(const struct
nfc_tag_device
*dev, const uint8_t *data, size_t len)
|
Set the NFC tag content.
The driver must write <data> in the data area of the tag starting at byte 0 of block 4 and zero the rest of the data area.
Returns 0 on success or -errno on error.
Definition at line
75
of file
nfc_tag.h
.
The documentation for this struct was generated from the following file:
-
hardware/libhardware/include/hardware/
nfc_tag.h
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2019-10-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2019-10-02 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2019-10-02 UTC."]]