4d6b170769
* Fixing compiler warnings with -Wextra * More warnings suppression, WIP * Even more warning fixes * Added new lines at end of text files. * Padding fix * Additional fixes to warnings on different build configurations; added -Wextra to default build pipeline * Fixes for Secplus v1 * -additional warnings * +-Wredundant-decls fixes * FuriHal: print stack overflow task name in console * FuriHal: add missing include Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
31 lines
721 B
C++
31 lines
721 B
C++
#pragma once
|
|
|
|
class WIEGAND {
|
|
public:
|
|
WIEGAND();
|
|
void begin();
|
|
void end();
|
|
bool available();
|
|
unsigned long getCode();
|
|
unsigned long getCodeHigh();
|
|
int getWiegandType();
|
|
|
|
static void ReadD0();
|
|
static void ReadD1();
|
|
|
|
private:
|
|
static bool DoWiegandConversion();
|
|
static unsigned long GetCardId(
|
|
volatile unsigned long* codehigh,
|
|
volatile unsigned long* codelow,
|
|
char bitlength);
|
|
|
|
static volatile unsigned long _cardTempHigh;
|
|
static volatile unsigned long _cardTemp;
|
|
static volatile unsigned long _lastWiegand;
|
|
static volatile int _bitCount;
|
|
static int _wiegandType;
|
|
static unsigned long _code;
|
|
static unsigned long _codeHigh;
|
|
};
|