mirror of https://github.com/ARMmbed/mbed-os.git
Move nfc_tag_type_t to NFCDefinitions.h
parent
04304e0ec0
commit
18b2bb37ce
|
@ -22,6 +22,8 @@
|
||||||
#include "nfc/NFCControllerDriver.h"
|
#include "nfc/NFCControllerDriver.h"
|
||||||
|
|
||||||
namespace mbed {
|
namespace mbed {
|
||||||
|
namespace nfc {
|
||||||
|
|
||||||
struct PN512TransportDriver;
|
struct PN512TransportDriver;
|
||||||
class PN512Driver : NFCControllerDriver {
|
class PN512Driver : NFCControllerDriver {
|
||||||
public:
|
public:
|
||||||
|
@ -33,6 +35,8 @@ namespace mbed {
|
||||||
|
|
||||||
pn512_t _pn512;
|
pn512_t _pn512;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
} // namespace nfc
|
||||||
} // namespace mbed
|
} // namespace mbed
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -41,6 +41,15 @@ namespace nfc {
|
||||||
uint8_t target_t5t : 1;
|
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 nfc
|
||||||
} // namespace mbed
|
} // namespace mbed
|
||||||
|
|
||||||
|
|
|
@ -40,15 +40,6 @@ namespace nfc {
|
||||||
|
|
||||||
void set_delegate(Delegate* delegate);
|
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;
|
nfc_tag_type_t nfc_tag_type() const;
|
||||||
bool is_iso7816_supported() const;
|
bool is_iso7816_supported() const;
|
||||||
void add_iso7816_application(ISO7816App* application);
|
void add_iso7816_application(ISO7816App* application);
|
||||||
|
|
Loading…
Reference in New Issue