LinuxI2cNciPacketIo
Linux I2C (/dev/i2c-*) + GPIO character device v2 (/dev/gpiochip*) implementation of NciPacketIo for NXP PN7160 / PN7150 NFC controllers (such as the NXP OM27160A1EVK board on Raspberry Pi 5).
Requires net.java.dev.jna:jna on the runtime classpath and read/write access to the configured /dev/i2c-* and /dev/gpiochip* device nodes (on Raspberry Pi OS, add the user to the i2c and gpio groups).
Parameters
Path to the Linux I2C controller character device (e.g. "/dev/i2c-1").
7-bit I2C target address of the NFC controller (e.g. 0x28 for NXP PN7160).
Path to the Linux GPIO chip character device (e.g. "/dev/gpiochip0").
GPIO line offset for the active-high IRQ pin (e.g. 23 on OM27160A1EVK).
GPIO line offset for the active-high VEN reset/enable pin (e.g. 24 on OM27160A1EVK).
Constructors
Properties
Functions
Closes the underlying transport, powers down the controller if applicable, and unblocks any pending readPacket call.
Reads the next complete NCI packet from the controller, or returns null if closed.
Performs a hardware power-cycle / reset of the NFC controller (for example, toggling the VEN GPIO pin low and then high).
Writes a complete NCI packet to the controller.