NFC Data Exchange Format(NDEF) Type Name Format (TNF) type.
Synopsis:
#include <nfc/nfc_types.h>
typedef enum {
NDEF_TNF_EMPTY = 0
NDEF_TNF_WELL_KNOWN = 1
NDEF_TNF_MEDIA = 2
NDEF_TNF_ABSOLUTE_URI = 3
NDEF_TNF_EXTERNAL = 4
NDEF_TNF_UNKNOWN = 5
NDEF_TNF_UNCHANGED = 6
} tnf_type_t;
Data:
- NDEF_TNF_EMPTY
- Empty TNF indicates that there is no type or payload associated with this record.
- NDEF_TNF_WELL_KNOWN
- Well known TNF indicates that the TYPE field contains a value that follows the Record Type Definition (RTD) type name format defined in the NFC Forum RTD specification.
- NDEF_TNF_MEDIA
- Media TNF indicates that the TYPE field contains a value that follows the media-type BNF grammar defined in RFC 2046.
- NDEF_TNF_ABSOLUTE_URI
- Absolute URI TNF indicates that the Type field contains a value that follows the absolute-URI BNF construct defined by RFC 3986.
- NDEF_TNF_EXTERNAL
- External TNF indicates that the TYPE field contains a value that follows the type name format defined in specification NFC Record Type Definition (RTD) Specification for external type names.
- NDEF_TNF_UNKNOWN
- Unknown TNF indicate that the type of the payload is unknown.
- NDEF_TNF_UNCHANGED
- Unchanged TNF must be used in all middle record chunks and the terminating record chunk used in chunked payloads.
It must not be used in any other record.
Library:
libnfc (For the qcc command, use the -l nfc option to link against this library)
Description:
This enumeration defines the TNFs specified in the NFC-Forum NDEF specification.