NFC ZigBee 3.0 Modules and Libraries: nfc_nwk.h File Reference

NFC ZigBee 3.0

NFC ZigBee 3.0 Modules and Libraries
NFC Commissioning using ZigBee Installation Codes
nfc_nwk.h File Reference

Common macros used by all NFC NWK NDEF processing. More...

#include <jendefs.h>

Go to the source code of this file.

Data Structures

struct  tsNfcNwkNtag
 
struct  tsNfcNwkNci
 
struct  tsNfcNwkPayload
 
struct  tsNfcNwkInstallCode
 

Macros

#define NFC_NWK_PAYLOAD_VERSION   13
 
#define NFC_NWK_PAYLOAD_KEY_SIZE   16
 
#define NFC_NWK_PAYLOAD_MIC_SIZE   4
 
#define NFC_NWK_CMD_NONE   0x00
 
#define NFC_NWK_NTAG_CMD_JOIN_WITH_CODE   0x41
 
#define NFC_NWK_NCI_CMD_FACTORY_RESET   0xA0
 
#define NFC_NWK_NCI_CMD_JOIN_WITH_CODE   0xA1
 

Detailed Description

Common macros used by all NFC NWK NDEF processing.


Data Structure Documentation

◆ tsNfcNwkNtag

struct tsNfcNwkNtag

Data written by NTAG side

Data Fields
uint8 u8Version

Data structure version

uint8 u8Command

Command from NTAG to NCI

uint8 u8Sequence

Write counter

uint16 u16DeviceId

Device type ID

uint64 u64ExtAddress

Extended address

uint16 u16ShortAddress

Current short address

uint8 u8Channel

Current channel

uint16 u16PanId

Current PAN ID

uint64 u64ExtPanId

Current extended PAN ID

uint8 au8Key[16]

Installation code

uint16 u16Crc

Installation code CRC

◆ tsNfcNwkNci

struct tsNfcNwkNci

Data written by NCI side

Data Fields
uint8 u8Command

Command from NCI to NTAG

uint8 u8Sequence

Write counter

uint16 u16DeviceId

Device type ID

uint64 u64ExtAddress

Network trust center extended address

uint16 u16ShortAddress

Network trust center short address

uint8 u8Channel

Network channel

uint16 u16PanId

Network PAN ID

uint64 u64ExtPanId

Network extended PAN ID

uint8 au8Key[16]

Encrypted network key

uint8 au8Mic[4]

MIC for encrypted key

uint8 u8KeySeqNum

Network key sequence number

◆ tsNfcNwkPayload

struct tsNfcNwkPayload

NTAG NWK NDEF payload data

Data Fields
tsNfcNwkNtag sNtag

Data written by ntag side

tsNfcNwkNci sNci

Data written by nci side

◆ tsNfcNwkInstallCode

struct tsNfcNwkInstallCode

Installation code structure

Data Fields
uint8 au8Key[16]

Installation code

uint16 u16Crc

Installation code CRC

Macro Definition Documentation

◆ NFC_NWK_PAYLOAD_VERSION

#define NFC_NWK_PAYLOAD_VERSION   13

NFC NWK NDEF payload version number

◆ NFC_NWK_PAYLOAD_KEY_SIZE

#define NFC_NWK_PAYLOAD_KEY_SIZE   16

Size of payload key byte arrays

◆ NFC_NWK_PAYLOAD_MIC_SIZE

#define NFC_NWK_PAYLOAD_MIC_SIZE   4

Size of payload MIC byte arrays

◆ NFC_NWK_CMD_NONE

#define NFC_NWK_CMD_NONE   0x00

Null command value

◆ NFC_NWK_NTAG_CMD_JOIN_WITH_CODE

#define NFC_NWK_NTAG_CMD_JOIN_WITH_CODE   0x41

NTAG request to NCI to join using installation code encrypted key

◆ NFC_NWK_NCI_CMD_FACTORY_RESET

#define NFC_NWK_NCI_CMD_FACTORY_RESET   0xA0

NCI request to NTAG to perform a factory reset

◆ NFC_NWK_NCI_CMD_JOIN_WITH_CODE

#define NFC_NWK_NCI_CMD_JOIN_WITH_CODE   0xA1

NCI request to NTAG to join using installatino code encrypted key

Generated by   doxygen 1.8.13