|
NSVD Reader
0.0.1
|
Namespaces | |
| details | |
| expat_handler | |
| normalized | |
| path_details | |
| reg_or_cluster_visit | |
Typedefs | |
| template<DataType t> | |
| using | datatype_t = typename data_type_type< t >::type |
| using | dim_type = uint64_t |
| using | dimInc_type = uint64_t |
| template<typename STR > | |
| using | dimName = STR |
| template<typename T , bool attribute, bool required, char... name> | |
| using | value_t = typename details::value_type_builder< T, attribute, required, name... >::type |
| using | hex64 = vattr< uint64_t, hex > |
| using | hex32 = vattr< uint32_t, hex > |
| using | hex16 = vattr< uint16_t, hex > |
| using | hex8 = vattr< uint8_t, hex > |
Functions | |
| template<typename SVD > | |
| bool | create (SVD &svd, AddressBlock &d) |
| build AddressBlock More... | |
| template<typename STR > | |
| ARMCPU | get_cpu_type (const STR &name) |
| get ARMCPU enum from text. More... | |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Registers< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Cluster< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, SAURegionsConfigRegion< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, SAURegionsConfig< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Cpu< STR > &d) |
| template<typename SVD , typename T > | |
| bool | create (SVD &svd, T &d) |
| create svd element More... | |
| template<typename SVD , typename STR , typename VendorExtensions > | |
| bool | create (SVD &svd, Device< STR, VendorExtensions > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, DimArrayIndex< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, EnumeratedValue< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Enumeration< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Field< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Fields< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Interrupt< STR > &d) |
| template<typename STRREF = std::string, typename STR , typename V > | |
| static ::nodamushi::svd::normalized::node_ptr<::nodamushi::svd::normalized::Device< STRREF > > | normalize (const ::nodamushi::svd::Device< STR, V > &d) |
| normalize nodamushi::svd::Device. More... | |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Peripheral< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Peripherals< STR > &d) |
| template<typename SVD , typename STR > | |
| bool | create (SVD &svd, Register< STR > &d) |
| template<typename T , bool attribute, bool required, char... name> | |
| std::ostream & | print_svd_value (std::ostream &o, const value< T, attribute, required, name... > &v, int indent, bool endline=false) |
| template<size_t INDENT_BASE = 2, char INDENT = ' '> | |
| std::string | get_indent (int s) |
| template<typename DST , typename SRC > | |
| bool | apply_value_setter (DST &dst, const SRC &src) |
| template<typename DST , typename SVD > | |
| auto | _value_try_set (DST &dst, SVD &src) -> typename std::enable_if< std::is_base_of< svd_node, DST >::value, bool >::type |
| template<typename DST , typename SVD > | |
| bool | value_try_set (DST &dst, SVD &src) |
| template<typename DST , typename SVD > | |
| bool | value_try_set (std::vector< DST > &dst, SVD &src) |
| template<typename DST , typename SVD > | |
| bool | value_try_set (std::vector< nodamushi::box< DST >> &dst, SVD &src) |
| template<typename DST , typename PTR , typename SVD > | |
| bool | value_try_set (::nodamushi::boxvec< DST, PTR > &dst, SVD &src) |
| template<typename DST , typename SVD > | |
| bool | value_try_set (nodamushi::box< DST > &dst, SVD &src) |
| template<typename SVD > | |
| bool | create (SVD &svd, WriteConstraintRange &d) |
| template<typename SVD > | |
| bool | create (SVD &svd, WriteConstraint &d) |
| using nodamushi::svd::datatype_t = typedef typename data_type_type<t>::type |
Definition at line 92 of file DataType.hpp.
| using nodamushi::svd::dim_type = typedef uint64_t |
<dim> value type
Definition at line 29 of file dim_type.hpp.
| using nodamushi::svd::dimInc_type = typedef uint64_t |
<dimIncrement> value type
Definition at line 34 of file dim_type.hpp.
| using nodamushi::svd::dimName = typedef STR |
<dimName> value type
Definition at line 40 of file dim_type.hpp.
| using nodamushi::svd::hex16 = typedef vattr<uint16_t,hex> |
| using nodamushi::svd::hex32 = typedef vattr<uint32_t,hex> |
| using nodamushi::svd::hex64 = typedef vattr<uint64_t,hex> |
| using nodamushi::svd::hex8 = typedef vattr<uint8_t,hex> |
| using nodamushi::svd::value_t = typedef typename details::value_type_builder<T,attribute,required,name...>::type |
Definition at line 61 of file define.hpp.
|
strong |
Read/Write Access type enum.<access> Read-Write/Read-Only/Write-Only/Write-Once/Read- Write Once.
| Enumerator | |
|---|---|
| READ_WRITE | read-write |
| READ_ONLY | read-only |
| WRITE_ONLY | write-only |
| WRITE_ONCE | writeOnce |
| READ_WRITE_ONCE | read-writeOnce |
Definition at line 26 of file Access.hpp.
|
strong |
<usage> of <addressBlock> enum.
| Enumerator | |
|---|---|
| UNDEFINED | undefined(default value) |
| RESERVED | reserved |
| REGISTERS | registers |
| BUFFER | buffer |
Definition at line 26 of file AddressBlockUsage.hpp.
|
strong |
Arm Core names.
Definition at line 19 of file ARMCPU.hpp.
|
strong |
register data type
Definition at line 28 of file DataType.hpp.
|
strong |
endianness of the processor
| Enumerator | |
|---|---|
| LITTLE | little endian |
| BIG | big endian |
| SELECTABLE | selectable |
| OTHER | other |
Definition at line 26 of file Endian.hpp.
|
strong |
enumeratedValues.usage element
| Enumerator | |
|---|---|
| READ_WRITE | read-write |
| READ | read |
| WRITE | write |
Definition at line 26 of file EnumUsage.hpp.
|
strong |
<register.modifiedWriteValues> enum
| Enumerator | |
|---|---|
| SET | set |
| ONE_TO_CLEAR | oneToClear |
| ONE_TO_SET | oneToSet |
| ONE_TO_TOGGLE | oneToToggle |
| ZERO_TO_CLEAR | zeroToClear |
| ZERO_TO_SET | zeroToSet |
| ZERO_TO_TOGGLE | zeroToToggle |
| CLEAR | clear |
| MODIFY | modify |
Definition at line 27 of file ModifiedWriteValues.hpp.
|
strong |
<protection> enum
| Enumerator | |
|---|---|
| NON_SECURE | n: non-secure |
| SECURE | s: secure |
| PRIVILEGED | p: privileged |
Definition at line 23 of file Protection.hpp.
|
strong |
<register>.<readAction> enum
| Enumerator | |
|---|---|
| NO_ACTION | default value.( <readAction> is not defined.) |
| CLEAR | clear |
| SET | set |
| MODIFY | modify |
| MODIFY_EXTERNAL | modifyExternal |
Definition at line 26 of file ReadAction.hpp.
| Enumerator | |
|---|---|
| NON_SECURE | n: non-secure |
| NON_SECURE | n: non-secure |
| SECURE_CALLABLE | c: secure callable |
Definition at line 26 of file SAURegionConfigProtect.hpp.
| auto nodamushi::svd::_value_try_set | ( | DST & | dst, |
| SVD & | src | ||
| ) | -> typename std::enable_if<std::is_base_of<svd_node,DST>::value, bool>::type |
Definition at line 37 of file value_setter.hpp.
| bool nodamushi::svd::apply_value_setter | ( | DST & | dst, |
| const SRC & | src | ||
| ) |
Definition at line 28 of file value_setter.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| T & | d | ||
| ) |
create svd element
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Interrupt< STR > & | d | ||
| ) |
Definition at line 39 of file Interrupt.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| DimArrayIndex< STR > & | d | ||
| ) |
Definition at line 43 of file DimArrayIndex.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| AddressBlock & | d | ||
| ) |
build AddressBlock
Definition at line 47 of file AddressBlock.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| WriteConstraintRange & | d | ||
| ) |
Definition at line 51 of file WriteConstraint.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| EnumeratedValue< STR > & | d | ||
| ) |
Definition at line 59 of file EnumeratedValue.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| WriteConstraint & | d | ||
| ) |
Definition at line 86 of file WriteConstraint.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Register< STR > & | d | ||
| ) |
Definition at line 95 of file Register.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Enumeration< STR > & | d | ||
| ) |
Definition at line 100 of file Enumeration.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Field< STR > & | d | ||
| ) |
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Peripheral< STR > & | d | ||
| ) |
Definition at line 138 of file Peripheral.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| SAURegionsConfigRegion< STR > & | d | ||
| ) |
| bool nodamushi::svd::create | ( | SVD & | svd, |
| SAURegionsConfig< STR > & | d | ||
| ) |
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Registers< STR > & | d | ||
| ) |
Definition at line 184 of file Cluster.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Cpu< STR > & | d | ||
| ) |
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Device< STR, VendorExtensions > & | d | ||
| ) |
Definition at line 195 of file Device.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Fields< STR > & | d | ||
| ) |
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Cluster< STR > & | d | ||
| ) |
Definition at line 230 of file Cluster.hpp.
| bool nodamushi::svd::create | ( | SVD & | svd, |
| Peripherals< STR > & | d | ||
| ) |
Definition at line 253 of file Peripheral.hpp.
| ARMCPU nodamushi::svd::get_cpu_type | ( | const STR & | name | ) |
get ARMCPU enum from text.
| name | CPU name. |
Definition at line 70 of file ARMCPU.hpp.
| std::string nodamushi::svd::get_indent | ( | int | s | ) |
Definition at line 48 of file svd_printer.hpp.
| static ::nodamushi::svd::normalized::node_ptr<::nodamushi::svd::normalized::Device<STRREF> > nodamushi::svd::normalize | ( | const ::nodamushi::svd::Device< STR, V > & | d | ) |
normalize nodamushi::svd::Device.
| d | nodamushi::svd::Device |
| STRREF | normalized text type.(nodamushi::svd::normalize::Device<STRREF>) The defauto type is std::string in C++14 and std::string_view in C++17. |
| STR | nodamushi::svd::Device<STR,V> |
| V | nodamushi::svd::Device<STR,V> |
Definition at line 831 of file normalizer.hpp.
| std::ostream& nodamushi::svd::print_svd_value | ( | std::ostream & | o, |
| const value< T, attribute, required, name... > & | v, | ||
| int | indent, | ||
| bool | endline = false |
||
| ) |
Definition at line 35 of file svd_printer.hpp.
| bool nodamushi::svd::value_try_set | ( | DST & | dst, |
| SVD & | src | ||
| ) |
Definition at line 51 of file value_setter.hpp.
| bool nodamushi::svd::value_try_set | ( | std::vector< DST > & | dst, |
| SVD & | src | ||
| ) |
Definition at line 57 of file value_setter.hpp.
| bool nodamushi::svd::value_try_set | ( | std::vector< nodamushi::box< DST >> & | dst, |
| SVD & | src | ||
| ) |
Definition at line 69 of file value_setter.hpp.
| bool nodamushi::svd::value_try_set | ( | ::nodamushi::boxvec< DST, PTR > & | dst, |
| SVD & | src | ||
| ) |
Definition at line 82 of file value_setter.hpp.
| bool nodamushi::svd::value_try_set | ( | nodamushi::box< DST > & | dst, |
| SVD & | src | ||
| ) |
Definition at line 94 of file value_setter.hpp.