#include <ir_hasher.hpp>
Public Member Functions | |
Hasher (int gpio, HasherCB_t callback, int timeout=5) | |
Private Member Functions | |
void | _callback (int gpio, int level, uint32_t tick) |
void | _hash (int old_val, int new_val) |
Static Private Member Functions | |
static void | _callbackExt (int gpio, int level, uint32_t tick, void *user) |
Private Attributes | |
int | edges |
uint32_t | hash_val |
int | in_code |
HasherCB_t | mycallback |
int | mygpio |
int | mytimeout |
uint32_t | t1 |
uint32_t | t2 |
uint32_t | t3 |
uint32_t | t4 |
Definition at line 8 of file ir_hasher.hpp.
Hasher::Hasher | ( | int | gpio, |
HasherCB_t | callback, | ||
int | timeout = 5 |
||
) |
Definition at line 75 of file ir_hasher.cpp.
void Hasher::_callback | ( | int | gpio, |
int | level, | ||
uint32_t | tick | ||
) | [private] |
Definition at line 17 of file ir_hasher.cpp.
void Hasher::_callbackExt | ( | int | gpio, |
int | level, | ||
uint32_t | tick, | ||
void * | user | ||
) | [static, private] |
Definition at line 64 of file ir_hasher.cpp.
void Hasher::_hash | ( | int | old_val, |
int | new_val | ||
) | [private] |
Definition at line 5 of file ir_hasher.cpp.
int Hasher::edges [private] |
Definition at line 29 of file ir_hasher.hpp.
uint32_t Hasher::hash_val [private] |
Definition at line 28 of file ir_hasher.hpp.
int Hasher::in_code [private] |
Definition at line 27 of file ir_hasher.hpp.
HasherCB_t Hasher::mycallback [private] |
Definition at line 26 of file ir_hasher.hpp.
int Hasher::mygpio [private] |
Definition at line 25 of file ir_hasher.hpp.
int Hasher::mytimeout [private] |
Definition at line 25 of file ir_hasher.hpp.
uint32_t Hasher::t1 [private] |
Definition at line 30 of file ir_hasher.hpp.
uint32_t Hasher::t2 [private] |
Definition at line 30 of file ir_hasher.hpp.
uint32_t Hasher::t3 [private] |
Definition at line 30 of file ir_hasher.hpp.
uint32_t Hasher::t4 [private] |
Definition at line 30 of file ir_hasher.hpp.