nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
poller.h File Reference
#include <nfc/ndef/msg.h>
#include <nfc/ndef/tnep_rec.h>
#include <nfc/tnep/base.h>

Go to the source code of this file.

Data Structures

struct  nfc_tnep_poller_msg
 TNEP Poller Message structure. More...
 
struct  nfc_tnep_poller_ndef_api
 TNEP Poller API structure. More...
 
struct  nfc_tnep_poller_cb
 TNEP Poller callback structure. More...
 
struct  nfc_tnep_buf
 TNEP Poller buffer structure. More...
 

Enumerations

enum  nfc_tnep_tag_type { NFC_TNEP_TAG_TYPE_UNSUPPORTED , NFC_TNEP_TAG_TYPE_T2T , NFC_TNEP_TAG_TYPE_T4T }
 NFC TNEP Tag Type. More...
 

Functions

int nfc_tnep_poller_init (const struct nfc_tnep_buf *tx_buf)
 Initialize the NFC TNEP Poller Device.
 
void nfc_tnep_poller_cb_register (struct nfc_tnep_poller_cb *cb)
 Register TNEP Poller callbacks.
 
int nfc_tnep_poller_api_set (const struct nfc_tnep_poller_ndef_api *api, enum nfc_tnep_tag_type tag_type)
 Set NDEF API for the NFC TNEP Poller Device.
 
int nfc_tnep_poller_svc_search (const struct nfc_ndef_msg_desc *ndef_msg, struct nfc_ndef_tnep_rec_svc_param *param, uint8_t *cnt)
 Search if NDEF Message contains TNEP Service Parameters Records.
 
int nfc_tnep_poller_svc_select (const struct nfc_tnep_buf *svc_buf, const struct nfc_ndef_tnep_rec_svc_param *svc, uint32_t max_ndef_area_size)
 Select the TNEP Service.
 
int nfc_tnep_poller_svc_deselect (void)
 Deselect the TNEP Service.
 
int nfc_tnep_poller_svc_read (const struct nfc_tnep_buf *svc_buf)
 Read the TNEP Service data.
 
int nfc_tnep_poller_svc_write (const struct nfc_ndef_msg_desc *msg, const struct nfc_tnep_buf *resp_buf)
 Write the TNEP Service data.
 
int nfc_tnep_poller_on_ndef_read (const uint8_t *data, size_t len)
 Indicate NDEF data read.
 
int nfc_tnep_poller_on_ndef_write (void)
 Indicate NDEF data write operation finish.
 
const struct nfc_ndef_tnep_rec_svc_paramactive_service_get (void)
 Get the selected/active service.