summaryrefslogtreecommitdiffstats
path: root/include/hardware/nfc_tag.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hardware/nfc_tag.h')
-rw-r--r--include/hardware/nfc_tag.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/hardware/nfc_tag.h b/include/hardware/nfc_tag.h
index 72028f4..040a07d 100644
--- a/include/hardware/nfc_tag.h
+++ b/include/hardware/nfc_tag.h
@@ -32,10 +32,22 @@ __BEGIN_DECLS
#define NFC_TAG_ID "tag"
typedef struct nfc_tag_module_t {
+ /**
+ * Common methods of the NFC tag module. This *must* be the first member of
+ * nfc_tag_module_t as users of this structure will cast a hw_module_t to
+ * nfc_tag_module_t pointer in contexts where it's known the hw_module_t references a
+ * nfc_tag_module_t.
+ */
struct hw_module_t common;
} nfc_tag_module_t;
typedef struct nfc_tag_device {
+ /**
+ * 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.
+ */
struct hw_device_t common;
/**