|
NSVD Reader
0.0.1
|
#include <node_container.hpp>
Public Types | |
| using | Field = ::nodamushi::svd::normalized::Field< STRREF > |
| using | Cluster = ::nodamushi::svd::normalized::Cluster< STRREF > |
| using | Peripheral = ::nodamushi::svd::normalized::Peripheral< STRREF > |
| using | this_t = Register< STRREF > |
| using | p_ptr = parent_ptr< Peripheral > |
| using | p2_ptr = parent_ptr< Cluster > |
Public Member Functions | |
| std::string | get_name_with_appendix () const noexcept |
| get name with peripheral.prependToName and peripheral.appendToName More... | |
| node_ptr< Peripheral > | get_parent () noexcept |
| get parent cluster pointer More... | |
| node_ptr< Peripheral const > | get_parent () const noexcept |
| node_ptr< Cluster > | get_parent2 () noexcept |
| get parent cluster pointer More... | |
| node_ptr< Cluster const > | get_parent2 () const noexcept |
| parent cluster pointer or nullptr. More... | |
| node_ptr< Peripheral const > | get_peripheral () const noexcept |
| find the Peripheral to which this register belongs. More... | |
| node_ptr< Peripheral > | get_peripheral () noexcept |
| find the Peripheral to which this register 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 More... | |
| ::nodamushi::svd::path | get_path () const |
| get path More... | |
| DataType | get_dataType () const |
| resolve the dataType. The default type is determined by the size.(size=8 : uint8_t,size=32: uint32_t) 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... | |
| ModifiedWriteValues | get_modifiedWriteValues () const |
| resolve the value of modifiedWriteValues and return it. More... | |
| ReadAction | get_readAction () const |
| template<typename STR > | |
| node_ptr< void > | find (const ::nodamushi::svd::path< STR > &p, size_t pindex=0) |
| find path element More... | |
| template<typename STR > | |
| node_ptr< Field > | find_field (::nodamushi::svd::path< STR > &p, size_t pindex=0) |
| find field element More... | |
| template<typename T > | |
| Register (const T &n) | |
| void | update_parent (p_ptr &new_parent, node_ptr< this_t > &me) |
| void | update_parent (p2_ptr &new_parent, node_ptr< this_t > &me) |
Public Attributes | |
| path< STRREF > | derivedFrom |
| derivedFrom attribute More... | |
| std::string | name |
| <name> of this register without peripheral.prependToName and peripheral.appendToName More... | |
| std::string | displayName |
| <displayName> More... | |
| dim_info | dim |
| dimemsion information object. More... | |
| STRREF | description |
| <description> More... | |
| STRREF | alternateGroup |
| <alternateGroup> More... | |
| STRREF | alternateRegister |
| <alternateRegister> More... | |
| uint64_t | addressOffset |
| <addressOffset> More... | |
| nullable< uint32_t > | size |
| <size> More... | |
| nullable< Access > | access |
| <access> More... | |
| nullable< Protection > | protection |
| <protection> More... | |
| nullable< uint64_t > | resetValue |
| <resetValue> More... | |
| nullable< uint64_t > | resetMask |
| <resetMask> More... | |
| nullable< DataType > | dataType |
| <dataType> More... | |
| ModifiedWriteValues | modifiedWriteValues |
| <modifiedWriteValues> More... | |
| ReadAction | readAction |
| <readAction> More... | |
| WriteConstraint | writeConstraint |
| <writeConstraint> More... | |
| list< Field > | fields |
| <field> elements list. This list is sorted by lsb of field. Field class does not prohibit copying, but basically it should be treated with a reference. More... | |
Definition at line 51 of file node_container.hpp.
| using nodamushi::svd::normalized::Register< STRREF >::Cluster = ::nodamushi::svd::normalized::Cluster<STRREF> |
Definition at line 32 of file Register.hpp.
| using nodamushi::svd::normalized::Register< STRREF >::Field = ::nodamushi::svd::normalized::Field<STRREF> |
Definition at line 31 of file Register.hpp.
| using nodamushi::svd::normalized::Register< STRREF >::p2_ptr = parent_ptr<Cluster> |
Definition at line 36 of file Register.hpp.
| using nodamushi::svd::normalized::Register< STRREF >::p_ptr = parent_ptr<Peripheral> |
Definition at line 35 of file Register.hpp.
| using nodamushi::svd::normalized::Register< STRREF >::Peripheral = ::nodamushi::svd::normalized::Peripheral<STRREF> |
Definition at line 33 of file Register.hpp.
| using nodamushi::svd::normalized::Register< STRREF >::this_t = Register<STRREF> |
Definition at line 34 of file Register.hpp.
|
inline |
Definition at line 258 of file Register.hpp.
|
inline |
find path element
| p | path |
| pindex | the first index of serach path. default is 0. |
Definition at line 225 of file Register.hpp.
|
inline |
find field element
| p | path |
| pindex | the first index of serach path. default is 0. |
Definition at line 244 of file Register.hpp.
|
inline |
resolve the value of access and return it.
Definition at line 206 of file Register.hpp.
|
inline |
calculate an absolute address
Definition at line 177 of file Register.hpp.
|
inline |
a relative address from the baseAddress of the peripheral
Definition at line 179 of file Register.hpp.
|
inline |
resolve the dataType. The default type is determined by the size.(size=8 : uint8_t,size=32: uint32_t)
Definition at line 190 of file Register.hpp.
|
inline |
resolve the value of modifiedWriteValues and return it.
Definition at line 214 of file Register.hpp.
|
inlinenoexcept |
get name with peripheral.prependToName and peripheral.appendToName
Definition at line 120 of file Register.hpp.
|
inlinenoexcept |
get parent cluster pointer
Definition at line 160 of file Register.hpp.
|
inlinenoexcept |
Definition at line 162 of file Register.hpp.
|
inlinenoexcept |
get parent cluster pointer
Definition at line 169 of file Register.hpp.
|
inlinenoexcept |
parent cluster pointer or nullptr.
Definition at line 171 of file Register.hpp.
|
inline |
get path
Definition at line 180 of file Register.hpp.
|
inlinenoexcept |
find the Peripheral to which this register belongs.
Definition at line 173 of file Register.hpp.
|
inlinenoexcept |
find the Peripheral to which this register belongs.
Definition at line 175 of file Register.hpp.
|
inline |
resolve the value of protection and return it.
Definition at line 210 of file Register.hpp.
|
inline |
Definition at line 215 of file Register.hpp.
|
inline |
resolve the value of resetMask and return it.
Definition at line 202 of file Register.hpp.
|
inline |
resolve the value of resetValue and return it.
Definition at line 198 of file Register.hpp.
|
inline |
resolve the value of size and return it.
Definition at line 194 of file Register.hpp.
|
inline |
Definition at line 299 of file Register.hpp.
|
inline |
Definition at line 305 of file Register.hpp.
| nullable<Access> nodamushi::svd::normalized::Register< STRREF >::access |
| uint64_t nodamushi::svd::normalized::Register< STRREF >::addressOffset |
<addressOffset>
Definition at line 69 of file Register.hpp.
| STRREF nodamushi::svd::normalized::Register< STRREF >::alternateGroup |
<alternateGroup>
Definition at line 57 of file Register.hpp.
| STRREF nodamushi::svd::normalized::Register< STRREF >::alternateRegister |
<alternateRegister>
Definition at line 59 of file Register.hpp.
| nullable<DataType> nodamushi::svd::normalized::Register< STRREF >::dataType |
| path<STRREF> nodamushi::svd::normalized::Register< STRREF >::derivedFrom |
derivedFrom attribute
Definition at line 44 of file Register.hpp.
| STRREF nodamushi::svd::normalized::Register< STRREF >::description |
<description>
Definition at line 55 of file Register.hpp.
| dim_info nodamushi::svd::normalized::Register< STRREF >::dim |
dimemsion information object.
Definition at line 53 of file Register.hpp.
| std::string nodamushi::svd::normalized::Register< STRREF >::displayName |
<displayName>
Definition at line 51 of file Register.hpp.
| list<Field> nodamushi::svd::normalized::Register< STRREF >::fields |
<field> elements list. This list is sorted by lsb of field. Field class does not prohibit copying, but basically it should be treated with a reference.
Definition at line 114 of file Register.hpp.
| ModifiedWriteValues nodamushi::svd::normalized::Register< STRREF >::modifiedWriteValues |
<modifiedWriteValues>
Definition at line 101 of file Register.hpp.
| std::string nodamushi::svd::normalized::Register< STRREF >::name |
<name> of this register without peripheral.prependToName and peripheral.appendToName
Definition at line 49 of file Register.hpp.
| nullable<Protection> nodamushi::svd::normalized::Register< STRREF >::protection |
| ReadAction nodamushi::svd::normalized::Register< STRREF >::readAction |
<readAction>
Definition at line 103 of file Register.hpp.
| nullable<uint64_t> nodamushi::svd::normalized::Register< STRREF >::resetMask |
| nullable<uint64_t> nodamushi::svd::normalized::Register< STRREF >::resetValue |
| nullable<uint32_t> nodamushi::svd::normalized::Register< STRREF >::size |
| WriteConstraint nodamushi::svd::normalized::Register< STRREF >::writeConstraint |
<writeConstraint>
Definition at line 105 of file Register.hpp.