Commit be87f980 authored by Maxime Perrotin's avatar Maxime Perrotin

Update shared type

parent 1c51cb8d
......@@ -3,9 +3,9 @@
--! File generated by asn2aadl v2.2-r0568c9a: DO NOT EDIT !
--------------------------------------------------------
--! MadeInFastMode:True:
--! InputASN1FileChecksum:cd1a84f23f40a5f78f17fcb7e027dc73:DataView.asn:
--! InputASN1FileChecksum:ecf379f559e49f546ebc70f8462986f7:DataView.acn:
--! InputASN1FileChecksum:ee8a7e01f29874c0d50f437d5abb9599:../,,/taste-types/taste-types.asn:
--! InputASN1FileChecksum:2001a927af056c7892e802eb6e03697a:/home/taste/tool-inst/share/SharedTypes/air_device/DataView.acn:
--! InputASN1FileChecksum:cd1a84f23f40a5f78f17fcb7e027dc73:/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn:
--! InputASN1FileChecksum:ee8a7e01f29874c0d50f437d5abb9599:/home/taste/tool-inst/share/taste-types/taste-types.asn:
--------------------------------------------------------
package DataView
......@@ -46,8 +46,8 @@ end Stream_Element_Buffer;
DATA Can_Route
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -86,8 +86,8 @@ END Can_Route_Buffer.impl;
DATA Data_Stream
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -126,8 +126,8 @@ END Data_Stream_Buffer.impl;
DATA IOP_CANn
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -166,8 +166,8 @@ END IOP_CANn_Buffer.impl;
DATA IOP_Device_Identifier
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -206,8 +206,8 @@ END IOP_Device_Identifier_Buffer.impl;
DATA IOP_ETHn
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -246,8 +246,8 @@ END IOP_ETHn_Buffer.impl;
DATA IOP_GRSPWn
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -286,8 +286,8 @@ END IOP_GRSPWn_Buffer.impl;
DATA IOP_MILn
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -326,8 +326,8 @@ END IOP_MILn_Buffer.impl;
DATA IOP_SPWRTR
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -366,8 +366,8 @@ END IOP_SPWRTR_Buffer.impl;
DATA IP_Address
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -406,8 +406,8 @@ END IP_Address_Buffer.impl;
DATA MAC_Address
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -446,8 +446,8 @@ END MAC_Address_Buffer.impl;
DATA MIL_Route
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -486,8 +486,8 @@ END MIL_Route_Buffer.impl;
DATA MIL_Slot
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -526,8 +526,8 @@ END MIL_Slot_Buffer.impl;
DATA Route
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -566,8 +566,8 @@ END Route_Buffer.impl;
DATA SPW_Config
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -606,8 +606,8 @@ END SPW_Config_Buffer.impl;
DATA SPW_Flags
PROPERTIES
-- name of the ASN.1 source file:
Source_Text => ("DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_DataView);
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.asn");
TASTE::EncodingDefinitionFile => classifier(DataView::ACN_AIR_IOP_DEVICE_DATAVIEW);
TASTE::Ada_Package_Name => "AIR_IOP_DEVICE_DATAVIEW";
Deployment::ASN1_Module_Name => "AIR-IOP-DEVICE-DATAVIEW";
Source_Language => (ASN1);
......@@ -864,10 +864,10 @@ SUBCOMPONENTS
T_UInt32 : DATA T_UInt32.impl;
T_UInt8 : DATA T_UInt8.impl;
END Taste_DataView.others;
DATA ACN_DataView
DATA ACN_AIR_IOP_DEVICE_DATAVIEW
PROPERTIES
Source_Text => ("DataView.acn");
Source_Text => ("/home/taste/tool-inst/share/SharedTypes/air_device/DataView.acn");
Source_Language => (ACN);
END ACN_DataView;
END ACN_AIR_IOP_DEVICE_DATAVIEW;
end DataView;
......@@ -5,13 +5,17 @@
-- generated code: do not edit
---------------------------------------------------
PACKAGE sharedTypelibrary::IV::Air_Device
PACKAGE Air_Device::IV::Air_Device
PUBLIC
WITH Taste;
WITH DataView;
WITH TASTE_IV_Properties;
SUBPROGRAM PI_Write_to_Device
FEATURES
stream : IN PARAMETER DataView::Data_Stream {
Taste::encoding => NATIVE;
};
PROPERTIES
Taste::Associated_Queue_Size => 1;
END PI_Write_to_Device;
......@@ -43,22 +47,22 @@ END RI_Received_Data.others;
SYSTEM Air_Device
FEATURES
PI_Write_to_Device : PROVIDES SUBPROGRAM ACCESS sharedTypelibrary::IV::Air_Device::PI_Write_to_Device.others {
Taste::coordinates => "93226 65116";
PI_Write_to_Device : PROVIDES SUBPROGRAM ACCESS Air_Device::IV::Air_Device::PI_Write_to_Device.others {
Taste::coordinates => "79210 66295";
Taste::RCMoperationKind => sporadic;
Taste::RCMperiod => 500 ms;
Taste::Deadline => 0 ms;
Taste::InterfaceName => "Write_to_Device";
};
PI_Poll_Device : PROVIDES SUBPROGRAM ACCESS sharedTypelibrary::IV::Air_Device::PI_Poll_Device.others {
Taste::coordinates => "93226 74614";
PI_Poll_Device : PROVIDES SUBPROGRAM ACCESS Air_Device::IV::Air_Device::PI_Poll_Device.others {
Taste::coordinates => "79210 76793";
Taste::RCMoperationKind => cyclic;
Taste::RCMperiod => 500 ms;
Taste::Deadline => 0 ms;
Taste::InterfaceName => "Poll_Device";
};
RI_Received_Data : REQUIRES SUBPROGRAM ACCESS sharedTypelibrary::IV::Air_Device::RI_Received_Data.others {
Taste::coordinates => "139524 67688";
RI_Received_Data : REQUIRES SUBPROGRAM ACCESS Air_Device::IV::Air_Device::RI_Received_Data.others {
Taste::coordinates => "130390 69137";
Taste::RCMoperationKind => sporadic;
Taste::InterfaceName => "Received_Data";
Taste::labelInheritance => "false";
......@@ -76,26 +80,26 @@ SUBCOMPONENTS
};
END Air_Device.others;
END sharedTypelibrary::IV::Air_Device;
END Air_Device::IV::Air_Device;
PACKAGE sharedTypelibrary::IV
PACKAGE Air_Device::IV
PUBLIC
WITH sharedTypelibrary::IV::Air_Device;
WITH Air_Device::IV::Air_Device;
WITH Taste;
WITH DataView;
WITH TASTE_IV_Properties;
SYSTEM sharedTypelibrary
END sharedTypelibrary;
SYSTEM Air_Device
END Air_Device;
SYSTEM IMPLEMENTATION sharedTypelibrary.others
SYSTEM IMPLEMENTATION Air_Device.others
SUBCOMPONENTS
Air_Device : SYSTEM sharedTypelibrary::IV::Air_Device::Air_Device.others {
Taste::coordinates => "93226 61415 139524 100155";
Air_Device : SYSTEM Air_Device::IV::Air_Device::Air_Device.others {
Taste::coordinates => "79210 62203 130390 105028";
};
END sharedTypelibrary.others;
END Air_Device.others;
PROPERTIES
Taste::version => "2.4";
END sharedTypelibrary::IV;
END Air_Device::IV;
Context-air-device DEFINITIONS ::=
BEGIN
IMPORTS
IOP-Device-Identifier FROM AIR-IOP-DEVICE-DATAVIEW;
-- Group all context parameters of this function in a record
Context-air-device ::= SEQUENCE {
device-config IOP-Device-Identifier
}
-- Declare a constant with the values set by the user in the interface view
air-device-ctxt Context-air-device ::= {
device-config eth: {n 0, ip {127, 0, 0, 1}, mac {0, 0, 0, 0, 0, 0}, routes {{route-ip {127,0,0,1}, route-mac {0,0,0,0,0,0}, route-port 5115}}}
}
END
VISUAL?=kate
all: compile-linux
clean:
rm -rf obj
edit:
$(VISUAL) ../../dataview/C/dataview-uniq.h \
../../dataview/C/Context-air-device.h \
../../dataview/C/Context-air-device.c \
src/air_device.h \
src/air_device_state.h \
src/air_device.cc
compile-linux:
mkdir -p obj && cd obj && g++ -c ../src/*.cc
/* C++ Body file for function type Air_Device
* Generated by TASTE on 2020-04-29 11:05:33
* You can edit this file, it will not be overwritten
* Provided interfaces : Poll_Device, Write_to_Device
* Required interfaces : Received_Data
* User-defined properties for this function:
* |_ Taste::Active_Interfaces = any
* |_ Taste::coordinates = 79210 62203 130390 105028
* |_ Taste::is_Component_Type = true
* Timers :
*/
#include "air_device.h"
// Include Context Parameters (constants defined in the Interface View)
#include "Context-air-device.h"
void air_device::startup()
{
// Write your initialisation code, but DO NOT CALL REQUIRED INTERFACES
// puts ("[Air_Device] Startup");
}
void air_device::Poll_Device(void)
{
// Write your code here
}
void air_device::Write_to_Device
(const asn1SccData_Stream *IN_stream)
{
// Write your code here
}
/* C++ Function Type
* Header file for function Air_Device in CPP language
* Generated by TASTE on 2020-04-29 11:05:33
* Context Parameters present : YES
* Provided interfaces : Poll_Device, Write_to_Device
* Required interfaces : Received_Data
* User-defined properties for this function:
* |_ Taste::Active_Interfaces = any
* |_ Taste::coordinates = 79210 62203 130390 105028
* |_ Taste::is_Component_Type = true
* DO NOT EDIT THIS FILE, IT WILL BE OVERWRITTEN DURING THE BUILD
*/
#pragma once
#include "dataview-uniq.h"
#include "air_device_state.h"
#include "Context-air-device.h"
class air_device {
// These are the required interfaces you can call from application code:
typedef void (*RI_Received_Data_ptr) ( const asn1SccData_Stream * );
RI_Received_Data_ptr RI_Received_Data;
// the ctxt member allows you to define your per-instance global data
air_device_state ctxt;
// Context parameters specified in the interface view
asn1SccContext_air_device config;
public:
air_device(RI_Received_Data_ptr RI_Received_Data_arg, asn1SccContext_air_device config_arg=air_device_ctxt):
RI_Received_Data(RI_Received_Data_arg),
config(config_arg) {}
void startup();
/* Provided interfaces */
void Poll_Device( );
void Write_to_Device( const asn1SccData_Stream * );
};
// Fill in this class with your context data (internal state):
// list all the variables you want global (per function instance)
#include "dataview-uniq.h"
class air_device_state {
public:
// Add your members here
// int counter;
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment