From 64869db94a1fcab3c2e8e7cb5d34f01b6cbb2ce8 Mon Sep 17 00:00:00 2001 From: Guillaume Kerrien <48127479+GKNSTM@users.noreply.github.com> Date: Mon, 27 Nov 2023 17:04:00 +0100 Subject: [PATCH] Add STMicroelectronics STM32H573I-DK model --- .../stm32h573i_dk/control_if-1.json | 97 ++++++++++++++++ .../stm32h573i_dk/standard_fw-1.json | 37 ++++++ .../stm32h573i_dk/standard_if-1.json | 106 ++++++++++++++++++ 3 files changed, 240 insertions(+) create mode 100644 dtmi/stmicroelectronics/stm32h573i_dk/control_if-1.json create mode 100644 dtmi/stmicroelectronics/stm32h573i_dk/standard_fw-1.json create mode 100644 dtmi/stmicroelectronics/stm32h573i_dk/standard_if-1.json diff --git a/dtmi/stmicroelectronics/stm32h573i_dk/control_if-1.json b/dtmi/stmicroelectronics/stm32h573i_dk/control_if-1.json new file mode 100644 index 000000000..e691c1ab4 --- /dev/null +++ b/dtmi/stmicroelectronics/stm32h573i_dk/control_if-1.json @@ -0,0 +1,97 @@ +{ + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ], + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:control_if;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:control_if:Pause;1", + "@type": "Command", + "commandType": "synchronous", + "description": { + "en": "This Commands will put in pause the sensors transmission" + }, + "displayName": { + "en": "Pause" + }, + "name": "Pause", + "response": { + "@type": "CommandPayload", + "name": "PauseResponse", + "schema": { + "@type": "Object", + "displayName": { + "en": "Object" + }, + "fields": [ + { + "name": "Result", + "schema": "string" + } + ] + } + } + }, + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:control_if:Play;1", + "@type": "Command", + "commandType": "synchronous", + "description": { + "en": "This Command will Resume the Sensors transmission" + }, + "displayName": { + "en": "Play" + }, + "name": "Play", + "response": { + "@type": "CommandPayload", + "name": "PlayResponse", + "schema": { + "@type": "Object", + "displayName": { + "en": "Object" + }, + "fields": [ + { + "name": "Result", + "schema": "string" + } + ] + } + } + }, + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:control_if:Reset;1", + "@type": "Command", + "commandType": "synchronous", + "description": { + "en": "Reboot the board" + }, + "displayName": { + "en": "Reset" + }, + "name": "Reset", + "response": { + "@type": "CommandPayload", + "name": "ResetResponse", + "schema": { + "@type": "Object", + "displayName": { + "en": "Object" + }, + "fields": [ + { + "name": "Result", + "schema": "string" + } + ] + } + } + } + ], + "displayName": { + "en": "Control interface for STM32H573I-DK" + } +} diff --git a/dtmi/stmicroelectronics/stm32h573i_dk/standard_fw-1.json b/dtmi/stmicroelectronics/stm32h573i_dk/standard_fw-1.json new file mode 100644 index 000000000..3c8edd963 --- /dev/null +++ b/dtmi/stmicroelectronics/stm32h573i_dk/standard_fw-1.json @@ -0,0 +1,37 @@ +{ + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_fw;1", + "@type": "Interface", + "displayName": "STM32H573I-DK Discovery Kit", + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ], + "contents": [ + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_fw:std_comp;1", + "@type": "Component", + "displayName": { + "en": "Standard component" + }, + "name": "std_comp", + "schema": "dtmi:stmicroelectronics:stm32h573i_dk:standard_if;1" + }, + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_fw:ctrl_comp;1", + "@type": "Component", + "displayName": { + "en": "Control component" + }, + "name": "ctrl_comp", + "schema": "dtmi:stmicroelectronics:stm32h573i_dk:control_if;1" + }, + { + "@type": "Component", + "displayName": { + "en": "Device info component" + }, + "name": "deviceinfo", + "schema": "dtmi:azure:DeviceManagement:DeviceInformation;1" + } + ] +} diff --git a/dtmi/stmicroelectronics/stm32h573i_dk/standard_if-1.json b/dtmi/stmicroelectronics/stm32h573i_dk/standard_if-1.json new file mode 100644 index 000000000..dcccb3596 --- /dev/null +++ b/dtmi/stmicroelectronics/stm32h573i_dk/standard_if-1.json @@ -0,0 +1,106 @@ +{ + "@context": [ + "dtmi:iotcentral:context;2", + "dtmi:dtdl:context;2" + ], + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_if;1", + "@type": "Interface", + "contents": [ + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_if:control_LED;1", + "@type": [ + "Property", + "Initialized" + ], + "description": { + "en": "Led On/Off" + }, + "displayName": { + "en": "Control LED " + }, + "name": "control_LED", + "schema": { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_if:control_LED:schema;1", + "@type": "Enum", + "displayName": { + "en": "Enum" + }, + "enumValues": [ + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_if:control_LED:schema:off;1", + "displayName": { + "en": "off" + }, + "enumValue": 0, + "name": "off" + }, + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_if:control_LED:schema:on;1", + "displayName": { + "en": "on" + }, + "enumValue": 1, + "name": "on" + } + ], + "valueSchema": "integer" + }, + "writable": true, + "initialValue": 0 + }, + { + "@id": "dtmi:stmicroelectronics:stm32h573i_dk:standard_if:button_counter;1", + "@type": [ + "Telemetry", + "NumberValue" + ], + "description": { + "en": "How many times the push button is pressed between two telemetries" + }, + "displayName": { + "en": "Button Counter" + }, + "name": "button_counter", + "schema": "integer" + }, + { + "@type": [ + "Telemetry", + "NumberValue", + "Temperature" + ], + "description": { + "en": "Temperature in degrees Celsius from internal Digital Temperature Sensor" + }, + "displayName": { + "en": "Temperature" + }, + "name": "temperature", + "schema": "double", + "unit": "degreeCelsius" + }, + { + "@type": [ + "Property", + "NumberValue", + "Initialized" + ], + "displayName": { + "en": "Transmission period for telemetry data [in seconds]" + }, + "name": "telemetry_interval", + "schema": "double", + "writable": true, + "decimalPlaces": 2, + "initialValue": 10, + "maxValue": 86400, + "minValue": 1 + } + ], + "description": { + "en": "Reports data." + }, + "displayName": { + "en": "Standard interface for STM32H573I-DK" + } +}