Mistake on this page?
Report an issue in GitHub or email us
PN512Driver.h
1 /* mbed Microcontroller Library
2  * Copyright (c) 2018 ARM Limited
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MBED_PN512_DRIVER_H
18 #define MBED_PN512_DRIVER_H
19 
20 #include <stdint.h>
21 
22 #include "nfc/NFCControllerDriver.h"
23 #include "PN512TransportDriver.h"
24 
28 #include "nfc/stack/transceiver/pn512/pn512.h"
29 
30 namespace mbed {
31 namespace nfc {
32 
34 public:
35  PN512Driver(PN512TransportDriver *transport_driver);
36 
37  virtual nfc_transceiver_t *initialize(nfc_scheduler_timer_t *scheduler_timer);
38  virtual void get_supported_nfc_techs(nfc_tech_t *initiator, nfc_tech_t *target) const;
39 
40 private:
41  // PN512TransportDriver::Delegate implementation
42  virtual void on_hw_interrupt();
43 
44  PN512TransportDriver *_transport_driver;
45  pn512_t _pn512;
46 };
47 
48 } // namespace nfc
49 } // namespace mbed
50 
51 #endif
The abstraction for a NFC controller driver.
virtual nfc_transceiver_t * initialize(nfc_scheduler_timer_t *scheduler_timer)
Initialize the driver and retrieve the interface to the controller.
The PN512 supports multiple transport mechanisms (SPI, I2C, UART): this class provides a unified API ...
The PN512TransportDriver delegate.
virtual void get_supported_nfc_techs(nfc_tech_t *initiator, nfc_tech_t *target) const
Retrieve list of technologies supported by the controller.
Definition: AnalogIn.h:28
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.