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: mbed PID mbed-rtos
NFC.h
00001 /** 00002 * Kommunikationsweg zum NFC-Leser im Handyhalter. 00003 * Kennt alle UID der zugelassenen Benutzer. 00004 */ 00005 00006 #ifndef NFC_H 00007 #define NFC_H 00008 00009 #include "mbed.h" 00010 #include "rtos.h" 00011 00012 class NFC{ 00013 private: 00014 /** 00015 * Findet heraus, ob die angeführte UID in der Liste ist. 00016 * @return true := UID ist in der Liste; false := UID ist nicht in der Liste. 00017 */ 00018 static bool compareUIDs(uint64_t UID); 00019 00020 public: 00021 /** 00022 * Überprüft, ob eine RFID vorhanden ist und ob sie auf der Whitelist ist. 00023 * @return true := Eine RFID ist vorhanden und entspricht einer auf der Whitelist; false := sonst. 00024 */ 00025 static bool getAccess(); 00026 00027 /** 00028 * Fügt die UID eines Users zur Whitelist hinzu. 00029 * @param UID: UID des neuen Users 00030 * @return true := Ein Fehler ist aufgtreten; false := der User wurde erfolgrech hinzugefügt 00031 */ 00032 static bool addUser(uint64_t UID); 00033 }; 00034 00035 #endif //NFC_H 00036
Generated on Mon Aug 1 2022 09:49:43 by
