nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches
hl_procedure.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef NFC_T4T_HL_PROCEDURE_
8#define NFC_T4T_HL_PROCEDURE_
9
17#ifdef __cplusplus
18extern "C" {
19#endif
20
21#include <zephyr/types.h>
22#include <nfc/t4t/cc_file.h>
23
35
49
57 void (*cc_read)(struct nfc_t4t_cc_file *cc);
58
70 void (*ndef_read)(uint16_t file_id, const uint8_t *data, size_t len);
71
79 void (*ndef_updated)(uint16_t file_id);
80};
81
93int nfc_t4t_hl_procedure_on_data_received(const uint8_t *data, size_t len);
94
106
113
120
129
138
152 uint8_t *ndef_buff, uint16_t ndef_len);
153
167 uint8_t *ndef_data, uint16_t ndef_len);
168
169#ifdef __cplusplus
170}
171#endif
172
177#endif /* NFC_T4T_HL_PROCEDURE_ */
int nfc_t4t_hl_procedure_cc_read(struct nfc_t4t_cc_file *cc)
Perform Capability Container Read Procedure.
int nfc_t4t_hl_procedure_ndef_update(struct nfc_t4t_cc_file *cc, uint8_t *ndef_data, uint16_t ndef_len)
Perform NDEF Update Procedure.
int nfc_t4t_hl_procedure_cb_register(const struct nfc_t4t_hl_procedure_cb *cb)
Register High Level Procedure callback.
int nfc_t4t_hl_procedure_on_data_received(const uint8_t *data, size_t len)
Handle High Level Procedure received data.
nfc_t4t_hl_procedure_select
Type of selection procedure.
Definition hl_procedure.h:25
@ NFC_T4T_HL_PROCEDURE_NDEF_FILE_SELECT
Definition hl_procedure.h:33
@ NFC_T4T_HL_PROCEDURE_NDEF_APP_SELECT
Definition hl_procedure.h:27
@ NFC_T4T_HL_PROCEDURE_CC_SELECT
Definition hl_procedure.h:30
int nfc_t4t_hl_procedure_cc_select(void)
Perform NDEF Tag Capability Container Select Procedure.
int nfc_t4t_hl_procedure_ndef_read(struct nfc_t4t_cc_file *cc, uint8_t *ndef_buff, uint16_t ndef_len)
Perform NDEF Read Procedure.
int nfc_t4t_hl_procedure_ndef_tag_app_select(void)
Perform NDEF Tag Application Select Procedure.
int nfc_t4t_hl_procedure_ndef_file_select(uint16_t id)
Perform NDEF file Select Procedure.
uint16_t len
Definition cc_file.h:37
Descriptor for the Capability Container (CC) file of Type 4 Tag.
Definition cc_file.h:26
void(* ndef_updated)(uint16_t file_id)
HL Procedure NDEF file updated callback.
Definition hl_procedure.h:79
void(* cc_read)(struct nfc_t4t_cc_file *cc)
HL Procedure CC file read callback.
Definition hl_procedure.h:57
void(* ndef_read)(uint16_t file_id, const uint8_t *data, size_t len)
HL Procedure NDEF file read callback.
Definition hl_procedure.h:70
void(* selected)(enum nfc_t4t_hl_procedure_select type)
HL Procedure selected callback.
Definition hl_procedure.h:48
NFC T4T High Level Procedure callback structure.
Definition hl_procedure.h:41