Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF51_Vdd TextLCD BME280
PN512Driver.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2018 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef MBED_PN512_DRIVER_H 00018 #define MBED_PN512_DRIVER_H 00019 00020 #include <stdint.h> 00021 00022 #include "nfc/NFCControllerDriver.h" 00023 #include "PN512TransportDriver.h" 00024 00025 #include "nfc/acore/acore/ac_buffer.h" 00026 #include "nfc/acore/acore/ac_buffer_reader.h" 00027 #include "nfc/acore/acore/ac_buffer_builder.h" 00028 #include "nfc/stack/transceiver/pn512/pn512.h" 00029 00030 namespace mbed { 00031 namespace nfc { 00032 00033 class PN512Driver : public NFCControllerDriver, private PN512TransportDriver::Delegate { 00034 public: 00035 PN512Driver(PN512TransportDriver *transport_driver); 00036 00037 virtual nfc_transceiver_t *initialize(nfc_scheduler_timer_t *scheduler_timer); 00038 virtual void get_supported_nfc_techs(nfc_tech_t *initiator, nfc_tech_t *target) const; 00039 00040 private: 00041 // PN512TransportDriver::Delegate implementation 00042 virtual void on_hw_interrupt(); 00043 00044 PN512TransportDriver *_transport_driver; 00045 pn512_t _pn512; 00046 }; 00047 00048 } // namespace nfc 00049 } // namespace mbed 00050 00051 #endif
Generated on Tue Jul 12 2022 15:15:56 by
