Mbed OS Reference
Loading...
Searching...
No Matches
PN512Driver Class Reference
Inheritance diagram for PN512Driver:
NFCControllerDriver PN512TransportDriver::Delegate

Public Member Functions

virtual nfc_transceiver_tinitialize (nfc_scheduler_timer_t *scheduler_timer)
 Initialize the driver and retrieve the interface to the controller. More...
 
virtual void get_supported_nfc_techs (nfc_tech_t *initiator, nfc_tech_t *target) const
 Retrieve list of technologies supported by the controller. More...
 
void set_delegate (Delegate *delegate)
 Set this instance's delegate. More...
 

Protected Member Functions

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

Detailed Description

Definition at line 34 of file PN512Driver.h.

Member Function Documentation

◆ initialize()

virtual nfc_transceiver_t * initialize ( nfc_scheduler_timer_t *  scheduler_timer)
virtual

Initialize the driver and retrieve the interface to the controller.

Parameters
[in]scheduler_timera timer to initialize the controller's scheduler instance with
Returns
an initialized MicroNFC nfc_transceiver_t instance

Implements NFCControllerDriver.

◆ get_supported_nfc_techs()

virtual void get_supported_nfc_techs ( nfc_tech_t initiator,
nfc_tech_t target 
) const
virtual

Retrieve list of technologies supported by the controller.

Parameters
[out]initiatorbitmask of technologies supported when the controller is in initiator mode
[out]targetbitmask of technologies supported when the controller is in target mode

Implements NFCControllerDriver.

◆ set_delegate()

void set_delegate ( Delegate delegate)
inherited

Set this instance's delegate.

Parameters
[in]delegatethe delegate instance to use

◆ hw_interrupt()

void hw_interrupt ( )
protectedinherited

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