|
NSVD Reader
0.0.1
|
#include <Cluster.hpp>
Public Types | |
| using | this_t = Cluster< STRREF > |
| using | p_ptr = parent_ptr< Peripheral< STRREF > > |
| using | p2_ptr = parent_ptr< Cluster< STRREF > > |
| using | Register = ::nodamushi::svd::normalized::Register< STRREF > |
| using | Field = ::nodamushi::svd::normalized::Field< STRREF > |
| using | Peripheral = ::nodamushi::svd::normalized::Peripheral< STRREF > |
Public Member Functions | |
| node_ptr< Peripheral > | get_parent () noexcept |
| get parent peripheral pointer More... | |
| node_ptr< Cluster > | get_parent2 () noexcept |
| get parent cluster pointer More... | |
| node_ptr< Peripheral const > | get_parent () const noexcept |
| get parent peripheral pointer More... | |
| node_ptr< Cluster const > | get_parent2 () const noexcept |
| get parent cluster pointer More... | |
| node_ptr< Peripheral const > | get_peripheral () const noexcept |
| get the Peripheral to which this cluster belongs. More... | |
| node_ptr< Peripheral > | get_peripheral () noexcept |
| get the Peripheral to which this cluster belongs. More... | |
| uint64_t | get_address () const |
| calculate an absolute address. More... | |
| uint64_t | get_address_offset () const |
| a relative address from the baseAddress of the Peripheral to which this cluster belongs More... | |
| uint32_t | get_size () const |
| resolve the value of size and return it. More... | |
| uint64_t | get_resetValue () const |
| resolve the value of resetValue and return it. More... | |
| uint64_t | get_resetMask () const |
| resolve the value of resetMask and return it. More... | |
| Access | get_access () const |
| resolve the value of access and return it. More... | |
| Protection | get_protection () const |
| resolve the value of protection and return it. More... | |
| template<typename STR > | |
| node_ptr< void > | find (::nodamushi::svd::path< STR > &p, size_t pindex=0) |
| find path element More... | |
| template<typename STR > | |
| node_ptr< Cluster > | find_cluster (::nodamushi::svd::path< STR > &p, size_t pindex=0) |
| find cluster element More... | |
| template<typename STR > | |
| node_ptr< Register > | find_register (::nodamushi::svd::path< STR > &p, size_t pindex=0) |
| find register element More... | |
| template<typename STR > | |
| node_ptr< Field > | find_field (::nodamushi::svd::path< STR > &p, size_t pindex=0) |
| find field element More... | |
| ::nodamushi::svd::path | get_path () const |
| this cluster path More... | |
| template<typename T > | |
| Cluster (const T &n) | |
| This constructor is for normalizer. More... | |
| void | update_parent (p_ptr &new_parent, node_ptr< this_t > &me) |
| set the peripheral parent More... | |
| void | update_parent (p2_ptr &new_parent, node_ptr< this_t > &me) |
| set the cluster parent More... | |
Public Attributes | |
| path< STRREF > | derivedFrom |
| derivedFrom attribute More... | |
| std::string | name |
| <name> More... | |
| dim_info | dim |
| dimemsion information object. More... | |
| STRREF | description |
| <description> More... | |
| STRREF | alternateCluster |
| <alternateCluster> More... | |
| STRREF | headerStructName |
| <headerStructName> More... | |
| uint64_t | addressOffset |
| <addressOffset>. More... | |
| nullable< uint32_t > | size |
| <size> default bit-width of registers. More... | |
| nullable< Access > | access |
| <access> More... | |
| nullable< Protection > | protection |
| <protection> More... | |
| nullable< uint64_t > | resetValue |
| <resetValue> More... | |
| nullable< uint64_t > | resetMask |
| <resetMask> More... | |
| list< Cluster > | clusters |
| <cluster> elements list. This list is sorted by the addressOffset. More... | |
| list< Register > | registers |
| <register> elements list. This list is sorted by the addressOffset. More... | |
Definition at line 26 of file Cluster.hpp.
| using nodamushi::svd::normalized::Cluster< STRREF >::Field = ::nodamushi::svd::normalized::Field<STRREF> |
Definition at line 32 of file Cluster.hpp.
| using nodamushi::svd::normalized::Cluster< STRREF >::p2_ptr = parent_ptr<Cluster<STRREF> > |
Definition at line 30 of file Cluster.hpp.
| using nodamushi::svd::normalized::Cluster< STRREF >::p_ptr = parent_ptr<Peripheral<STRREF> > |
Definition at line 29 of file Cluster.hpp.
| using nodamushi::svd::normalized::Cluster< STRREF >::Peripheral = ::nodamushi::svd::normalized::Peripheral<STRREF> |
Definition at line 33 of file Cluster.hpp.
| using nodamushi::svd::normalized::Cluster< STRREF >::Register = ::nodamushi::svd::normalized::Register<STRREF> |
Definition at line 31 of file Cluster.hpp.
| using nodamushi::svd::normalized::Cluster< STRREF >::this_t = Cluster<STRREF> |
Definition at line 28 of file Cluster.hpp.
|
inline |
This constructor is for normalizer.
| T | pre normalized Cluster |
Definition at line 277 of file Cluster.hpp.
|
inline |
find path element
| p | path |
| pindex | the first index of serach path. default is 0. |
Definition at line 186 of file Cluster.hpp.
|
inline |
find cluster element
| p | path |
| pindex | the first index of serach path. default is 0. |
Definition at line 209 of file Cluster.hpp.
|
inline |
find field element
| p | path |
| pindex | the first index of serach path. default is 0. |
Definition at line 249 of file Cluster.hpp.
|
inline |
find register element
| p | path |
| pindex | the first index of serach path. default is 0. |
Definition at line 228 of file Cluster.hpp.
|
inline |
resolve the value of access and return it.
Definition at line 171 of file Cluster.hpp.
|
inline |
calculate an absolute address.
Definition at line 155 of file Cluster.hpp.
|
inline |
a relative address from the baseAddress of the Peripheral to which this cluster belongs
Definition at line 157 of file Cluster.hpp.
|
inlinenoexcept |
get parent peripheral pointer
Definition at line 125 of file Cluster.hpp.
|
inlinenoexcept |
get parent peripheral pointer
Definition at line 137 of file Cluster.hpp.
|
inlinenoexcept |
get parent cluster pointer
Definition at line 131 of file Cluster.hpp.
|
inlinenoexcept |
get parent cluster pointer
Definition at line 144 of file Cluster.hpp.
|
inline |
this cluster path
Definition at line 264 of file Cluster.hpp.
|
inlinenoexcept |
get the Peripheral to which this cluster belongs.
Definition at line 147 of file Cluster.hpp.
|
inlinenoexcept |
get the Peripheral to which this cluster belongs.
Definition at line 149 of file Cluster.hpp.
|
inline |
resolve the value of protection and return it.
Definition at line 175 of file Cluster.hpp.
|
inline |
resolve the value of resetMask and return it.
Definition at line 167 of file Cluster.hpp.
|
inline |
resolve the value of resetValue and return it.
Definition at line 163 of file Cluster.hpp.
|
inline |
resolve the value of size and return it.
Definition at line 159 of file Cluster.hpp.
|
inline |
set the peripheral parent
| new_parent | peripheral parent pointer |
| me | this instance pointer |
Definition at line 322 of file Cluster.hpp.
|
inline |
set the cluster parent
| new_parent | cluster parent pointer |
| me | this instance pointer |
Definition at line 335 of file Cluster.hpp.
| nullable<Access> nodamushi::svd::normalized::Cluster< STRREF >::access |
| uint64_t nodamushi::svd::normalized::Cluster< STRREF >::addressOffset |
<addressOffset>.
Definition at line 70 of file Cluster.hpp.
| STRREF nodamushi::svd::normalized::Cluster< STRREF >::alternateCluster |
<alternateCluster>
Definition at line 53 of file Cluster.hpp.
| list<Cluster> nodamushi::svd::normalized::Cluster< STRREF >::clusters |
<cluster> elements list. This list is sorted by the addressOffset.
Definition at line 107 of file Cluster.hpp.
| path<STRREF> nodamushi::svd::normalized::Cluster< STRREF >::derivedFrom |
derivedFrom attribute
Definition at line 43 of file Cluster.hpp.
| STRREF nodamushi::svd::normalized::Cluster< STRREF >::description |
<description>
Definition at line 49 of file Cluster.hpp.
| dim_info nodamushi::svd::normalized::Cluster< STRREF >::dim |
dimemsion information object.
Definition at line 47 of file Cluster.hpp.
| STRREF nodamushi::svd::normalized::Cluster< STRREF >::headerStructName |
<headerStructName>
Definition at line 55 of file Cluster.hpp.
| std::string nodamushi::svd::normalized::Cluster< STRREF >::name |
<name>
Definition at line 45 of file Cluster.hpp.
| nullable<Protection> nodamushi::svd::normalized::Cluster< STRREF >::protection |
| list<Register> nodamushi::svd::normalized::Cluster< STRREF >::registers |
<register> elements list. This list is sorted by the addressOffset.
Definition at line 118 of file Cluster.hpp.
| nullable<uint64_t> nodamushi::svd::normalized::Cluster< STRREF >::resetMask |
| nullable<uint64_t> nodamushi::svd::normalized::Cluster< STRREF >::resetValue |
| nullable<uint32_t> nodamushi::svd::normalized::Cluster< STRREF >::size |
<size> default bit-width of registers.
Definition at line 76 of file Cluster.hpp.