jianglk.darker
7ee447c011
|
4 months ago | |
---|---|---|
.. | ||
README.md | 4 months ago | |
common.c | 4 months ago | |
linux_spidev.c | 4 months ago | |
nq_nci.c | 4 months ago |
README.md
NXP PN80T/PN81A support
libese support for the PN80T series of embedded secure elements is implemented using a common set of shared hardware functions and communication specific behavior.
The common behavior is found in "common.h". Support for using Linux spidev іs in "linux_spidev.c", and support for using a simple nq-nci associated kernel driver is in "nq_nci.c".
Implementing a new backend
When implementing a new backend, the required header is:
#include "../include/ese/hw/nxp/pn80t/common.h"
Once included, the implementation must provide its own receive and transmit libese-hw functions and a struct Pn80tPlatform, defined in "../include/ese/hw/nxp/pn80t/platform.h".
Platform requires a dedicated initialize, release, wait functions as well support for controlling NFC_VEN, SVDD_PWR_REQ, and reset.
See the bottom of the other implementations for an example of the required exports.
Any other functionality, such as libese-sysdeps, may also need to be provided separately.