svd2cpp/Src/DeviceInfo.hpp

22 lines
525 B
C++
Raw Normal View History

2019-11-15 10:10:52 +00:00
#ifndef DEVICE_INFO
#define DEVICE_INFO
#include <iostream>
struct DeviceInfo{
std::string schemaVersion;
std::string name;
std::string version;
unsigned int resetValue;
void printDeviceInfo() const{
std::cout << "schemaVersion " << schemaVersion << std::endl
<< "name " << name << std::endl
<< "version " << version << std::endl
<< "resetValue 0x" << std::hex << resetValue << std::dec << std::endl;
}
};
#endif