nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
ch_msg.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_NDEF_CH_MSG_H_
8#define NFC_NDEF_CH_MSG_H_
9
19#include <stddef.h>
20#include <zephyr/types.h>
21#include <nfc/ndef/ch.h>
22#include <nfc/ndef/le_oob_rec.h>
23
24#ifdef _cplusplus
25extern "C" {
26#endif
27
28
29#define NFC_NDEF_CH_MSG_MAJOR_VER CONFIG_NFC_NDEF_CH_MAJOR_VERSION
30#define NFC_NDEF_CH_MSG_MINOR_VER CONFIG_NFC_NDEF_CH_MINOR_VERSION
31
39 const struct nfc_ndef_record_desc *ac;
40
43
45 size_t cnt;
46};
47
62 uint8_t *buf, size_t *len);
63
85 struct nfc_ndef_record_desc *hs_rec,
86 const struct nfc_ndef_ch_msg_records *records);
87
110 struct nfc_ndef_record_desc *hr_rec,
111 const struct nfc_ndef_record_desc *cr_rec,
112 const struct nfc_ndef_ch_msg_records *records);
113
135 struct nfc_ndef_record_desc *hm_rec,
136 const struct nfc_ndef_ch_msg_records *records);
137
159 struct nfc_ndef_record_desc *hi_rec,
160 const struct nfc_ndef_ch_msg_records *records);
161
162#ifdef _cplusplus
163}
164#endif
165
170#endif /* NFC_NDEF_CH_MSG_H_ */
int nfc_ndef_ch_msg_hs_create(struct nfc_ndef_msg_desc *msg, struct nfc_ndef_record_desc *hs_rec, const struct nfc_ndef_ch_msg_records *records)
Create an NFC NDEF Handover Select message.
int nfc_ndef_ch_msg_le_oob_encode(const struct nfc_ndef_le_oob_rec_payload_desc *oob, uint8_t *buf, size_t *len)
Encode an NFC NDEF LE OOB message.
int nfc_ndef_ch_msg_hr_create(struct nfc_ndef_msg_desc *msg, struct nfc_ndef_record_desc *hr_rec, const struct nfc_ndef_record_desc *cr_rec, const struct nfc_ndef_ch_msg_records *records)
Encode an NFC NDEF Handover Request message.
int nfc_ndef_ch_msg_hm_create(struct nfc_ndef_msg_desc *msg, struct nfc_ndef_record_desc *hm_rec, const struct nfc_ndef_ch_msg_records *records)
Create an NFC NDEF Handover Mediation message.
int nfc_ndef_ch_msg_hi_create(struct nfc_ndef_msg_desc *msg, struct nfc_ndef_record_desc *hi_rec, const struct nfc_ndef_ch_msg_records *records)
Create an NFC NDEF Handover Initiate message.
size_t cnt
Definition ch_msg.h:45
const struct nfc_ndef_record_desc * ac
Definition ch_msg.h:39
const struct nfc_ndef_record_desc * carrier
Definition ch_msg.h:42
Definition ch_msg.h:37
LE OOB record payload descriptor.
Definition le_oob_rec.h:75
NDEF message descriptor.
Definition msg.h:29
NDEF record descriptor.
Definition record.h:91