URL
https://opencores.org/ocsvn/w11/w11/trunk
Subversion Repositories w11
[/] [w11/] [tags/] [w11a_V0.74/] [tools/] [src/] [librlink/] [RlinkCommandList.hpp] - Rev 10
Go to most recent revision | Compare with Previous | Blame | View Log
// $Id: RlinkCommandList.hpp 375 2011-04-02 07:56:47Z mueller $ // // Copyright 2011- by Walter F.J. Mueller <W.F.J.Mueller@gsi.de> // // This program is free software; you may redistribute and/or modify it under // the terms of the GNU General Public License as published by the Free // Software Foundation, either version 2, or at your option any later version. // // 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 complete details. // // Revision History: // Date Rev Version Comment // 2011-03-05 366 1.0 Initial version // 2011-01-09 354 0.1 First draft // --------------------------------------------------------------------------- /*! \file \version $Id: RlinkCommandList.hpp 375 2011-04-02 07:56:47Z mueller $ \brief Declaration of class RlinkCommandList. */ #ifndef included_Retro_RlinkCommandList #define included_Retro_RlinkCommandList 1 #include <cstddef> #include <cstdint> #include <vector> #include <iostream> #include "RlinkCommandExpect.hpp" #include "RlinkCommand.hpp" #include "RlinkAddrMap.hpp" namespace Retro { class RlinkCommandList { public: RlinkCommandList(); RlinkCommandList(const RlinkCommandList&); ~RlinkCommandList(); size_t AddCommand(RlinkCommand* cmd); size_t AddCommand(const RlinkCommand& cmd); size_t AddCommand(const RlinkCommandList& clist); size_t AddRreg(uint16_t addr); size_t AddRblk(uint16_t addr, size_t size); size_t AddRblk(uint16_t addr, uint16_t* block, size_t size); size_t AddWreg(uint16_t addr, uint16_t data); size_t AddWblk(uint16_t addr, std::vector<uint16_t> block); size_t AddWblk(uint16_t addr, const uint16_t* block, size_t size); size_t AddStat(); size_t AddAttn(); size_t AddInit(uint16_t addr, uint16_t data); void LastVolatile(); void LastExpect(RlinkCommandExpect* exp); void Clear(); size_t Size() const; void Print(std::ostream& os, const RlinkAddrMap* pamap=0, size_t abase=16, size_t dbase=16, size_t sbase=16) const; void Dump(std::ostream& os, int ind=0, const char* text=0) const; RlinkCommandList& operator=(const RlinkCommandList& rhs); RlinkCommand& operator[](size_t ind); const RlinkCommand& operator[](size_t ind) const; protected: std::vector<RlinkCommand*> fList; //!< vector of commands }; std::ostream& operator<<(std::ostream& os, const RlinkCommandList& obj); } // end namespace Retro #if !(defined(Retro_NoInline) || defined(Retro_RlinkCommandList_NoInline)) #include "RlinkCommandList.ipp" #endif #endif
Go to most recent revision | Compare with Previous | Blame | View Log