Working example application and library for the popular PN532 NFC module on the mbed platform.
You might need to modify platformio.ini file to match your board.
The library was ported from Seeed-Studio's version: https://github.com/Seeed-Studio/PN532.