![]() |
nRF Connect SDK API 3.3.99
|
Go to the source code of this file.
Data Structures | |
| struct | nfc_tnep_tag_service_cb |
| struct | nfc_tnep_tag_service |
| Service structure. More... | |
Macros | |
| #define | NFC_TNEP_EVENTS_NUMBER 2 |
| #define | NFC_TNEP_TAG_MAX_WAIT_TIME 63 |
| #define | NFC_TNEP_TAG_MAX_N_WAIT_TIME 15 |
| #define | NFC_TNEP_TAG_APP_MSG_DEF(_name, _max_record_cnt) |
| Create and initialize an NFC NDEF TNEP Application message descriptor. | |
| #define | NFC_TNEP_TAG_SERVICE_DEF(_name, _uri, _uri_length, _mode, _t_wait, _n_wait, _max_msg_size, _select_cb, _deselect_cb, _message_cb, _error_cb) |
| Macro to define TNEP service. | |
| #define | NFC_TNEP_TAG_SERVICE(_name) |
| macro for accessing the TNEP Service. | |
Typedefs | |
| typedef int(* | nfc_payload_set_t) (uint8_t *, size_t) |
| typedef int(* | initial_msg_encode_t) (struct nfc_ndef_msg_desc *msg) |
| Callback type for encoding the Initial TNEP NDEF message. | |
Functions | |
| int | nfc_tnep_tag_tx_msg_buffer_register (uint8_t *tx_buff, uint8_t *tx_swap_buff, size_t len) |
| Register TNEP message buffer. | |
| int | nfc_tnep_tag_init (struct k_poll_event *events, uint8_t event_cnt, nfc_payload_set_t payload_set) |
| Start communication using TNEP. | |
| int | nfc_tnep_tag_initial_msg_create (size_t max_record_cnt, initial_msg_encode_t msg_encode_cb) |
| Create the Initial TNEP NDEF message. | |
| int | nfc_tnep_initial_msg_encode (struct nfc_ndef_msg_desc *msg, const struct nfc_ndef_record_desc *records, size_t records_cnt) |
| Encode the Initial NDEF message. | |
| void | nfc_tnep_tag_process (void) |
| Waiting for a signal to execute protocol logic. | |
| void | nfc_tnep_tag_rx_msg_indicate (const uint8_t *rx_buffer, size_t len) |
| Indicate about new TNEP message available in buffer. | |
| int | nfc_tnep_tag_tx_msg_app_data (struct nfc_ndef_msg_desc *msg, enum nfc_tnep_status_value status) |
| Add application data record to next message. | |
| int | nfc_tnep_tag_tx_msg_no_app_data (void) |
| Respond with no more application data. | |
| void | nfc_tnep_tag_on_selected (void) |
| Handle NFC Tag selected event. | |
| size_t | nfc_tnep_tag_svc_count_get (void) |
| Get the NFC Tag TNEP service count. | |