mirror of
https://github.com/supleed2/svd2cpp.git
synced 2024-09-19 21:06:17 +00:00
22 lines
504 B
C++
22 lines
504 B
C++
#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
|