Generation of NFC NDEF URI record descriptions. More...
Functions |
|
| nfc_ndef_record_desc_t * | nfc_uri_rec_declare ( nfc_uri_id_t uri_id_code, uint8_t const *const p_uri_data, uint8_t uri_data_len) |
|
Function for generating a description of a URI record.
More...
|
|
Detailed Description
Generation of NFC NDEF URI record descriptions.
Enumeration Type Documentation
| enum nfc_uri_id_t |
URI identifier codes according to "URI Record Type Definition" (denotation "NFCForum-TS-RTD_URI_1.0" published on 2006-07-24) chapter 3.2.2.
Function Documentation
| nfc_ndef_record_desc_t * nfc_uri_rec_declare | ( | nfc_uri_id_t | uri_id_code , |
| uint8_t const *const | p_uri_data , | ||
| uint8_t | uri_data_len | ||
| ) |
Function for generating a description of a URI record.
This function declares and initializes a static instance of an NFC NDEF record description of a URI record.
- Note
-
The record payload data (
uri_id_code,p_uri_data, anduri_data_len) should be declared as static. If it is declared as automatic, the NDEF message encoding (see nfc_uri_msg_encode ) must be done in the same variable scope.
- Parameters
-
[in] uri_id_code URI identifier code that defines the protocol field of the URI. [in] p_uri_data Pointer to the URI string. The string should not contain the protocol field if the protocol was specified in uri_id_code.[in] uri_data_len Length of the URI string.
- Returns
- Pointer to the description of the record.