Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
NDEF
Generic NDEF Tag | |
typedef struct __ndef_msg | ndef_msg_t |
typedef nfc_err_t(* | ndef_encode_fn_t )(ndef_msg_t *pTag, ac_buffer_builder_t *pBufferBldr, void *pUserData) |
Function called to generate the tag's content on read (target mode) | |
typedef nfc_err_t(* | ndef_decode_fn_t )(ndef_msg_t *pTag, ac_buffer_t *pBuffer, void *pUserData) |
Function called to decode the tag's content on write (target mode) or read (reader mode) | |
static nfc_err_t | ndef_msg_encode (ndef_msg_t *pNdef) |
static nfc_err_t | ndef_msg_decode (ndef_msg_t *pNdef) |
static ac_buffer_builder_t * | ndef_msg_buffer_builder (ndef_msg_t *pNdef) |
Generic NDEF Tag | |
void | ndef_msg_init (ndef_msg_t *pNdef, ndef_encode_fn_t encode, ndef_decode_fn_t decode, uint8_t *data, size_t size, void *pUserData) |
Initialize NDEF tag abstraction. |
Typedef Documentation
typedef nfc_err_t(* ndef_decode_fn_t)(ndef_msg_t *pTag, ac_buffer_t *pBuffer, void *pUserData) |
typedef nfc_err_t(* ndef_encode_fn_t)(ndef_msg_t *pTag, ac_buffer_builder_t *pBufferBldr, void *pUserData) |
Function Documentation
void ndef_msg_init | ( | ndef_msg_t * | pNdef, |
ndef_encode_fn_t | encode, | ||
ndef_decode_fn_t | decode, | ||
uint8_t * | data, | ||
size_t | size, | ||
void * | pUserData | ||
) |
Initialize NDEF tag abstraction.
- Parameters:
-
pNdefTag pointer to ndef_tag_t structure to initialize encode function that will be called to generate the NDEF message before sending it to the other party decode function that will be called to parse the NDEF message after receiving it from the other party buffer underlying buffer to use (it should be big enough so that any NDEF message you might need could be stored inside) buffer_size size of the underlying buffer pImpl pointer to actual implementation
Generated on Tue Jul 12 2022 13:55:27 by
