json field embedding

This commit is contained in:
Gwendolyn 2023-10-06 03:02:37 +02:00
parent f049499637
commit ba454ac99b
2 changed files with 19 additions and 4 deletions

View file

@ -45,7 +45,7 @@ class RangeItemType(StructType):
@dataclass
class FirmwareAppDescription(StructType, no_c_type=True):
class FirmwareAppDescription(StructType, existing_c_struct="esp_app_desc_t"):
magic_word: int = field(metadata={"format": SimpleFormat('I')}, repr=False)
secure_version: int = field(metadata={"format": SimpleFormat('I')})
reserv1: list[int] = field(metadata={"format": SimpleFormat('2I')}, repr=False)