saleae-iec-analyser/source/C64SerialSimulationDataGene...

29 lines
784 B
C
Raw Normal View History

2019-06-18 21:48:54 +00:00
#ifndef C64SERIAL_SIMULATION_DATA_GENERATOR
#define C64SERIAL_SIMULATION_DATA_GENERATOR
#include <SimulationChannelDescriptor.h>
#include <string>
class C64SerialAnalyzerSettings;
class C64SerialSimulationDataGenerator
{
public:
C64SerialSimulationDataGenerator();
~C64SerialSimulationDataGenerator();
void Initialize( U32 simulation_sample_rate, C64SerialAnalyzerSettings* settings );
U32 GenerateSimulationData( U64 newest_sample_requested, U32 sample_rate, SimulationChannelDescriptor** simulation_channel );
protected:
C64SerialAnalyzerSettings* mSettings;
U32 mSimulationSampleRateHz;
protected:
void CreateSerialByte();
std::string mSerialText;
U32 mStringIndex;
SimulationChannelDescriptor mSerialSimulationData;
};
#endif //C64SERIAL_SIMULATION_DATA_GENERATOR