diff options
| author | magh <magh@maghmogh.com> | 2023-03-06 18:44:55 -0600 |
|---|---|---|
| committer | magh <magh@maghmogh.com> | 2023-03-06 18:44:55 -0600 |
| commit | e80d9d8871b325a04b18f90a9ea4bb7fd148fb25 (patch) | |
| tree | 79dbdb8506b7ff1e92549188d1b94cfc0b3503ae /tools/proxyclient/experiments/agx_dumpstructs.py | |
Diffstat (limited to 'tools/proxyclient/experiments/agx_dumpstructs.py')
| -rw-r--r-- | tools/proxyclient/experiments/agx_dumpstructs.py | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tools/proxyclient/experiments/agx_dumpstructs.py b/tools/proxyclient/experiments/agx_dumpstructs.py new file mode 100644 index 0000000..08a7327 --- /dev/null +++ b/tools/proxyclient/experiments/agx_dumpstructs.py @@ -0,0 +1,19 @@ +#!/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 * +from m1n1.fw.agx import microsequence, initdata + +#for v in initdata.__all__: +#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) |
