nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
ndef_file.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NFC_T4T_NDEF_FILE_H_
8#define NFC_T4T_NDEF_FILE_H_
9
18#include <zephyr/types.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
25#define NFC_NDEF_FILE_NLEN_FIELD_SIZE 2U
26
34#define nfc_t4t_ndef_file_msg_size_get(_file_buf_size) \
35 ((_file_buf_size) - NFC_NDEF_FILE_NLEN_FIELD_SIZE)
36
43#define nfc_t4t_ndef_file_msg_get(_file_buf) \
44 ((uint8_t *)((_file_buf) + NFC_NDEF_FILE_NLEN_FIELD_SIZE))
45
55int nfc_t4t_ndef_file_encode(uint8_t *file_buf, uint32_t *size);
56
57#ifdef __cplusplus
58}
59#endif
60
65#endif /* NFC_T4T_NDEF_FILE_H_ */
int nfc_t4t_ndef_file_encode(uint8_t *file_buf, uint32_t *size)
Encode the NFC NDEF File.