Raw, test and tune

This commit is contained in:
2023-10-16 11:11:23 +03:00
parent e812f97f37
commit 352835b6f5
3 changed files with 26 additions and 7 deletions

View File

@ -39,7 +39,7 @@ public:
//////////////////////////////////////////////////////////////////////////
class InputData : protected IR_FOX {
class InputData : protected IR_FOX {
friend IR_Decoder;
protected:
bool _isAvaliable = false;
@ -131,10 +131,27 @@ public:
}
};
class RawTune {
friend IR_Decoder;
private:
bool _isAvaliable = false;
uint16_t _tune;
public:
bool avaliable() { return _isAvaliable; };
uint16_t getTune() { return _tune; };
void resetAvaliable() { _isAvaliable = false; };
private:
void _set(uint16_t val) {
_tune = val;
_isAvaliable = true;
}
};
Data gotData;
RawData gotRawData;
Accept gotAccept;
Request gotRequest;
RawTune gotTune;
private: