From e30f83e7bdbbf064ac134973dbc5d56554ab4073 Mon Sep 17 00:00:00 2001 From: Bernhard Kirchen Date: Mon, 16 Dec 2024 22:48:14 +0100 Subject: [PATCH] webapp: define pin mapping interface for Huawei and PowerMeter --- webapp/src/types/PinMapping.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/webapp/src/types/PinMapping.ts b/webapp/src/types/PinMapping.ts index dd5423b09..fc1b07423 100644 --- a/webapp/src/types/PinMapping.ts +++ b/webapp/src/types/PinMapping.ts @@ -49,6 +49,23 @@ export interface Battery { tx: number; } +export interface Huawei { + miso: number; + mosi: number; + clk: number; + cs: number; + irq: number; + power: number; +} + +export interface PowerMeter { + rx: number; + tx: number; + dere: number; + rxen: number; + txen: number; +} + export interface Device { name: string; links: Array; @@ -58,6 +75,8 @@ export interface Device { display: Display; victron: Victron; battery: Battery; + huawei: Huawei; + powermeter: PowerMeter; } export type PinMapping = Array;