ti bisogna il phaserunner

Dependencies:   mbed PID mbed-rtos

Committer:
beacon
Date:
Tue Jun 04 19:03:39 2019 +0000
Revision:
11:39bd79605827
Parent:
7:15e6fc689368
ti bisogna il phaserunner

Who changed what in which revision?

UserRevisionLine numberNew contents of line
EpicG10 7:15e6fc689368 1 /**
EpicG10 7:15e6fc689368 2 * Kommunikationsweg zum NFC-Leser im Handyhalter.
EpicG10 7:15e6fc689368 3 * Kennt alle UID der zugelassenen Benutzer.
EpicG10 7:15e6fc689368 4 */
EpicG10 7:15e6fc689368 5
EpicG10 7:15e6fc689368 6 #ifndef NFC_H
EpicG10 7:15e6fc689368 7 #define NFC_H
EpicG10 7:15e6fc689368 8
EpicG10 7:15e6fc689368 9 #include "mbed.h"
EpicG10 7:15e6fc689368 10 #include "rtos.h"
EpicG10 7:15e6fc689368 11
EpicG10 7:15e6fc689368 12 class NFC{
EpicG10 7:15e6fc689368 13 private:
EpicG10 7:15e6fc689368 14 /**
EpicG10 7:15e6fc689368 15 * Findet heraus, ob die angeführte UID in der Liste ist.
EpicG10 7:15e6fc689368 16 * @return true := UID ist in der Liste; false := UID ist nicht in der Liste.
EpicG10 7:15e6fc689368 17 */
EpicG10 7:15e6fc689368 18 static bool compareUIDs(uint64_t UID);
EpicG10 7:15e6fc689368 19
EpicG10 7:15e6fc689368 20 public:
EpicG10 7:15e6fc689368 21 /**
EpicG10 7:15e6fc689368 22 * Überprüft, ob eine RFID vorhanden ist und ob sie auf der Whitelist ist.
EpicG10 7:15e6fc689368 23 * @return true := Eine RFID ist vorhanden und entspricht einer auf der Whitelist; false := sonst.
EpicG10 7:15e6fc689368 24 */
EpicG10 7:15e6fc689368 25 static bool getAccess();
EpicG10 7:15e6fc689368 26
EpicG10 7:15e6fc689368 27 /**
EpicG10 7:15e6fc689368 28 * Fügt die UID eines Users zur Whitelist hinzu.
EpicG10 7:15e6fc689368 29 * @param UID: UID des neuen Users
EpicG10 7:15e6fc689368 30 * @return true := Ein Fehler ist aufgtreten; false := der User wurde erfolgrech hinzugefügt
EpicG10 7:15e6fc689368 31 */
EpicG10 7:15e6fc689368 32 static bool addUser(uint64_t UID);
EpicG10 7:15e6fc689368 33 };
EpicG10 7:15e6fc689368 34
EpicG10 7:15e6fc689368 35 #endif //NFC_H
EpicG10 7:15e6fc689368 36