Library of Bus-Adapters
|
00001 #ifndef __VMEDummyDeviceIdentifier 00002 #define __VMEDummyDeviceIdentifier 00003 00004 #include <stdint.h> 00005 #include <string> 00006 #include <vector> 00007 #include "hal/BusAdapterException.hh" 00008 #include "hal/DeviceIdentifier.hh" 00009 #include "hal/VMEConstants.h" 00010 00011 namespace HAL { 00012 00013 class VMEDummyDeviceIdentifier : public DeviceIdentifier { 00014 public: 00015 VMEDummyDeviceIdentifier( uint32_t deviceNumber, 00016 std::vector<char *> memoryRegionPtr, 00017 std::vector<uint32_t> baseaddresses, 00018 std::vector<uint32_t> mapsizes, 00019 bool doSwapping ); 00020 00021 ~VMEDummyDeviceIdentifier(); 00022 00023 std::string printString() const ; 00024 00025 char* remap( uint32_t address )const 00026 throw( BusAdapterException ); 00027 00028 bool doSwapping() const; 00029 00030 private : 00031 uint32_t deviceNumber_; 00032 std::vector<char *> memoryRegionPtr_; 00033 std::vector<uint32_t> baseaddresses_; 00034 std::vector<uint32_t> mapsizes_; 00035 bool doSwapping_; 00036 }; 00037 00038 } /* namespace HAL */ 00039 00040 #endif /* __VMEDummyDeviceIdentifier */ 00041