mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2025-01-09 03:08:47 +00:00
acc39a4bc0
* Api Symbols: replace asserts with checks * Api Symbols: replace asserts with checks part 2 * Update no args function signatures with void, to help compiler to track incorrect usage * More unavoidable void * Update PVS config and code to make it happy * Format sources * nfc: fix checks * dead code cleanup & include fixes Co-authored-by: gornekich <n.gorbadey@gmail.com> Co-authored-by: hedger <hedger@users.noreply.github.com> Co-authored-by: hedger <hedger@nanode.su>
28 lines
690 B
C++
28 lines
690 B
C++
#pragma once
|
|
|
|
class WIEGAND {
|
|
public:
|
|
WIEGAND(void);
|
|
void begin(void);
|
|
void end(void);
|
|
bool available(void);
|
|
unsigned long getCode(void);
|
|
unsigned long getCodeHigh(void);
|
|
int getWiegandType(void);
|
|
|
|
static void ReadD0(void);
|
|
static void ReadD1(void);
|
|
|
|
private:
|
|
static bool DoWiegandConversion(void);
|
|
static unsigned long
|
|
GetCardId(unsigned long* codehigh, unsigned long* codelow, char bitlength);
|
|
|
|
static unsigned long _cardTempHigh;
|
|
static unsigned long _cardTemp;
|
|
static unsigned long _lastWiegand;
|
|
static int _bitCount;
|
|
static int _wiegandType;
|
|
static unsigned long _code;
|
|
static unsigned long _codeHigh;
|
|
};
|