mirror of
https://github.com/Show-maket/IR-protocol.git
synced 2025-06-28 05:09:40 +00:00
Raw, test and tune
This commit is contained in:
19
IR_Decoder.h
19
IR_Decoder.h
@ -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:
|
||||
|
Reference in New Issue
Block a user