nfc_tag_device Struct Reference
  
   #include <
   
    nfc_tag.h
   
   >
  
 
| Data Fields | |
| struct hw_device_t | common | 
| int(* | init )(const struct nfc_tag_device *dev) | 
| int(* | setContent )(const struct nfc_tag_device *dev, const uint8_t *data, size_t len) | 
| int(* | getMemorySize )(const struct nfc_tag_device *dev) | 
Detailed Description
Field Documentation
| struct hw_device_t common | 
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.
| int(* getMemorySize)(const struct nfc_tag_device *dev) | 
| int(* init)(const struct nfc_tag_device *dev) | 
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.
| int(* setContent)(const struct nfc_tag_device *dev, const uint8_t *data, size_t len) | 
The documentation for this struct was generated from the following file:
- hardware/libhardware/include/hardware/ nfc_tag.h