Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

PN512TransportDriver Class Reference

PN512TransportDriver Class Reference

The PN512 supports multiple transport mechanisms (SPI, I2C, UART): this class provides a unified API across these transports. More...

#include <PN512TransportDriver.h>

Inherited by PN512SPITransportDriver.

Data Structures

struct  Delegate
 The PN512TransportDriver delegate. More...

Public Member Functions

 PN512TransportDriver ()
 Create a PN512TransportDriver instance.
virtual ~PN512TransportDriver ()
 PN512TransportDriver destructor.
virtual void initialize ()=0
 Initialize transport driver and perform a chip reset.
virtual nfc_transport_t * get_transport ()=0
 Retrieve the nfc_transport_t struct for the stack to use.
void set_delegate (Delegate *delegate)
 Set this instance's delegate.

Protected Member Functions

void hw_interrupt ()
 An implementation must call this function (can be called from interrupt context) when the PN512 asserts its interrupt line.

Detailed Description

The PN512 supports multiple transport mechanisms (SPI, I2C, UART): this class provides a unified API across these transports.

Definition at line 29 of file PN512TransportDriver.h.


Constructor & Destructor Documentation

Create a PN512TransportDriver instance.

Definition at line 22 of file PN512TransportDriver.cpp.

~PN512TransportDriver (  ) [virtual]

PN512TransportDriver destructor.

Definition at line 27 of file PN512TransportDriver.cpp.


Member Function Documentation

virtual nfc_transport_t* get_transport (  ) [pure virtual]

Retrieve the nfc_transport_t struct for the stack to use.

Returns:
a pointer to a nfc_transport_t struct
void hw_interrupt (  ) [protected]

An implementation must call this function (can be called from interrupt context) when the PN512 asserts its interrupt line.

Definition at line 37 of file PN512TransportDriver.cpp.

virtual void initialize (  ) [pure virtual]

Initialize transport driver and perform a chip reset.

void set_delegate ( Delegate delegate )

Set this instance's delegate.

Parameters:
[in]delegatethe delegate instance to use

Definition at line 32 of file PN512TransportDriver.cpp.