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>
26 lines
540 B
C++
26 lines
540 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
#include <limits.h>
|
|
#include <atomic>
|
|
#include "protocols/protocol_indala_40134.h"
|
|
|
|
class DecoderIndala {
|
|
public:
|
|
bool read(uint8_t* data, uint8_t data_size);
|
|
void process_front(bool polarity, uint32_t time);
|
|
|
|
void process_internal(bool polarity, uint32_t time, uint64_t* data);
|
|
|
|
DecoderIndala();
|
|
|
|
private:
|
|
void reset_state();
|
|
|
|
uint64_t raw_data;
|
|
uint64_t cursed_raw_data;
|
|
|
|
std::atomic<bool> ready;
|
|
std::atomic<bool> cursed_data_valid;
|
|
ProtocolIndala40134 indala;
|
|
};
|