Use slightly more unique data name

This commit is contained in:
zvecr 2022-03-31 23:31:01 +01:00
parent 2c8c9c9928
commit e111b9d017
3 changed files with 3 additions and 3 deletions

View File

@ -3,6 +3,6 @@
{%- for type, definition in xap.term_definitions | dictsort %}
| _{{ type }}_ | {{ definition }} |
{%- endfor %}
{%- for type, definition in xap.types | dictsort %}
{%- for type, definition in xap.type_definitions | dictsort %}
| _{{ definition.name }}_ | {{ definition.description }}{% if 'struct' == definition.type %} Takes the format:{% for item in definition.struct_members %}<br>`{{ item.type }}` - {{ item.name }}{%- endfor %}{% endif %} |
{%- endfor %}

View File

@ -119,7 +119,7 @@
'''
}
types: {
type_definitions: {
identifier: {
name: ID
description: A single octet / 8-bit byte, representing Subsystem or Route index.

View File

@ -126,7 +126,7 @@ def _append_types(lines, container):
lines.append('')
additional_types = {}
types = container.get('types', {})
types = container.get('type_definitions', {})
for key, value in types.items():
data_type = _get_c_type(value['type'])
additional_types[key] = f'xap_{key}_t'