nfc-tools / libnfc

Platform independent Near Field Communication (NFC) library
http://nfc-tools.org
GNU Lesser General Public License v3.0
1.68k stars 440 forks source link

Support for other chips/devices. #540

Open henri62 opened 5 years ago

henri62 commented 5 years ago

Please label as "Question" Does anyone have an idea if completely other chips can be supported by libnfc? I'm especially interested in the CR95HF transceiver (UART host interface), I want to make an estimation how much work it is to implement this IC in libnfc.

Is it even possible to do this? Are there any special features in the pn53x device so it prevents me to do it?

ildar commented 5 years ago

It's definitely possible. One incomplete example is https://github.com/nfc-tools/libnfc/pull/300 . There may be better examples around.

hdeveer commented 5 years ago

1) Can somebody explain the use of the chip v.s. drivers directory? It looks like the "chips" directory is badly named or should not exist at all? If I look into all sources it looks like there was made an attempt to separate the chip logic from the transport method (uart/i2c/usb etc), but incompletely done (like the acr122s).

2) The commonality between all drivers in in "struct nfc_driver". Is there an explanation what each function is supposed to do? Now it's a complete puzzle to find it out. I even have no clue if I don't have a severe hardware mismatch to implement another chip.

ildar commented 5 years ago

Guess you want to chat about it? Come to the #libnfc channel at freenode IRC