
NXP Semiconductors
UM11038
OM27642 Smart Lock KIT
UM11038
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2018. All rights reserved.
User manual
COMPANY PUBLIC
Rev. 1.1 — 11 October 2018
407611
25 of 38
5.
Task CLIF NxpRdLib component stack for communication:
12.3 Task HIF
Task HIF is implemented in
smart_lock_task_hif.c
.
After the task starts it initializes custom
BAL and HAL layers that implement
QN ↔ PN
communication protocol. Next it tries to
perform the handshake between the QN and PN. When the handshake is successfully
performed it initialize the custom
PAL
layer, which is used to initialize
NxpRdLib
software
stack and then perform the token retrieval.
12.3.1 Task HIF NxpRdLib component stack:
phbalReg_Smart Lock _DataParams_t
phhalHw_Smart Lock _DataParams_t
phpalMifare_Smart Lock _DataParams_t
phalMfdf_Sw_DataParams_t
phKeyStore_Sw_DataParams_t
phCryptoSym_Sw_DataParams_t
phCryptoRng_Sw_DataParams_t
12.3.2 phbalReg_Smart Lock _DataParams_t
phbalReg_Smart Lock _DataParams_t
component can be found at
comps/phbalReg/src/Smart Lock Serial/phbalReg_Smart Lock Serial.c
. The file contains
the low level implementation of the communication protocol.
12.3.3 phhalHw_Smart Lock _DataParams_t
phhalHw_Smart Lock _DataParams_t
component can be found at
comps/phhalHw/src/Smart Lock /phhalHw_Smart Lock .c
and implements the
phhalHw_Smart Lock _Exchange
function with buffering and manipulation of the data for
upper layers.
12.3.4 phpalMifare_Smart Lock _DataParams_t
phpalMifare_Smart Lock _DataParams_t component can be found at
comps/phpalMifare/src/Smart Lock /phpalMifare_Smart Lock .c and is a wrapper used by
the upper layers.
phhalHw_Nfc_Ic_DataParams_t
phpalI14443p4_Sw_DataParams_t
phpalMifare_Sw_DataParams_t
phalMfdf_Sw_DataParams_t
phKeyStore_Sw_DataParams_t
phCryptoSym_Sw_DataParams_t
phCryptoRng_Sw_DataParams_t