add missing constructor
fix comment
This commit is contained in:
Rotzbua
2017-03-25 15:18:58 +01:00
parent dc25caf783
commit e394dc17d9
2 changed files with 12 additions and 6 deletions

View File

@@ -1,11 +1,10 @@
/*
* MFRC522.cpp - Library to use ARDUINO RFID MODULE KIT 13.56 MHZ WITH TAGS SPI W AND R BY COOQROBOT.
* NOTE: Please also check the comments in MFRC522.h - they provide useful hints and background information.
* Released into the public domain.
* Library extends MFRC522.h to support RATS for ISO-14443-4 PICC.
* RATS - Request for Answer To Select.
* NOTE: Please also check the comments in MFRC522Extended.h
* @author JPG-Consulting
*/
#include <Arduino.h>
#include "MFRC522.h"
#include "MFRC522Extended.h"
/////////////////////////////////////////////////////////////////////////////////////

View File

@@ -74,10 +74,17 @@ public:
// Member variables
TagInfo tag;
/////////////////////////////////////////////////////////////////////////////////////
// Contructors
/////////////////////////////////////////////////////////////////////////////////////
MFRC522Extended() : MFRC522() {};
MFRC522Extended(uint8_t rst) : MFRC522(rst) {};
MFRC522Extended(uint8_t ss, uint8_t rst) : MFRC522(ss, rst) {};
/////////////////////////////////////////////////////////////////////////////////////
// Functions for communicating with PICCs
/////////////////////////////////////////////////////////////////////////////////////
StatusCode PICC_Select(Uid *uid, byte validBits = 0); // overwrite
StatusCode PICC_Select(Uid *uid, byte validBits = 0); // overwrite
StatusCode PICC_RequestATS(Ats *ats);
StatusCode PICC_PPS(); // PPS command without bitrate parameter
StatusCode PICC_PPS(TagBitRates sendBitRate, TagBitRates receiveBitRate); // Different D values