nRF Connect SDK API 0.1.0
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
20#include <stddef.h>
21#include <zephyr/types.h>
22#include <nfc/ndef/ch.h>
23#include <nfc/ndef/le_oob_rec.h>
24
25#ifdef _cplusplus
26extern "C" {
27#endif
28
29
30#define NFC_NDEF_CH_MSG_MAJOR_VER CONFIG_NFC_NDEF_CH_MAJOR_VERSION
31#define NFC_NDEF_CH_MSG_MINOR_VER CONFIG_NFC_NDEF_CH_MINOR_VERSION
32
40 const struct nfc_ndef_record_desc *ac;
41
44
46 size_t cnt;
47};
48
63 uint8_t *buf, size_t *len);
64
86 struct nfc_ndef_record_desc *hs_rec,
87 const struct nfc_ndef_ch_msg_records *records);
88
111 struct nfc_ndef_record_desc *hr_rec,
112 const struct nfc_ndef_record_desc *cr_rec,
113 const struct nfc_ndef_ch_msg_records *records);
114
136 struct nfc_ndef_record_desc *hm_rec,
137 const struct nfc_ndef_ch_msg_records *records);
138
160 struct nfc_ndef_record_desc *hi_rec,
161 const struct nfc_ndef_ch_msg_records *records);
162
163#ifdef _cplusplus
164}
165#endif
166
171#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:46
const struct nfc_ndef_record_desc * ac
Definition: ch_msg.h:40
const struct nfc_ndef_record_desc * carrier
Definition: ch_msg.h:43
Definition: ch_msg.h:38
LE OOB record payload descriptor.
Definition: le_oob_rec.h:76
NDEF message descriptor.
Definition: msg.h:30
NDEF record descriptor.
Definition: record.h:91