How stm32duino/m24sr64-y works
This Arduino library builds, reads, and writes NDEF messages through the M24SR64-Y NFC/RFID tag IC over I2C. The principal workflow is sketch/API use → message and record construction → generic NDEF serialization → M24SR-specific tag operations → chip command and I2C handling; reads travel back through the tag abstraction. Record classes cover the documented text, URI, mail, SMS, MIME, and Android application records, plus Geo, vCard, and Wi-Fi records. Source excerpts are partial, so only documented or indexed relationships are shown.
Main entry points: Message.cpp NDEF Message · RecordURI.h URI Record · NDefNfcTagM24SR.h M24SR Tag Adapter · M24SR.cpp M24SR Commands
Components 20
Library API
- Tag API
src/M24SR.h
NDEF Messages
- Generic Tag
src/NDefNfcTag.h - NDEF Message
src/Message.cpp
Record Types
- Record Base
src/Record.h - Record Header
src/RecordHeader.h - Text Record
src/RecordText.h - URI Record
src/RecordURI.h - Android App Record
src/RecordAAR.h - MIME Record
src/RecordMimeType.h - Mail Record
src/RecordMail.h - SMS Record
src/RecordSMS.h - Geo Record
src/RecordGeo.h - vCard Record
src/RecordVCard.h - Wi-Fi Record
src/RecordWifiConf.h
M24SR Device
- M24SR Tag Adapter
src/NDefNfcTagM24SR.h - M24SR Commands
src/M24SR.cpp - Command Definitions
src/m24sr_def.h - NFC Interface
src/Nfc.h
Other components
- Arduino Sketch
- M24SR64-Y
Connections 18
- Arduino Sketch → Tag API: calls API
README.md - Tag API → M24SR Tag Adapter: creates adapter
src/M24SR.cpp - M24SR Tag Adapter → Generic Tag: implements
src/NDefNfcTagM24SR.h - Generic Tag → NDEF Message: serializes
src/NDefNfcTag.h - NDEF Message → Record Base: uses records
src/Message.cpp - Record Base → Record Header: stores header
src/Record.h - NDEF Message → Text Record: constructs
src/Message.cpp - NDEF Message → Android App Record: constructs
src/Message.cpp - NDEF Message → MIME Record: constructs
src/Message.cpp - NDEF Message → URI Record: constructs
src/Message.cpp - Mail Record → URI Record: specializes
src/RecordMail.h - SMS Record → URI Record: specializes
src/RecordSMS.h - Geo Record → URI Record: specializes
src/RecordGeo.h - vCard Record → MIME Record: specializes
src/RecordVCard.h - M24SR Commands → Command Definitions: uses commands
src/M24SR.cpp - Command Definitions → NFC Interface: uses interface
src/m24sr_def.h - M24SR Tag Adapter → M24SR Commands: delegates I/O
src/M24SR.cpp - M24SR Commands → M24SR64-Y: reads and writes