#include <wiegand.hpp>
Public Member Functions | |
void | cancel (void) |
Wiegand (int gpio_0, int gpio_1, WiegandCB_t callback, int timeout=5) | |
Private Member Functions | |
void | _cb (int gpio, int level, uint32_t tick) |
Static Private Member Functions | |
static void | _cbEx (int gpio, int level, uint32_t tick, void *user) |
Private Attributes | |
int | bits |
uint32_t | code_timeout |
int | in_code |
WiegandCB_t | mycallback |
int | mygpio_0 |
int | mygpio_1 |
int | mytimeout |
uint32_t | num |
Definition at line 8 of file wiegand.hpp.
Wiegand::Wiegand | ( | int | gpio_0, |
int | gpio_1, | ||
WiegandCB_t | callback, | ||
int | timeout = 5 |
||
) |
Definition at line 5 of file wiegand.cpp.
void Wiegand::_cb | ( | int | gpio, |
int | level, | ||
uint32_t | tick | ||
) | [private] |
Definition at line 34 of file wiegand.cpp.
void Wiegand::_cbEx | ( | int | gpio, |
int | level, | ||
uint32_t | tick, | ||
void * | user | ||
) | [static, private] |
Definition at line 95 of file wiegand.cpp.
void Wiegand::cancel | ( | void | ) |
Definition at line 107 of file wiegand.cpp.
int Wiegand::bits [private] |
Definition at line 10 of file wiegand.hpp.
uint32_t Wiegand::code_timeout [private] |
Definition at line 16 of file wiegand.hpp.
int Wiegand::in_code [private] |
Definition at line 10 of file wiegand.hpp.
WiegandCB_t Wiegand::mycallback [private] |
Definition at line 12 of file wiegand.hpp.
int Wiegand::mygpio_0 [private] |
Definition at line 10 of file wiegand.hpp.
int Wiegand::mygpio_1 [private] |
Definition at line 10 of file wiegand.hpp.
int Wiegand::mytimeout [private] |
Definition at line 10 of file wiegand.hpp.
uint32_t Wiegand::num [private] |
Definition at line 14 of file wiegand.hpp.