Generation working and Compilation of MARTe components
This commit is contained in:
@@ -0,0 +1,211 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<display typeId="org.csstudio.opibuilder.Display" version="1.0.0">
|
||||
<actions hook="false" hook_all="false" />
|
||||
<auto_scale_widgets>
|
||||
<auto_scale_widgets>false</auto_scale_widgets>
|
||||
<min_width>-1</min_width>
|
||||
<min_height>-1</min_height>
|
||||
</auto_scale_widgets>
|
||||
<auto_zoom_to_fit_all>false</auto_zoom_to_fit_all>
|
||||
<background_color>
|
||||
<color name="IO Background" red="235" green="235" blue="235" />
|
||||
</background_color>
|
||||
<boy_version>5.0.0.201512210936</boy_version>
|
||||
<foreground_color>
|
||||
<color name="IO Grid" red="215" green="215" blue="215" />
|
||||
</foreground_color>
|
||||
<grid_space>1</grid_space>
|
||||
<height>1760</height>
|
||||
<macros>
|
||||
<include_parent_macros>true</include_parent_macros>
|
||||
</macros>
|
||||
<name>MAIN DISPLAY AREA - MIMIC</name>
|
||||
<rules />
|
||||
<scripts />
|
||||
<show_close_button>true</show_close_button>
|
||||
<show_edit_range>true</show_edit_range>
|
||||
<show_grid>true</show_grid>
|
||||
<show_ruler>true</show_ruler>
|
||||
<snap_to_geometry>true</snap_to_geometry>
|
||||
<widget_type>Display</widget_type>
|
||||
<width>3236</width>
|
||||
<wuid>-14a921ec:134b2495e46:-7f53</wuid>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<widget typeId="org.csstudio.opibuilder.widgets.groupingContainer" version="1.0.0">
|
||||
<actions hook="false" hook_all="false" />
|
||||
<background_color>
|
||||
<color name="IO Background" red="235" green="235" blue="235" />
|
||||
</background_color>
|
||||
<border_color>
|
||||
<color name="IO Border" red="0" green="0" blue="0" />
|
||||
</border_color>
|
||||
<border_style>0</border_style>
|
||||
<border_width>1</border_width>
|
||||
<enabled>true</enabled>
|
||||
<fc>false</fc>
|
||||
<font>
|
||||
<opifont.name fontName="DejaVu Sans Mono" height="36" style="0">IO Title</opifont.name>
|
||||
</font>
|
||||
<foreground_color>
|
||||
<color name="IO Foreground" red="0" green="0" blue="0" />
|
||||
</foreground_color>
|
||||
<height>1760</height>
|
||||
<lock_children>false</lock_children>
|
||||
<macros>
|
||||
<include_parent_macros>true</include_parent_macros>
|
||||
</macros>
|
||||
<name>MAIN DISPLAY AREA - MIMIC</name>
|
||||
<rules />
|
||||
<scale_options>
|
||||
<width_scalable>false</width_scalable>
|
||||
<height_scalable>false</height_scalable>
|
||||
<keep_wh_ratio>false</keep_wh_ratio>
|
||||
</scale_options>
|
||||
<scripts />
|
||||
<show_scrollbar>false</show_scrollbar>
|
||||
<tooltip></tooltip>
|
||||
<transparent>true</transparent>
|
||||
<visible>true</visible>
|
||||
<widget_type>Grouping Container</widget_type>
|
||||
<width>3236</width>
|
||||
<wuid>-28c93393:14b0cb4ebee:-6a50</wuid>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<widget typeId="org.csstudio.opibuilder.widgets.groupingContainer" version="1.0.0">
|
||||
<actions hook="false" hook_all="false" />
|
||||
<background_color>
|
||||
<color name="IO Background" red="235" green="235" blue="235" />
|
||||
</background_color>
|
||||
<border_color>
|
||||
<color name="IO Border" red="0" green="0" blue="0" />
|
||||
</border_color>
|
||||
<border_style>0</border_style>
|
||||
<border_width>2</border_width>
|
||||
<enabled>true</enabled>
|
||||
<fc>false</fc>
|
||||
<font>
|
||||
<opifont.name fontName="DejaVu Sans Mono" height="18" style="0">IO Title</opifont.name>
|
||||
</font>
|
||||
<foreground_color>
|
||||
<color name="IO Foreground" red="0" green="0" blue="0" />
|
||||
</foreground_color>
|
||||
<height>1760</height>
|
||||
<lock_children>false</lock_children>
|
||||
<macros>
|
||||
<include_parent_macros>true</include_parent_macros>
|
||||
</macros>
|
||||
<name>Information Layer</name>
|
||||
<rules>
|
||||
<rule name="MakeLayerVisible" prop_id="visible" out_exp="false">
|
||||
<exp bool_exp="pv0==0">
|
||||
<value>false</value>
|
||||
</exp>
|
||||
<pv trig="true">loc://$(DID)_INFO_SHOW(0)</pv>
|
||||
</rule>
|
||||
</rules>
|
||||
<scale_options>
|
||||
<width_scalable>false</width_scalable>
|
||||
<height_scalable>false</height_scalable>
|
||||
<keep_wh_ratio>false</keep_wh_ratio>
|
||||
</scale_options>
|
||||
<scripts />
|
||||
<show_scrollbar>false</show_scrollbar>
|
||||
<tooltip>$(name)</tooltip>
|
||||
<transparent>true</transparent>
|
||||
<visible>true</visible>
|
||||
<widget_type>Grouping Container</widget_type>
|
||||
<width>3236</width>
|
||||
<wuid>-1e0f3b69:149c8d6d12f:-432f</wuid>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
</widget>
|
||||
<widget typeId="org.csstudio.opibuilder.widgets.groupingContainer" version="1.0.0">
|
||||
<actions hook="false" hook_all="false" />
|
||||
<background_color>
|
||||
<color name="IO Background" red="235" green="235" blue="235" />
|
||||
</background_color>
|
||||
<border_color>
|
||||
<color name="IO Border" red="0" green="0" blue="0" />
|
||||
</border_color>
|
||||
<border_style>0</border_style>
|
||||
<border_width>2</border_width>
|
||||
<enabled>true</enabled>
|
||||
<fc>false</fc>
|
||||
<font>
|
||||
<opifont.name fontName="DejaVu Sans Mono" height="18" style="0">IO Title</opifont.name>
|
||||
</font>
|
||||
<foreground_color>
|
||||
<color name="IO Foreground" red="0" green="0" blue="0" />
|
||||
</foreground_color>
|
||||
<height>1760</height>
|
||||
<lock_children>false</lock_children>
|
||||
<macros>
|
||||
<include_parent_macros>true</include_parent_macros>
|
||||
</macros>
|
||||
<name>Static Data Layer</name>
|
||||
<rules />
|
||||
<scale_options>
|
||||
<width_scalable>false</width_scalable>
|
||||
<height_scalable>false</height_scalable>
|
||||
<keep_wh_ratio>false</keep_wh_ratio>
|
||||
</scale_options>
|
||||
<scripts />
|
||||
<show_scrollbar>true</show_scrollbar>
|
||||
<tooltip>$(name)</tooltip>
|
||||
<transparent>true</transparent>
|
||||
<visible>true</visible>
|
||||
<widget_type>Grouping Container</widget_type>
|
||||
<width>3236</width>
|
||||
<wuid>-1e0f3b69:149c8d6d12f:-4384</wuid>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
</widget>
|
||||
<widget typeId="org.csstudio.opibuilder.widgets.checkbox" version="1.0.0">
|
||||
<actions hook="false" hook_all="false" />
|
||||
<alarm_pulsing>false</alarm_pulsing>
|
||||
<auto_size>true</auto_size>
|
||||
<backcolor_alarm_sensitive>true</backcolor_alarm_sensitive>
|
||||
<background_color>
|
||||
<color name="IO Background" red="235" green="235" blue="235" />
|
||||
</background_color>
|
||||
<bit>0</bit>
|
||||
<border_alarm_sensitive>false</border_alarm_sensitive>
|
||||
<border_color>
|
||||
<color name="IO Border" red="0" green="0" blue="0" />
|
||||
</border_color>
|
||||
<border_style>0</border_style>
|
||||
<border_width>2</border_width>
|
||||
<enabled>true</enabled>
|
||||
<font>
|
||||
<opifont.name fontName="DejaVu Sans Mono" height="12" style="0">IO Label</opifont.name>
|
||||
</font>
|
||||
<forecolor_alarm_sensitive>false</forecolor_alarm_sensitive>
|
||||
<foreground_color>
|
||||
<color name="IO Text Fg" red="0" green="0" blue="0" />
|
||||
</foreground_color>
|
||||
<height>45</height>
|
||||
<label>Show Info</label>
|
||||
<name>Show/Hide Tickbox</name>
|
||||
<pv_name>loc://$(DID)_INFO_SHOW(0)</pv_name>
|
||||
<pv_value />
|
||||
<rules />
|
||||
<scale_options>
|
||||
<width_scalable>false</width_scalable>
|
||||
<height_scalable>false</height_scalable>
|
||||
<keep_wh_ratio>false</keep_wh_ratio>
|
||||
</scale_options>
|
||||
<scripts />
|
||||
<selected_color>
|
||||
<color name="IO OutputPV Fg" red="0" green="0" blue="0" />
|
||||
</selected_color>
|
||||
<tooltip>$(name)</tooltip>
|
||||
<visible>true</visible>
|
||||
<widget_type>Check Box</widget_type>
|
||||
<width>225</width>
|
||||
<wuid>-17ac9c77:14e0084b99a:2504</wuid>
|
||||
<x>3000</x>
|
||||
<y>0</y>
|
||||
</widget>
|
||||
</widget>
|
||||
</display>
|
||||
@@ -0,0 +1,55 @@
|
||||
#############################################################
|
||||
#
|
||||
# Copyright 2015 F4E | European Joint Undertaking for ITER
|
||||
# and the Development of Fusion Energy ('Fusion for Energy')
|
||||
#
|
||||
# Licensed under the EUPL, Version 1.1 or - as soon they
|
||||
# will be approved by the European Commission - subsequent
|
||||
# versions of the EUPL (the "Licence");
|
||||
# You may not use this work except in compliance with the
|
||||
# Licence.
|
||||
# You may obtain a copy of the Licence at:
|
||||
#
|
||||
# http://ec.europa.eu/idabc/eupl
|
||||
#
|
||||
# Unless required by applicable law or agreed to in
|
||||
# writing, software distributed under the Licence is
|
||||
# distributed on an "AS IS" basis,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
|
||||
# express or implied.
|
||||
# See the Licence for the specific language governing
|
||||
# permissions and limitations under the Licence.
|
||||
#
|
||||
# $Id: Makefile.inc 3 2012-01-15 16:26:07Z aneto $
|
||||
#
|
||||
#############################################################
|
||||
OBJSX=JABitReverseGAM.x
|
||||
|
||||
PACKAGE=GAMs
|
||||
|
||||
ROOT_DIR=../../../obj
|
||||
MAKEDEFAULTDIR=$(MARTe2_DIR)/MakeDefaults
|
||||
include $(MAKEDEFAULTDIR)/MakeStdLibDefs.$(TARGET)
|
||||
|
||||
INCLUDES += -I.
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L0Types
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L1Portability
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L2Objects
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L3Streams
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L4Messages
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L4Configuration
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/BareMetal/L5GAMs
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/Scheduler/L1Portability
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/Scheduler/L3Services
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/Scheduler/L4Messages
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/FileSystem/L1Portability
|
||||
INCLUDES += -I$(MARTe2_DIR)/Source/Core/FileSystem/L3Streams
|
||||
|
||||
|
||||
|
||||
all: $(OBJS) $(SUBPROJ) \
|
||||
$(BUILD_DIR)/JABitReverseGAM$(LIBEXT) \
|
||||
$(BUILD_DIR)/JABitReverseGAM$(DLLEXT)
|
||||
echo $(OBJS)
|
||||
|
||||
include $(MAKEDEFAULTDIR)/MakeStdLibRules.$(TARGET)
|
||||
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* @file JATerminalInterfaceGAM.h
|
||||
* @brief Header file for class JATerminalInterfaceGAM
|
||||
* @date Feb 19, 2020
|
||||
* @author kuchida
|
||||
*
|
||||
* @copyright Copyright 2015 F4E | European Joint Undertaking for ITER and
|
||||
* the Development of Fusion Energy ('Fusion for Energy').
|
||||
* Licensed under the EUPL, Version 1.1 or - as soon they will be approved
|
||||
* by the European Commission - subsequent versions of the EUPL (the "Licence")
|
||||
* You may not use this work except in compliance with the Licence.
|
||||
* You may obtain a copy of the Licence at: http://ec.europa.eu/idabc/eupl
|
||||
*
|
||||
* @warning Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the Licence is distributed on an "AS IS"
|
||||
* basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
||||
* or implied. See the Licence permissions and limitations under the Licence.
|
||||
|
||||
* @details This header file contains the declaration of the class JATerminalInterfaceGAM
|
||||
* with all of its public, protected and private members. It may also include
|
||||
* definitions for inline methods which need to be visible to the compiler.
|
||||
*/
|
||||
|
||||
#ifndef GAMS_JATerminalInterfaceGAM_H_
|
||||
#define GAMS_JATerminalInterfaceGAM_H_
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Standard header includes */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Project header includes */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "GAM.h"
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Class declaration */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @brief GAM calculates one output value by comparing input value and fixed parameters.
|
||||
*
|
||||
* The configuration syntax is (names and signal quantity are only given as an example):
|
||||
* <pre>
|
||||
*
|
||||
* +terminalInterfaceGAM = {
|
||||
* Class = JATerminalInterfaceGAM
|
||||
* mhvps_hvon_term = 4
|
||||
* aps_hvon_term = 1
|
||||
* aps_swon_term = 16
|
||||
* bps_hvon_term = 2
|
||||
* bps_swon_term = 8
|
||||
* InputSignals = {
|
||||
* MHVPS_HVON = {
|
||||
* DataSource = DDB1
|
||||
* Type = uint32
|
||||
* }
|
||||
* APS_HVON = {
|
||||
* DataSource = DDB1
|
||||
* Type = uint32
|
||||
* }
|
||||
* APS_SWON = {
|
||||
* DataSource = DDB1
|
||||
* Type = uint32
|
||||
* }
|
||||
* BPS_HVON = {
|
||||
* DataSource = DDB1
|
||||
* Type = uint32
|
||||
* }
|
||||
* BPS_SWON = {
|
||||
* DataSource = DDB1
|
||||
* Type = uint32
|
||||
* }
|
||||
* Value = {
|
||||
* DataSource = DDB1
|
||||
* Type = uint32
|
||||
* }
|
||||
* }
|
||||
* OutputSignals = {
|
||||
* Value = {
|
||||
* DataSource = NI6259
|
||||
* Type = uint32
|
||||
* Trigger = 1
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
*
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
|
||||
class JATerminalInterfaceGAM : public MARTe::GAM, public MARTe::StatefulI {
|
||||
public:
|
||||
CLASS_REGISTER_DECLARATION()
|
||||
|
||||
JATerminalInterfaceGAM();
|
||||
|
||||
virtual ~JATerminalInterfaceGAM();
|
||||
|
||||
virtual bool Initialise(MARTe::StructuredDataI & data);
|
||||
|
||||
virtual bool Setup();
|
||||
|
||||
virtual bool Execute();
|
||||
|
||||
virtual bool PrepareNextState(const MARTe::char8 * const currentStateName,
|
||||
const MARTe::char8 * const nextStateName);
|
||||
|
||||
private:
|
||||
// Fixed GAM input
|
||||
MARTe::uint32 mhvps_hvon_term;
|
||||
MARTe::uint32 aps_hvon_term;
|
||||
MARTe::uint32 aps_swon_term;
|
||||
MARTe::uint32 bps_hvon_term;
|
||||
MARTe::uint32 bps_swon_term;
|
||||
|
||||
// Input signals
|
||||
//MARTe::uint32 *mhvps_manm;
|
||||
MARTe::uint32 *mhvps_hvon;
|
||||
|
||||
//MARTe::uint32 *aps_manm;
|
||||
MARTe::uint32 *aps_hvon;
|
||||
MARTe::uint32 *aps_swon;
|
||||
|
||||
//MARTe::uint32 *bps_manm;
|
||||
MARTe::uint32 *bps_hvon;
|
||||
MARTe::uint32 *bps_swon;
|
||||
|
||||
MARTe::uint32 *short_pulse_mode;
|
||||
|
||||
MARTe::uint32 *stateMachineOutput;
|
||||
MARTe::uint8 *ni6528p3Value;
|
||||
MARTe::uint8 *ni6528p4Value;
|
||||
|
||||
// Output signals
|
||||
MARTe::uint32 *outputSignalNI6259;
|
||||
MARTe::uint8 *outputSignalNI6528P3;
|
||||
MARTe::uint8 *outputSignalNI6528P4;
|
||||
|
||||
MARTe::uint8 aps_hvon_state;
|
||||
MARTe::uint8 aps_swon_state;
|
||||
MARTe::uint8 mhvps_hvon_state;
|
||||
MARTe::uint8 bps_hvon_state;
|
||||
MARTe::uint8 bps_swon_state;
|
||||
MARTe::uint8 p3Value;
|
||||
MARTe::uint8 p4Value;
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
/* Inline method definitions */
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
#endif /* GAMS_JATerminalInterfaceGAM_H_ */
|
||||
Reference in New Issue
Block a user