61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
/*
|
|
* Author - Bertrand Songis <bsongis@gmail.com>
|
|
*
|
|
* Based on th9x -> http://code.google.com/p/th9x/
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef th9x_simulator_h
|
|
#define th9x_simulator_h
|
|
|
|
#include "simulatorinterface.h"
|
|
|
|
class RadioData;
|
|
class Th9xInterface;
|
|
|
|
class Th9xSimulator : public SimulatorInterface {
|
|
|
|
public:
|
|
|
|
Th9xSimulator(Th9xInterface *);
|
|
|
|
virtual void start(RadioData & radioData, bool tests);
|
|
|
|
virtual void stop();
|
|
|
|
virtual bool timer10ms();
|
|
|
|
virtual uint8_t * getLcd();
|
|
|
|
virtual bool lcdChanged(bool & lightEnable);
|
|
|
|
virtual void setValues(TxInputs &inputs);
|
|
|
|
virtual void getValues(TxOutputs &outputs);
|
|
|
|
virtual void setTrim(unsigned int idx, int value);
|
|
|
|
virtual void getTrims(Trims & trims);
|
|
|
|
virtual unsigned int getPhase() { return 0; }
|
|
|
|
virtual void wheelEvent(uint8_t steps) { }
|
|
|
|
virtual const char * getError();
|
|
|
|
protected:
|
|
|
|
Th9xInterface * th9xInterface;
|
|
};
|
|
|
|
#endif
|