NSVD Reader  0.0.1
Interrupt.hpp
Go to the documentation of this file.
1 
5 /*
6  * These codes are licensed under CC0.
7  * http://creativecommons.org/publicdomain/zero/1.0/
8  */
9 #ifndef __NODAMUSHI_SVD_NORMALIZED_INTERRUPT_HPP__
10 #define __NODAMUSHI_SVD_NORMALIZED_INTERRUPT_HPP__
11 
12 # include <cstdint>
13 
14 namespace nodamushi{
15 namespace svd{
16 namespace normalized{
17 
23 template<typename STRREF>struct Interrupt
24 {
26  STRREF name;
28  STRREF description;
30  uint64_t value;
31 
33  template<typename T>
34  Interrupt(const T& src):
35  name(src.name.get("")),
36  description(src.description.get("")),
37  value(src.value.get(0)){}
38 };
39 
40 }}} // end namespace svd
41 
42 #endif // __NODAMUSHI_SVD_NORMALIZED_INTERRUPT_HPP__
STRREF name
<name> name of interrupt
Definition: Interrupt.hpp:26
uint64_t value
<value>interrupt index
Definition: Interrupt.hpp:30
This class reperesents SVD(xml) element / attribute.
Definition: value.hpp:53
normalized interrupt element
Definition: Interrupt.hpp:23