Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Add STMicroelectronics STM32H573I-DK model #554

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions dtmi/stmicroelectronics/stm32h573i_dk/control_if-1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
37 changes: 37 additions & 0 deletions dtmi/stmicroelectronics/stm32h573i_dk/standard_fw-1.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
106 changes: 106 additions & 0 deletions dtmi/stmicroelectronics/stm32h573i_dk/standard_if-1.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
Loading