nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
ch_rec_parser.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_REC_PARSER_H_
8#define NFC_NDEF_CH_REC_PARSER_H_
9
18#include <nfc/ndef/ch.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
30
33
36
39};
40
49
59
68
81bool nfc_ndef_ch_rec_check(const struct nfc_ndef_record_desc *rec_desc,
82 enum nfc_ndef_ch_rec_type rec_type);
83
110 uint8_t *result_buf, uint32_t *result_buf_len);
111
134 uint8_t *result_buf, uint32_t *result_buf_len);
135
151 struct nfc_ndef_ch_cr_rec *cr_rec);
152
175 uint8_t *result_buf, uint32_t *result_buf_len);
176
187void nfc_ndef_ch_rec_printout(const struct nfc_ndef_ch_rec *ch_rec);
188
195
202
209
210#ifdef __cplusplus
211}
212#endif
213
218#endif /* NFC_NDEF_CH_REC_PARSER_H_ */
int nfc_ndef_ch_cr_rec_parse(const struct nfc_ndef_record_desc *rec_desc, struct nfc_ndef_ch_cr_rec *cr_rec)
Parse an NDEF Collision Resolution Record.
bool nfc_ndef_ch_ac_rec_check(const struct nfc_ndef_record_desc *rec_desc)
Check if an NDEF Record is the Alternative Carrier Record.
bool nfc_ndef_ch_hc_rec_check(const struct nfc_ndef_record_desc *rec_desc)
Check if an NDEF Record is the Handover Carrier Record.
nfc_ndef_ch_rec_type
NFC NDEF Connection Handover Record type.
Definition: ch_rec_parser.h:27
@ NFC_NDEF_CH_REC_TYPE_HANDOVER_SELECT
Definition: ch_rec_parser.h:29
@ NFC_NDEF_CH_REC_TYPE_HANDOVER_REQUEST
Definition: ch_rec_parser.h:32
@ NFC_NDEF_CH_REC_TYPE_HANDOVER_MEDIATION
Definition: ch_rec_parser.h:38
@ NFC_NDEF_CH_REC_TYPE_HANDOVER_INITIATE
Definition: ch_rec_parser.h:35
bool nfc_ndef_ch_rec_check(const struct nfc_ndef_record_desc *rec_desc, enum nfc_ndef_ch_rec_type rec_type)
Check if an NDEF Record is the fallowing Handover Connection Record:
void nfc_ndef_ac_rec_printout(const struct nfc_ndef_ch_ac_rec *ac_rec)
Print the parsed contents of an NDEF Alternative Carrier Record.
void nfc_ndef_hc_rec_printout(const struct nfc_ndef_ch_hc_rec *hc_rec)
Print the parsed contents of an NDEF Handover Carrier Record.
bool nfc_ndef_ch_cr_rec_check(const struct nfc_ndef_record_desc *rec_desc)
Check if an NDEF Record is the Handover Collision Resolution Record.
int nfc_ndef_ch_hc_rec_parse(const struct nfc_ndef_record_desc *rec_desc, uint8_t *result_buf, uint32_t *result_buf_len)
Parse an NDEF Handover Carrier Record.
int nfc_ndef_ch_rec_parse(const struct nfc_ndef_record_desc *rec_desc, uint8_t *result_buf, uint32_t *result_buf_len)
Parse the fallowing NDEF Connection Handover Records:
void nfc_ndef_ch_rec_printout(const struct nfc_ndef_ch_rec *ch_rec)
Print the parsed contents of the fallowing Connection Handover Records:
void nfc_ndef_cr_rec_printout(const struct nfc_ndef_ch_cr_rec *cr_rec)
Print the parsed contents of an NDEF Collision Resolution Record.
int nfc_ndef_ch_ac_rec_parse(const struct nfc_ndef_record_desc *rec_desc, uint8_t *result_buf, uint32_t *result_buf_len)
Parse an NDEF Alternative Carrier Record.
Alternative Carrier record payload descriptor.
Definition: ch.h:109
Collision Resolution record payload descriptor.
Definition: ch.h:129
Handover Carrier record payload descriptor.
Definition: ch.h:39
Handover Select record payload descriptor.
Definition: ch.h:137
NDEF record descriptor.
Definition: record.h:91