ExAIS.Data.Decoders.Type6.Zeni (ExAis v0.2.4)
View SourceDecode a Zeni Type 6 (FI 9) Electrical / System Status payload.
Bit layout of the data portion (after DAC/FI):
0–15 : sub_application_id (16)16–27 : voltage (12) — 0.1 V increments, max 409.6 V 28–37 : current (10) — 0.1 A increments, max 102.3 A 38 : power_supply_type (1) — 0: AC, 1: DC 39 : light_status (1) — 0: Light Off, 1: Light On 40 : battery_status (1) — 0: Good, 1: Low voltage 41 : off_position (1) — 0: On position, 1: Off position 42–47 : spare (6)
Total: 48 bits (full Type 6 message occupies 136 bits / 1 slot).
Summary
Types
@type t() :: %ExAIS.Data.Decoders.Type6.Zeni{ battery_status: String.t(), battery_status_raw: boolean(), current_a: float(), current_raw: non_neg_integer(), light_status: String.t(), light_status_raw: boolean(), off_position: String.t(), off_position_raw: boolean(), power_supply: String.t(), power_supply_raw: 0 | 1, sub_application_id: non_neg_integer(), voltage_raw: non_neg_integer(), voltage_v: float() }