00001 #ifndef _spisrch_ 00002 #define _spisrch_ 00003 #include <fstream> 00004 #include "avrdevice.h" 00005 00008 class SpiSource : public SimulationMember { 00009 private: 00010 Pin _ss; // Output to AVR 00011 Pin _sclk; // Output to AVR 00012 Pin _mosi; // Output to AVR 00013 std::ifstream _spiFile; 00014 public: 00015 SpiSource( const char* fileName, 00016 Net& ssNet, 00017 Net& sclkNet, 00018 Net& mosiNet 00019 ) throw(); 00020 private: // SimulationMember 00021 int Step(bool &trueHwStep, SystemClockOffset *timeToNextStepIn_ns=0); 00022 }; 00023 00024 00025 #endif