10 #ifndef __NODAMUSHI_SVD_NORMALIZED_FIELD_HPP__ 11 #define __NODAMUSHI_SVD_NORMALIZED_FIELD_HPP__ 32 template<
typename STRREF>
struct Field 125 return bit.
get(p->get_resetValue() & p->get_resetMask());
136 template<
typename STR>
139 const size_t ps = p.size();
169 if(n.svd.derivedFrom)
171 for(
const auto& c:n.enumeratedValues)
186 namespace nv = ::nodamushi::visitor;
190 if(ret == r::BREAK)
return ret;
198 #endif // __NODAMUSHI_SVD_NORMALIZED_FIELD_HPP__ node_ptr< Register const > get_parent() const noexcept
get parent register pointer
std::shared_ptr< T > node_ptr
node_ptr< Peripheral > get_peripheral() noexcept
find the Peripheral to which this field belongs.
dim_info dim
dimemtion information object.
helper for copy derivedFrom element
#define __NORMALIZED_DERIVED_FROM(name)
__NORMALIZED_DERIVED_FROM(name)
__NX_NORM_HANDLE_VISIT(Enumeration)
Define <readAction> enum.
uint64_t get(uint64_t v)
get the bit number of bit-range.
node_ptr< Enumeration > find(const ::nodamushi::svd::path< STR > &p, size_t pindex=0)
find path element
STRREF description
description
parent_ptr< Register > p_ptr
ReadAction get_readAction() const
resolve the value of readAction and return it.
const std::string & string_ref
nullable< ReadAction > readAction
<readAction>
constexpr unsigned int lsb() const noexcept
container class decralation
nullable< ModifiedWriteValues > modifiedWriteValues
<modifiedWriteValues>
path< STRREF > derivedFrom
derivedFrom Path
list< Enumeration > enumeratedValues
<enumeratedValues> list Enumeration class does not prohibit copying, but basically it should be treat...
node_ptr< Peripheral const > get_peripheral() const noexcept
find the Peripheral to which this field belongs.
std::weak_ptr< Parent > parent_ptr
unsigned int msb() const
get msb bit index.
uint64_t get_resetValue()
get reset value
node_ptr< Register > get_parent() noexcept
get parent register pointer
T get(T defaultValue) const noexcept
constexpr unsigned int msb() const noexcept
unsigned int lsb() const
get lsb bit index.
Access
Read/Write Access type enum.<access> Read-Write/Read-Only/Write-Only/Write-Once/Read- Write Once.
dim,dimIndex,array information object.
ModifiedWriteValues get_modifiedWriteValues() const
resolve the value of modifiedWriteValues and return it.
Access get_access() const
resolve the value of access and return it.
nullable< Access > access
<access> type.
normalized peripheral element
std::string name
name of this field
Define <modifiedWriteValues> enum.
node_ptr< Peripheral< STRREF > > find_parent_peripheral(O< STRREF > &o)
ReadAction
<register>.<readAction> enum
void update_parent(p_ptr &new_parent, node_ptr< this_t > &me)
normalized <enumeratedValues> element. iterable
constexpr void * get_parent2() const noexcept
allways return nullptr