33 pinNet.Add(&_analogPin);
36 avr_error(
"Cannot open Analog input file '%s'.", fileName);
40 for(
unsigned i = 0; i < 2; ++i){
41 while(f.getline(buffer, len)){
48 f.seekg (0, std::ios::beg);
54 char lineBuffer[1024];
61 unsigned long delayInNs = strtoul(p, &p, 0);
62 int analogValue = (int)strtol(p, &p, 0);
63 if(analogValue > 5000000)
65 analogValue = 5000000;
68 *timeToNextStepIn_ns = delayInNs;
int Step(bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0)
Return nonzero if a breakpoint was hit.
void setAnalogValue(float value)
Set the analog value and propagte through Net.
long long SystemClockOffset
std::ifstream _anaFile
The analog input file.
AdcPin(const char *fileName, Net &pinNet)
char * readNextLine(std::ifstream &f, char *buffer, unsigned len, SystemClockOffset *timeToNextStepIn_ns)
AdcAnalogPin _analogPin
Output to AVR.
Connect Pins to each other and transfers a output change from a pin to input values for all pins...