Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add ESP32 Storage on NVS #486

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
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
6 changes: 6 additions & 0 deletions data/typelibrary/storage-1.0.0/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Manifest xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="platform:/resource/org.eclipse.fordiac.ide.library.model/model/library.xsd" Scope="Library">
<Product Name="Storage" SymbolicName="storage" Comment="Standard Library - Storage">
<VersionInfo Version="1.0.0" Author="Eclipse 4diac" Date="2024-02-21"/>
</Product>
</Manifest>
49 changes: 49 additions & 0 deletions data/typelibrary/storage-1.0.0/typelib/esp32/nvs/NVS.fbt
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="UTF-8"?>
<FBType Name="NVS" Comment="Load and Store Data from NVS by Key">
<Identification Standard="61499-2" Description="Copyright (c) 2022, 2024 HR Agrartechnik GmbH &#10; &#10;This program and the accompanying materials are made &#10;available under the terms of the Eclipse Public License 2.0 &#10;which is available at https://www.eclipse.org/legal/epl-2.0/ &#10; &#10;SPDX-License-Identifier: EPL-2.0" >
</Identification>
<VersionInfo Organization="HR Agrartechnik GmbH" Version="1.0" Author="Franz Höpfinger" Date="2022-09-23">
</VersionInfo>
<InterfaceList>
<EventInputs>
<Event Name="INIT" Type="Event" Comment="Service Initialization">
<With Var="QI"/>
<With Var="KEY"/>
<With Var="VALUE"/>
</Event>
<Event Name="SET" Type="Event" Comment="set value for given key">
<With Var="VALUE"/>
</Event>
<Event Name="GET" Type="Event" Comment="get value for given key">
<With Var="VALUE"/>
</Event>
</EventInputs>
<EventOutputs>
<Event Name="INITO" Type="Event" Comment="Initialization Confirm">
<With Var="QO"/>
<With Var="STATUS"/>
<With Var="VALUEO"/>
</Event>
<Event Name="SETO" Type="Event" Comment="Confirmation of SET">
<With Var="QO"/>
<With Var="STATUS"/>
<With Var="VALUEO"/>
</Event>
<Event Name="GETO" Type="Event" Comment="Confirmation of GET">
<With Var="QO"/>
<With Var="STATUS"/>
<With Var="VALUEO"/>
</Event>
</EventOutputs>
<InputVars>
<VarDeclaration Name="QI" Type="BOOL" Comment="Event Input Qualifier"/>
<VarDeclaration Name="KEY" Type="STRING" Comment="Key name."/>
<VarDeclaration Name="VALUE" Type="ANY_ELEMENTARY" Comment="The value to set."/>
</InputVars>
<OutputVars>
<VarDeclaration Name="QO" Type="BOOL" Comment="Event Output Qualifier"/>
<VarDeclaration Name="STATUS" Type="STRING" Comment="Service Status"/>
<VarDeclaration Name="VALUEO" Type="ANY_ELEMENTARY" Comment="The output value"/>
</OutputVars>
</InterfaceList>
</FBType>
Loading