18#ifndef MBED_PN512_SPI_TRANSPORT_DRIVER_H
19#define MBED_PN512_SPI_TRANSPORT_DRIVER_H
23#include "platform/platform.h"
25#include "PN512TransportDriver.h"
27#include "drivers/SPI.h"
28#include "drivers/DigitalOut.h"
29#include "drivers/InterruptIn.h"
39 virtual void initialize();
42 void transport_write(uint8_t address,
const uint8_t *outBuf,
size_t outLen);
43 void transport_read(uint8_t address, uint8_t *inBuf,
size_t inLen);
46 static void s_transport_write(uint8_t address,
const uint8_t *outBuf,
size_t outLen,
void *pUser);
47 static void s_transport_read(uint8_t address, uint8_t *inBuf,
size_t inLen,
void *pUser);
A digital output, used for setting the state of a pin.
A digital interrupt input, used to call a function on a rising or falling edge.
An SPI Master, used for communicating with SPI slave devices.
The PN512 supports multiple transport mechanisms (SPI, I2C, UART): this class provides a unified API ...