2022-08-17 05:48:53 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
import sys, pathlib, time
|
|
|
|
sys.path.append(str(pathlib.Path(__file__).resolve().parents[1]))
|
|
|
|
|
|
|
|
from m1n1.constructutils import *
|
2022-08-23 06:32:45 +00:00
|
|
|
from m1n1.fw.agx import microsequence, initdata
|
2022-08-17 05:48:53 +00:00
|
|
|
|
|
|
|
#for v in initdata.__all__:
|
2022-08-23 06:32:45 +00:00
|
|
|
#for v in initdata.__dict__:
|
|
|
|
def dump(module):
|
|
|
|
for v in module.__dict__:
|
|
|
|
struct = getattr(module, v)
|
|
|
|
if isinstance(struct, type) and issubclass(struct, ConstructClass) and struct is not ConstructClass:
|
|
|
|
print(struct.to_rust())
|
|
|
|
print()
|
|
|
|
|
|
|
|
dump(microsequence)
|