From 3e36ed3387e9e78681a9a95d61410ec74167b8dc Mon Sep 17 00:00:00 2001 From: kruger <kruger@astron.nl> Date: Thu, 14 Mar 2024 08:40:46 +0000 Subject: [PATCH] Update for UNB2 version 5: EEPROM after switch. Change is backwards compatible --- pypcc/config/UNB2TR.yaml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pypcc/config/UNB2TR.yaml b/pypcc/config/UNB2TR.yaml index 22af38c..c2f2f5e 100644 --- a/pypcc/config/UNB2TR.yaml +++ b/pypcc/config/UNB2TR.yaml @@ -20,6 +20,12 @@ drivers: parameters: [0,1, 4,4] status: UNB2TR_I2C_bus_PS_error + - name: switch_EEPROM + type: i2c_array2 + parent: I2C1 + parameters: [0,1, 6,6] + status: UNB2TR_I2C_bus_PS_error + - name: switch_FP type: i2c_array2 parent: I2C1 @@ -291,7 +297,7 @@ variables: dim: 2 - name: UNB2_PCB_version - driver: switch_UNB2 + driver: switch_EEPROM devreg: 0x50.0 width: 0x100 #32 char rw: ro @@ -300,7 +306,7 @@ variables: - name: UNB2_PCB_number description: PCB number (astron.nl/webforms/IenS-Boarden/view.php?id=xxx) - driver: switch_UNB2 + driver: switch_EEPROM devreg: 0x50.0x20 width: 0x100 #32 characters rw: ro @@ -308,7 +314,7 @@ variables: dim: 2 - name: UNB2_PCB_ID - driver: switch_UNB2 + driver: switch_EEPROM devreg: 0x50.0xFC width: 32 rw: ro -- GitLab