Move nfc_tag_type_t to NFCDefinitions.h

pull/7822/head
Donatien Garnier 2018-08-03 18:03:26 +01:00
parent 04304e0ec0
commit 18b2bb37ce
3 changed files with 13 additions and 9 deletions

View File

@ -22,6 +22,8 @@
#include "nfc/NFCControllerDriver.h"
namespace mbed {
namespace nfc {
struct PN512TransportDriver;
class PN512Driver : NFCControllerDriver {
public:
@ -33,6 +35,8 @@ namespace mbed {
pn512_t _pn512;
};
} // namespace nfc
} // namespace mbed
#endif

View File

@ -41,6 +41,15 @@ namespace nfc {
uint8_t target_t5t : 1;
};
enum nfc_tag_type_t {
nfc_tag_type_1,
nfc_tag_type_2,
nfc_tag_type_3,
nfc_tag_type_4a,
nfc_tag_type_4b,
nfc_tag_type_5
};
} // namespace nfc
} // namespace mbed

View File

@ -40,15 +40,6 @@ namespace nfc {
void set_delegate(Delegate* delegate);
enum nfc_tag_type_t {
nfc_tag_type_1,
nfc_tag_type_2,
nfc_tag_type_3,
nfc_tag_type_4a,
nfc_tag_type_4b,
nfc_tag_type_5
};
nfc_tag_type_t nfc_tag_type() const;
bool is_iso7816_supported() const;
void add_iso7816_application(ISO7816App* application);