2020-12-08 00:05:43 -08:00
|
|
|
#pragma once
|
|
|
|
|
2020-12-08 23:23:02 -08:00
|
|
|
#include <cstdint>
|
|
|
|
|
2021-02-19 23:11:39 -08:00
|
|
|
struct TsChannelBase;
|
2020-12-08 00:05:43 -08:00
|
|
|
|
|
|
|
class TunerStudioBase {
|
|
|
|
public:
|
2021-02-19 23:11:39 -08:00
|
|
|
int handleCrcCommand(TsChannelBase* tsChannel, char *data, int incomingPacketSize);
|
2020-12-08 23:23:02 -08:00
|
|
|
|
|
|
|
protected:
|
2021-02-19 23:11:39 -08:00
|
|
|
virtual void cmdOutputChannels(TsChannelBase* tsChannel, uint16_t offset, uint16_t count) = 0;
|
2020-12-08 23:23:02 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
class TunerStudio : public TunerStudioBase {
|
|
|
|
public:
|
2021-02-19 23:11:39 -08:00
|
|
|
void cmdOutputChannels(TsChannelBase* tsChannel, uint16_t offset, uint16_t count) override;
|
2020-12-08 23:23:02 -08:00
|
|
|
|
|
|
|
private:
|
2021-02-19 23:11:39 -08:00
|
|
|
void sendErrorCode(TsChannelBase* tsChannel, uint8_t code);
|
2020-12-08 00:05:43 -08:00
|
|
|
};
|