nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
ch_rec_parser.h File Reference
#include <nfc/ndef/ch.h>

Go to the source code of this file.

Enumerations

enum  nfc_ndef_ch_rec_type { NFC_NDEF_CH_REC_TYPE_HANDOVER_SELECT , NFC_NDEF_CH_REC_TYPE_HANDOVER_REQUEST , NFC_NDEF_CH_REC_TYPE_HANDOVER_INITIATE , NFC_NDEF_CH_REC_TYPE_HANDOVER_MEDIATION }
 NFC NDEF Connection Handover Record type. More...
 

Functions

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_cr_rec_check (const struct nfc_ndef_record_desc *rec_desc)
 Check if an NDEF Record is the Handover Collision Resolution 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.
 
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:
 
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:
 
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.
 
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.
 
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.
 
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_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.
 
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.