cremalink.ecam.answers module
Dispatch and parse machine answer (0xD0) frames.
Every 0xD0 blob echoes the request id at byte[2] and the request’s
flag at byte[3] — response routing keys on that echo, never on the
property the blob arrived under (APK b1()/L() dispatcher rule).
Special answer ids: 0x90 param-write ack, 0x95 param list,
0xA1/0xA2 6-byte <id:2B><u32> records, 0xA9 profile-select
ack, 0xE1 sync-timeout/request-abort (the app retries after ~100 ms).
- cremalink.ecam.answers.answer_flag(frame: bytes | bytearray) int[source]
The echoed request flag —
byte[3]of the0xD0blob.
- cremalink.ecam.answers.answer_id(frame: bytes | bytearray) int[source]
The echoed request id —
byte[2]of the0xD0blob.
- cremalink.ecam.answers.decode_a2_page(frame: bytes | bytearray) list[tuple[int, int]][source]
0xA2/0xA1statistics page →[(id, raw_u32), …].Records are 6 bytes
<id:2B> <u32:4B>starting at payload offset 2 (APKh.uparser); trailing partial records are ignored.
- cremalink.ecam.answers.is_sync_timeout(frame: bytes | bytearray) bool[source]
0xE1— machine reports busy/sync-timeout; abort the pending read.Tolerant by design: a blob that does not parse cannot be an abort.
- cremalink.ecam.answers.parse_a9_ack(frame: bytes | bytearray) tuple[int, bool][source]
0xA9profile-select ack →(profile, ok)—<prof> <ok=00>.