cremalink.ecam.profiles module

Profile-name (0xA4) blob parsing and the 0xA9 select path.

a4f0 envelope (verified on d034/d035 Soul blobs):

D0 <len> A4 F0 <first_slot:1B> <last_slot:1B> <entries…> <trailing:1B> <crc>

Each entry is 21 bytes on non-striker machines (<name:20B UTF-16BE> <icon:1B>) and 22 on striker (trailing mug byte). Empty/all-padding slots are excluded from the option list; factory names remain occupied (FR-018). Icon values >11 exist on Soul — they pass through unmapped, never through the Eletta ÷3-color/%3-figure scheme.

class cremalink.ecam.profiles.ProfileSlot(index: int, name: str, icon: int, mug: int | None = None)[source]

Bases: object

One occupied machine profile slot.

icon: int
index: int
mug: int | None = None
name: str
cremalink.ecam.profiles.parse_profile_names(blob: bytes | bytearray, profile: MachineProfile) → list[ProfileSlot][source]

Parse one a4f0 envelope into occupied ProfileSlots.

Never raises on malformed input — unparseable content yields [] (callers treat a missing page as “no slots”, never a crash).