ARTCSF-3856: Set up simple sample projects and jobs/tests
Change-Id: I5b397ad0e490343ee9a751f81c40e3ebc9ff2bb5
This commit is contained in:
@@ -41,3 +41,17 @@ Once activated, you can execute it:
|
||||
```shell
|
||||
PYTHONPATH=<path_to>//powertrain-build python -m powertrain_build.wrapper build-specific --project-config Projects/CSP/PvcDepDemo/ProjectCfg.json --core-dummy
|
||||
```
|
||||
|
||||
### Local Testing
|
||||
|
||||
Other than the unit tests, there are two very small sample projects to build.
|
||||
These projects can be found in the *test_data/test_repo/Projects* folder.
|
||||
|
||||
The project *ZC/ZCLA_LVCSC* generates a yaml file describing the interface,
|
||||
as well as collecting/generating source code.
|
||||
*CSP/CATC* only collects/generates source code.
|
||||
|
||||
To test run one of these projects, start a terminal in the *test_data/test_repo* folder and execute:
|
||||
|
||||
* `export PYTHONPATH=my/path/to/powertrain-build/`
|
||||
* `python3 -m powertrain_build.wrapper --build CSP/CATC`
|
||||
|
36
playbooks/powertrain-build-and-compile.yaml
Normal file
36
playbooks/powertrain-build-and-compile.yaml
Normal file
@@ -0,0 +1,36 @@
|
||||
---
|
||||
- name: powertrain-build build and compile
|
||||
hosts: all
|
||||
pre_tasks:
|
||||
- name: Install pip3
|
||||
ansible.builtin.apt:
|
||||
name: python3-pip
|
||||
become: true
|
||||
- name: Install gcc
|
||||
ansible.builtin.apt:
|
||||
name: gcc-multilib
|
||||
become: true
|
||||
tasks:
|
||||
- name: Create virtual python env
|
||||
ansible.builtin.command: python3 -m venv {{ venv_folder }}
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
- name: Install powertrain-build
|
||||
ansible.builtin.command: ./{{ venv_folder }}/bin/python -m pip install .
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}"
|
||||
- name: Build test projects
|
||||
ansible.builtin.command: ../../{{ venv_folder }}/bin/python -m powertrain_build.wrapper build-specific --project-config Projects/{{ item.project }}/ProjectCfg.json --no-abort --complete-a2l --rte-dummy
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}/test_data/test_repo"
|
||||
loop: "{{ test_projects }}"
|
||||
- name: Create dummy main file
|
||||
ansible.builtin.copy:
|
||||
dest: "{{ zuul.project.src_dir }}/test_data/test_repo/Projects/{{ item.project }}/output/SourceCode/main.c"
|
||||
content: int main() {return 0;}
|
||||
loop: "{{ test_projects }}"
|
||||
- name: Compile test project
|
||||
ansible.builtin.shell: gcc -Wall -I. *.c -o {{ item.name | lower }}
|
||||
args:
|
||||
chdir: "{{ zuul.project.src_dir }}/test_data/test_repo/Projects/{{ item.project }}/output/SourceCode"
|
||||
loop: "{{ test_projects }}"
|
102
test_data/test_repo/ConfigDocuments/BaseConfig.json
Normal file
102
test_data/test_repo/ConfigDocuments/BaseConfig.json
Normal file
@@ -0,0 +1,102 @@
|
||||
{
|
||||
"BaseConfigFileVersion": "0.2.1",
|
||||
"ProjectInfo" : {
|
||||
"deviceDomains": "./conf.local/DeviceDomains.json",
|
||||
"serviceInterfaces": "./conf.local/ServiceInterfaces.json",
|
||||
"didDefFile": "DIDIds_FullRange",
|
||||
"didCarCom": "./output/CarCom_DIDDefs.csv",
|
||||
"srcCodeDstDir": "./output/SourceCode",
|
||||
"reportDstDir": "./output/Reports",
|
||||
"logDstDir": "./output/logs",
|
||||
"configDir": "../../ConfigDocuments",
|
||||
"interfaceCfgDir": "./Config/ActiveInterfaces",
|
||||
"commonSrcDir": "../../Models/Common/pybuild_src",
|
||||
"prjUnitSrcDir": "../../Models/*/Vc*/pybuild_src",
|
||||
"prjUnitCfgDir": "../../Models/*/Vc*/pybuild_cfg",
|
||||
"prjUnitMdlDir": "../../Models/*/Vc*",
|
||||
"prjLocalDefs": "*_LocalDefs.h",
|
||||
"prjCodeswitches": "SPM_Codeswitch_Setup*.csv",
|
||||
"coreDummyFileName" : "VcCoreDummy",
|
||||
"featureHeaderName": "VcCodeSwDefines.h",
|
||||
"tsHeaderName": "VcUnitTsDefines.h",
|
||||
"useGlobalConst" : "VcConst"
|
||||
},
|
||||
"NvmConfig": {
|
||||
"fileName" : "vcc_nvm_struct",
|
||||
"baseNvmStructs" : "./conf.local/nvm_structs.json"
|
||||
},
|
||||
"ProjectTemplates": {
|
||||
"Denso": {
|
||||
"generalAsilLevelDebug": "B",
|
||||
"generalAsilLevelDependability": "B",
|
||||
"generateCalibrationInterfaceFiles": false,
|
||||
"generateCoreDummy": true,
|
||||
"generateDummyVar": true,
|
||||
"generateInterfaceHeaders": false,
|
||||
"generateYamlInterfaceFile": false,
|
||||
"propagateTagName": true,
|
||||
"useA2lSymbolLinks": true,
|
||||
"useSwcNameAsPrefix": false
|
||||
},
|
||||
"RB": {
|
||||
"generalAsilLevelDebug": "B",
|
||||
"generalAsilLevelDependability": "B",
|
||||
"generateCalibrationInterfaceFiles": false,
|
||||
"generateCoreDummy": true,
|
||||
"generateDummyVar": true,
|
||||
"generateInterfaceHeaders": false,
|
||||
"generateYamlInterfaceFile": false,
|
||||
"propagateTagName": false,
|
||||
"useA2lSymbolLinks": false,
|
||||
"useSwcNameAsPrefix": false
|
||||
},
|
||||
"CSP": {
|
||||
"generalAsilLevelDebug": "B",
|
||||
"generalAsilLevelDependability": "B",
|
||||
"generateCalibrationInterfaceFiles": false,
|
||||
"generateCoreDummy": false,
|
||||
"generateDummyVar": false,
|
||||
"generateInterfaceHeaders": false,
|
||||
"generateYamlInterfaceFile": false,
|
||||
"propagateTagName": false,
|
||||
"useA2lSymbolLinks": false,
|
||||
"useSwcNameAsPrefix": false
|
||||
},
|
||||
"HP": {
|
||||
"generalAsilLevelDebug": "B",
|
||||
"generalAsilLevelDependability": "B",
|
||||
"generateCalibrationInterfaceFiles": false,
|
||||
"generateCoreDummy": true,
|
||||
"generateDummyVar": false,
|
||||
"generateInterfaceHeaders": false,
|
||||
"generateYamlInterfaceFile": false,
|
||||
"propagateTagName": false,
|
||||
"useA2lSymbolLinks": false,
|
||||
"useSwcNameAsPrefix": false
|
||||
},
|
||||
"HI": {
|
||||
"generalAsilLevelDebug": "D",
|
||||
"generalAsilLevelDependability": "D",
|
||||
"generateCalibrationInterfaceFiles": false,
|
||||
"generateCoreDummy": false,
|
||||
"generateDummyVar": false,
|
||||
"generateInterfaceHeaders": true,
|
||||
"generateYamlInterfaceFile": false,
|
||||
"propagateTagName": false,
|
||||
"useA2lSymbolLinks": false,
|
||||
"useSwcNameAsPrefix": false
|
||||
},
|
||||
"ZC": {
|
||||
"generalAsilLevelDebug": "B",
|
||||
"generalAsilLevelDependability": "B",
|
||||
"generateCalibrationInterfaceFiles": true,
|
||||
"generateCoreDummy": false,
|
||||
"generateDummyVar": false,
|
||||
"generateInterfaceHeaders": true,
|
||||
"generateYamlInterfaceFile": true,
|
||||
"propagateTagName": false,
|
||||
"useA2lSymbolLinks": false,
|
||||
"useSwcNameAsPrefix": true
|
||||
}
|
||||
}
|
||||
}
|
@@ -0,0 +1,25 @@
|
||||
classdef CarModes < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
Normal(0)
|
||||
Transport(1)
|
||||
Factory(2)
|
||||
Dyno(3)
|
||||
Show(4)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'CarModes';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = CarModes.Normal;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,25 @@
|
||||
classdef CoolgPfmnc < Simulink.IntEnumType
|
||||
%CoolgPfmnc CoolgPfmnc enumeration
|
||||
|
||||
enumeration
|
||||
Uncertain(0)
|
||||
NotOk(1)
|
||||
LimitedPerformance(2)
|
||||
Ok(3)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'CoolgPfmnc';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = CoolgPfmnc.Uncertain;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,31 @@
|
||||
classdef CoolingFlowPower < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
k0percentage(0)
|
||||
k10percentage(1)
|
||||
k20percentage(2)
|
||||
k30percentage(3)
|
||||
k40percentage(4)
|
||||
k50percentage(5)
|
||||
k60percentage(6)
|
||||
k70percentage(7)
|
||||
k80percentage(8)
|
||||
k90percentage(9)
|
||||
k100percentage(10)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'CoolingFlowPower';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = CoolingFlowPower.k0percentage;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,25 @@
|
||||
classdef EmCoolgReq < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
NoRequestForMoreCoolantPower(0)
|
||||
IncreaseLevel1ForMoreCoolantPower(1)
|
||||
IncreaseLevel2ForMoreCoolantPower(2)
|
||||
MaxCoolingPower(3)
|
||||
NotDefined(4)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'EmCoolgReq';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = EmCoolgReq.NotDefined;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
26
test_data/test_repo/Models/Common/VcEnumDefinitions/EmMod.m
Normal file
26
test_data/test_repo/Models/Common/VcEnumDefinitions/EmMod.m
Normal file
@@ -0,0 +1,26 @@
|
||||
classdef EmMod < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
Initiation(0)
|
||||
Standby(1)
|
||||
TorqueControl(2)
|
||||
PreCharge(3)
|
||||
PowerDown(4)
|
||||
Fault(5)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'EmMod';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = EmMod.Initiation;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,23 @@
|
||||
classdef HvBattSnsrSts < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
Uncertain(0)
|
||||
Ok(1)
|
||||
NotOk(2)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'HvBattSnsrSts';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = HvBattSnsrSts.Uncertain;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,27 @@
|
||||
classdef HvChrgrCnctnSts < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
Initialization(0)
|
||||
Disconnected(1)
|
||||
NoPower(2)
|
||||
NotActivated(3)
|
||||
Ongoing(4)
|
||||
NotUsed(5)
|
||||
Fault(6)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'HvChrgrCnctnSts';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = HvChrgrCnctnSts.Initialization;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,31 @@
|
||||
classdef HvChrgrTyp < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
NotDetected(0)
|
||||
SinglePhaseAc(1)
|
||||
CHAdeMO(2)
|
||||
CcsDc(3)
|
||||
GbtDc(4)
|
||||
ThreePhaseAc(5)
|
||||
Inductive(6)
|
||||
TwoPhaseAC(7)
|
||||
CiaoJi1(8)
|
||||
CiaoJi2(9)
|
||||
Invalid(10)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'HvChrgrTyp';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = HvChrgrTyp.NotDetected;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,22 @@
|
||||
classdef HvCntctSts < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
Open(0)
|
||||
Closed(1)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'HvCntctSts';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = HvCntctSts.Open;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,25 @@
|
||||
classdef HvDcDcFltSts < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
Electrical(0)
|
||||
OverTemperature(1)
|
||||
Communication(2)
|
||||
MicroControl(3)
|
||||
Unknown(4)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'HvDcDcFltSts';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = HvDcDcFltSts.Unknown;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
@@ -0,0 +1,24 @@
|
||||
classdef HvDcDcMod < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
NoConversion(0)
|
||||
BuckMode(1)
|
||||
BoostMode(2)
|
||||
NotSpecified(3)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'HvDcDcMod';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = HvDcDcMod.NotSpecified;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
26
test_data/test_repo/Models/Common/VcEnumDefinitions/VmsQf.m
Normal file
26
test_data/test_repo/Models/Common/VcEnumDefinitions/VmsQf.m
Normal file
@@ -0,0 +1,26 @@
|
||||
classdef VmsQf < Simulink.IntEnumType
|
||||
|
||||
enumeration
|
||||
Error(0)
|
||||
Unknown(1)
|
||||
Low(2)
|
||||
Medium(3)
|
||||
High(4)
|
||||
Full(5)
|
||||
end
|
||||
|
||||
methods (Static)
|
||||
function retVal = getDescription()
|
||||
retVal = 'VmsQf';
|
||||
end
|
||||
function retVal = getDefaultValue()
|
||||
retVal = VmsQf.Unknown;
|
||||
end
|
||||
function retVal = getDataScope()
|
||||
retVal = 'Exported';
|
||||
end
|
||||
function retVal = addClassNameToEnumNames()
|
||||
retVal = true;
|
||||
end
|
||||
end
|
||||
end
|
31
test_data/test_repo/Models/Common/pybuild_src/tl_basetypes.h
Normal file
31
test_data/test_repo/Models/Common/pybuild_src/tl_basetypes.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/**************************************************************************************************\
|
||||
***
|
||||
*** Simulink model : VcConst_OPortMvd
|
||||
*** TargetLink subsystem : VcConst_OPortMvd/VcConst
|
||||
*** Codefile : tl_basetypes.h
|
||||
***
|
||||
*** Generation date: 2019-02-12 20:32:00
|
||||
***
|
||||
*** TargetLink version : 4.3p3 from 16-Oct-2018
|
||||
*** Code generator version : Build Id 4.3.0.27 from 2018-09-24 17:55:03
|
||||
\**************************************************************************************************/
|
||||
|
||||
#ifndef TL_BASETYPES_H
|
||||
#define TL_BASETYPES_H
|
||||
|
||||
|
||||
|
||||
typedef unsigned char Bool; /* Description: boolean basetype */
|
||||
typedef float Float32; /* Description: 32 bit floating-point basetype */
|
||||
typedef double Float64; /* Description: 64 bit floating-point basetype */
|
||||
typedef signed short int Int16; /* Description: 16 bit signed integer basetype */
|
||||
typedef signed long int Int32; /* Description: 32 bit signed integer basetype */
|
||||
typedef signed char Int8; /* Description: 8 bit signed integer basetype */
|
||||
typedef unsigned short int UInt16; /* Description: 16 bit unsigned integer basetype */
|
||||
typedef unsigned long int UInt32; /* Description: 32 bit unsigned integer basetype */
|
||||
typedef unsigned char UInt8; /* Description: 8 bit unsigned integer basetype */
|
||||
|
||||
#endif /* TL_BASETYPES_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
22
test_data/test_repo/Models/Common/pybuild_src/tl_types.h
Normal file
22
test_data/test_repo/Models/Common/pybuild_src/tl_types.h
Normal file
@@ -0,0 +1,22 @@
|
||||
/**************************************************************************************************\
|
||||
***
|
||||
*** Simulink model : VcConst_OPortMvd
|
||||
*** TargetLink subsystem : VcConst_OPortMvd/VcConst
|
||||
*** Codefile : tl_types.h
|
||||
***
|
||||
*** Generation date: 2019-02-12 20:32:00
|
||||
***
|
||||
*** TargetLink version : 4.3p3 from 16-Oct-2018
|
||||
*** Code generator version : Build Id 4.3.0.27 from 2018-09-24 17:55:03
|
||||
\**************************************************************************************************/
|
||||
|
||||
#ifndef TL_TYPES_H
|
||||
#define TL_TYPES_H
|
||||
|
||||
|
||||
#include "tl_basetypes.h"
|
||||
|
||||
#endif /* TL_TYPES_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
@@ -0,0 +1,11 @@
|
||||
########################################################
|
||||
#
|
||||
# Service for input values of app to VcTestRx model
|
||||
#
|
||||
########################################################
|
||||
service:
|
||||
ClimateAndThermalControlInternal:
|
||||
properties:
|
||||
- ControlRequests:
|
||||
- insignal: yVcVmp_B_VehModConv
|
||||
property: dummy
|
@@ -0,0 +1,77 @@
|
||||
{
|
||||
"version": "0.2.1",
|
||||
"includes": [],
|
||||
"integrity_level": "QM",
|
||||
"outports": {
|
||||
"sVcTestRx_Te_AmbTRaw": {
|
||||
"handle": "VcTestRx/VcTestRx/Subsystem/VcTestRx/Out1",
|
||||
"name": "sVcTestRx_Te_AmbTRaw",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"description": "Ambient Temperature Raw",
|
||||
"type": "Float32",
|
||||
"unit": "deg C",
|
||||
"offset": "-",
|
||||
"lsb": "-",
|
||||
"min": "-",
|
||||
"max": "-",
|
||||
"class": "CVC_DISP",
|
||||
"width": 1
|
||||
}
|
||||
},
|
||||
"inports": {
|
||||
"yVcVmp_B_VehModConv": {
|
||||
"handle": "VcTestRx/VcTestRx/Subsystem/VcTestRx/In1",
|
||||
"name": "yVcVmp_B_VehModConv",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"description": "Vehicle Mode convinience",
|
||||
"type": "Bool",
|
||||
"unit": "-",
|
||||
"offset": "-",
|
||||
"lsb": "-",
|
||||
"min": "-",
|
||||
"max": "-",
|
||||
"class": "CVC_EXT",
|
||||
"width": 1
|
||||
}
|
||||
},
|
||||
"core": {
|
||||
"Events": {},
|
||||
"IUMPR": {},
|
||||
"FIDs": {},
|
||||
"Ranking": {},
|
||||
"TstId": {}
|
||||
},
|
||||
"dids": {},
|
||||
"nvm": {},
|
||||
"pre_procs": [],
|
||||
"local_vars": {
|
||||
"rVcTestRx_Z_Version": {
|
||||
"type": "Float32",
|
||||
"unit": "-",
|
||||
"description": "Version of the VcTestRx SPM",
|
||||
"max": 10000,
|
||||
"min": 0,
|
||||
"lsb": 1,
|
||||
"offset": 0,
|
||||
"class": "CVC_DISP",
|
||||
"handle": "VcTestRx/VcTestRx/Subsystem/VcTestRx/Gain1",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"width": 1
|
||||
}
|
||||
},
|
||||
"calib_consts": {
|
||||
"cVcTestRx_B_EmFrntCoolgReqSwi": {
|
||||
"type": "Bool",
|
||||
"unit": "-",
|
||||
"description": "Wheel Motor System Front Cooling Request",
|
||||
"max": "-",
|
||||
"min": "-",
|
||||
"lsb": 1,
|
||||
"offset": 0,
|
||||
"class": "CVC_CAL",
|
||||
"handle": "VcTestRx/VcTestRx/Subsystem/VcTestRx/VcTestRx/1_From_ihfa/B_EmFrntCoolgReqSwi",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"width": 1
|
||||
}
|
||||
}
|
||||
}
|
117
test_data/test_repo/Models/IF/VcTestRx/pybuild_src/VcTestRx.c
Normal file
117
test_data/test_repo/Models/IF/VcTestRx/pybuild_src/VcTestRx.c
Normal file
@@ -0,0 +1,117 @@
|
||||
#ifndef VCTESTRX_C
|
||||
#define VCTESTRX_C
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES (OPT)
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
INCLUDES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "VcUnitTsDefines.h"
|
||||
#include "VcTestRx.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
ENUMS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
TYPEDEFS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
VARIABLES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "CVC_CAL_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_CAL: CVC calibration constants in FLASH | Width: 32
|
||||
\**************************************************************************************************/
|
||||
CVC_CAL Bool cVcTestRx_B_EmFrntCoolgReqSwi = 0; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 1
|
||||
Description: Dummy */
|
||||
#include "CVC_CAL_END.h"
|
||||
|
||||
#include "CVC_DISP_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_DISP: CVC global observable variables in RAM | Width: 32
|
||||
\**************************************************************************************************/
|
||||
CVC_DISP Float32 sVcTestRx_Te_AmbTRaw; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 100
|
||||
Description: Dummy */
|
||||
#include "CVC_DISP_END.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
PARAMETERIZED MACROS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
FUNCTION PROTOTYPES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
INLINE FUNCTIONS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
FUNCTION DEFINITIONS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/**************************************************************************************************\
|
||||
*** FUNCTION:
|
||||
*** RESTART_VcTestRx
|
||||
***
|
||||
*** DESCRIPTION:
|
||||
*** Main restart function
|
||||
***
|
||||
***
|
||||
*** PARAMETERS:
|
||||
*** Type Name Description
|
||||
*** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
***
|
||||
*** RETURNS:
|
||||
*** void
|
||||
***
|
||||
*** SETTINGS:
|
||||
***
|
||||
\**************************************************************************************************/
|
||||
#include "CVC_CODE_START.h"
|
||||
void RESTART_VcTestRx(void)
|
||||
{
|
||||
cVcTestRx_B_EmFrntCoolgReqSwi = 0;
|
||||
}
|
||||
#include "CVC_CODE_END.h"
|
||||
|
||||
/**************************************************************************************************\
|
||||
*** FUNCTION:
|
||||
*** VcTestRx
|
||||
***
|
||||
*** DESCRIPTION:
|
||||
***
|
||||
***
|
||||
*** PARAMETERS:
|
||||
*** Type Name Description
|
||||
*** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
***
|
||||
*** RETURNS:
|
||||
*** void
|
||||
***
|
||||
*** SETTINGS:
|
||||
***
|
||||
\**************************************************************************************************/
|
||||
#include "CVC_CODE_START.h"
|
||||
void VcTestRx(void)
|
||||
{
|
||||
sVcTestRx_Te_AmbTRaw = (Float32)yVcVmp_B_VehModConv;
|
||||
cVcTestRx_B_EmFrntCoolgReqSwi = 0;
|
||||
}
|
||||
#include "CVC_CODE_END.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
MODULE LOCAL FUNCTION DEFINITIONS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
#endif /* VCTESTRX_C */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
@@ -0,0 +1,71 @@
|
||||
#ifndef VCTESTRX_H
|
||||
#define VCTESTRX_H
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES (OPT)
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
INCLUDES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "udt_TestRx.h"
|
||||
#include "tl_defines_TestRx.h"
|
||||
#include "tl_basetypes.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
ENUMS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
TYPEDEFS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
VARIABLES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "PREDECL_CAL_START.h"
|
||||
extern CVC_CAL Bool cVcTestRx_B_EmFrntCoolgReqSwi; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 1
|
||||
Description: Dummy */
|
||||
#include "PREDECL_CAL_END.h"
|
||||
|
||||
#include "PREDECL_DISP_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_DISP: CVC global observable variables in RAM | Width: 32
|
||||
\**************************************************************************************************/
|
||||
extern CVC_DISP Float32 sVcTestRx_Te_AmbTRaw; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 100
|
||||
Description: Dummy */
|
||||
#include "PREDECL_DISP_END.h"
|
||||
|
||||
#include "PREDECL_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_EXT: CVC external interface input variables | Width: 32
|
||||
\**************************************************************************************************/
|
||||
CVC_EXT Bool yVcVmp_B_VehModConv; /*
|
||||
Unit: deg C
|
||||
MIN/MAX: 0 .. 1
|
||||
Description: Dummy */
|
||||
#include "PREDECL_END.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
PARAMETERIZED MACROS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
FUNCTION PROTOTYPES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/**************************************************************************************************\
|
||||
GLOBAL_FCN: global function(s) (exported to other modules)
|
||||
\**************************************************************************************************/
|
||||
extern void RESTART_VcTestRx(void);
|
||||
extern void VcTestRx(void);
|
||||
|
||||
#endif /* VCTESTRX_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
@@ -0,0 +1,16 @@
|
||||
#ifndef TL_DEFINES_TESTRX_H
|
||||
#define TL_DEFINES_TESTRX_H
|
||||
|
||||
/**************************************************************************************************\
|
||||
TL_CG_MACROCL_GLOBAL: Default macro class for macros with module extent
|
||||
\**************************************************************************************************/
|
||||
#define CVC_CAL
|
||||
#define CVC_DISP
|
||||
#define CVC_EXT extern
|
||||
#define EXTERN_GLOBAL_ALIAS extern
|
||||
|
||||
#endif /* TL_DEFINES_TESTRX_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
107
test_data/test_repo/Models/IF/VcTestRx/pybuild_src/udt_TestRx.h
Normal file
107
test_data/test_repo/Models/IF/VcTestRx/pybuild_src/udt_TestRx.h
Normal file
@@ -0,0 +1,107 @@
|
||||
#ifndef UDT_TESTRX_H
|
||||
#define UDT_TESTRX_H
|
||||
|
||||
#include "tl_basetypes.h"
|
||||
|
||||
typedef enum CarModes_tag {
|
||||
CARMODES_NORMAL = 0,
|
||||
CARMODES_TRANSPORT = 1,
|
||||
CARMODES_FACTORY = 2,
|
||||
CARMODES_DYNO = 3,
|
||||
CARMODES_SHOW = 4
|
||||
} CarModes; /* Description: Enumeration type derived from Simulink type CarModes */
|
||||
|
||||
typedef enum CoolingFlowPower_tag {
|
||||
COOLINGFLOWPOWER_K0PERCENTAGE = 0,
|
||||
COOLINGFLOWPOWER_K10PERCENTAGE = 1,
|
||||
COOLINGFLOWPOWER_K20PERCENTAGE = 2,
|
||||
COOLINGFLOWPOWER_K30PERCENTAGE = 3,
|
||||
COOLINGFLOWPOWER_K40PERCENTAGE = 4,
|
||||
COOLINGFLOWPOWER_K50PERCENTAGE = 5,
|
||||
COOLINGFLOWPOWER_K60PERCENTAGE = 6,
|
||||
COOLINGFLOWPOWER_K70PERCENTAGE = 7,
|
||||
COOLINGFLOWPOWER_K80PERCENTAGE = 8,
|
||||
COOLINGFLOWPOWER_K90PERCENTAGE = 9,
|
||||
COOLINGFLOWPOWER_K100PERCENTAGE = 10
|
||||
} CoolingFlowPower; /* Description: Enumeration type derived from Simulink type CoolingFlowPower */
|
||||
|
||||
typedef enum EmCoolgReq_tag {
|
||||
EMCOOLGREQ_NOREQUESTFORMORECOOLANTPOWER = 0,
|
||||
EMCOOLGREQ_INCREASELEVEL1FORMORECOOLANTPOWER = 1,
|
||||
EMCOOLGREQ_INCREASELEVEL2FORMORECOOLANTPOWER = 2,
|
||||
EMCOOLGREQ_MAXCOOLINGPOWER = 3,
|
||||
EMCOOLGREQ_NOTDEFINED = 4
|
||||
} EmCoolgReq; /* Description: Enumeration type derived from Simulink type EmCoolgReq */
|
||||
|
||||
typedef enum EmMod_tag {
|
||||
EMMOD_INITIATION = 0,
|
||||
EMMOD_STANDBY = 1,
|
||||
EMMOD_TORQUECONTROL = 2,
|
||||
EMMOD_PRECHARGE = 3,
|
||||
EMMOD_POWERDOWN = 4,
|
||||
EMMOD_FAULT = 5
|
||||
} EmMod; /* Description: Enumeration type derived from Simulink type EmMod */
|
||||
|
||||
typedef enum HvBattSnsrSts_tag {
|
||||
HVBATTSNSRSTS_UNCERTAIN = 0,
|
||||
HVBATTSNSRSTS_OK = 1,
|
||||
HVBATTSNSRSTS_NOTOK = 2
|
||||
} HvBattSnsrSts; /* Description: Enumeration type derived from Simulink type HvBattSnsrSts */
|
||||
|
||||
typedef enum HvChrgrCnctnSts_tag {
|
||||
HVCHRGRCNCTNSTS_INITIALIZATION = 0,
|
||||
HVCHRGRCNCTNSTS_DISCONNECTED = 1,
|
||||
HVCHRGRCNCTNSTS_NOPOWER = 2,
|
||||
HVCHRGRCNCTNSTS_NOTACTIVATED = 3,
|
||||
HVCHRGRCNCTNSTS_ONGOING = 4,
|
||||
HVCHRGRCNCTNSTS_NOTUSED = 5,
|
||||
HVCHRGRCNCTNSTS_FAULT = 6
|
||||
} HvChrgrCnctnSts; /* Description: Enumeration type derived from Simulink type HvChrgrCnctnSts */
|
||||
|
||||
typedef enum HvChrgrTyp_tag {
|
||||
HVCHRGRTYP_NOTDETECTED = 0,
|
||||
HVCHRGRTYP_SINGLEPHASEAC = 1,
|
||||
HVCHRGRTYP_CHADEMO = 2,
|
||||
HVCHRGRTYP_CCSDC = 3,
|
||||
HVCHRGRTYP_GBTDC = 4,
|
||||
HVCHRGRTYP_THREEPHASEAC = 5,
|
||||
HVCHRGRTYP_INDUCTIVE = 6,
|
||||
HVCHRGRTYP_TWOPHASEAC = 7,
|
||||
HVCHRGRTYP_CIAOJI1 = 8,
|
||||
HVCHRGRTYP_CIAOJI2 = 9,
|
||||
HVCHRGRTYP_INVALID = 10
|
||||
} HvChrgrTyp; /* Description: Enumeration type derived from Simulink type HvChrgrTyp */
|
||||
|
||||
typedef enum HvCntctSts_tag {
|
||||
HVCNTCTSTS_OPEN = 0,
|
||||
HVCNTCTSTS_CLOSED = 1
|
||||
} HvCntctSts; /* Description: Enumeration type derived from Simulink type HvCntctSts */
|
||||
|
||||
typedef enum HvDcDcFltSts_tag {
|
||||
HVDCDCFLTSTS_ELECTRICAL = 0,
|
||||
HVDCDCFLTSTS_OVERTEMPERATURE = 1,
|
||||
HVDCDCFLTSTS_COMMUNICATION = 2,
|
||||
HVDCDCFLTSTS_MICROCONTROL = 3,
|
||||
HVDCDCFLTSTS_UNKNOWN = 4
|
||||
} HvDcDcFltSts; /* Description: Enumeration type derived from Simulink type HvDcDcFltSts */
|
||||
|
||||
typedef enum HvDcDcMod_tag {
|
||||
HVDCDCMOD_NOCONVERSION = 0,
|
||||
HVDCDCMOD_BUCKMODE = 1,
|
||||
HVDCDCMOD_BOOSTMODE = 2,
|
||||
HVDCDCMOD_NOTSPECIFIED = 3
|
||||
} HvDcDcMod; /* Description: Enumeration type derived from Simulink type HvDcDcMod */
|
||||
|
||||
typedef enum VmsQf_tag {
|
||||
VMSQF_ERROR = 0,
|
||||
VMSQF_UNKNOWN = 1,
|
||||
VMSQF_LOW = 2,
|
||||
VMSQF_MEDIUM = 3,
|
||||
VMSQF_HIGH = 4,
|
||||
VMSQF_FULL = 5
|
||||
} VmsQf; /* Description: Enumeration type derived from Simulink type VmsQf */
|
||||
|
||||
#endif /* UDT_TESTRX_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
@@ -0,0 +1,13 @@
|
||||
########################################################
|
||||
#
|
||||
# Direct connection for output values of app from VcTestTx model
|
||||
# To different DPs
|
||||
#
|
||||
# Please correct the list below with correct domains and properties
|
||||
# Group signals that match together?
|
||||
#
|
||||
########################################################
|
||||
signals:
|
||||
dummy:
|
||||
- outsignal: sVcTestTx_X_AirFlapPosnReqForDefrst1
|
||||
property: dummy
|
@@ -0,0 +1,121 @@
|
||||
{
|
||||
"version": "0.2.1",
|
||||
"includes": [],
|
||||
"integrity_level": "QM",
|
||||
"outports": {
|
||||
"sVcTestTx_X_AirFlapPosnReqForDefrst1": {
|
||||
"handle": "VcTestTx/VcTestTx/Subsystem/VcTestTx/Out1",
|
||||
"name": "sVcTestTx_X_AirFlapPosnReqForDefrst1",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"description": "HVAC actuator request",
|
||||
"type": "Float32",
|
||||
"unit": "%",
|
||||
"offset": "-",
|
||||
"lsb": "-",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"class": "CVC_DISP",
|
||||
"width": 1
|
||||
}
|
||||
},
|
||||
"inports": {
|
||||
"sVcCcHvcTx_X_ActRqRo1Def": {
|
||||
"handle": "VcTestTx/VcTestTx/Subsystem/VcTestTx/In1",
|
||||
"name": "sVcCcHvcTx_X_ActRqRo1Def",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"description": "HVAC actuator request",
|
||||
"type": "Float32",
|
||||
"unit": "-",
|
||||
"offset": "-",
|
||||
"lsb": "-",
|
||||
"min": 0,
|
||||
"max": 100,
|
||||
"class": "CVC_EXT",
|
||||
"width": 1
|
||||
}
|
||||
},
|
||||
"core": {
|
||||
"Events": {
|
||||
"AccPedSnsr1Fault": {
|
||||
"API_blk": [
|
||||
{
|
||||
"path": "VcTestTx/VcTestTx/Subsystem/VcTestTx/VcTestTx/1_Diag/12_DTC/122_AccrPedl/Dem_SetEventStatusPF",
|
||||
"config": [
|
||||
"all"
|
||||
]
|
||||
},
|
||||
{
|
||||
"path": "VcTestTx/VcTestTx/Subsystem/VcTestTx/VcTestTx/1_Diag/12_DTC/122_AccrPedl/Dem_SetEventStatusPP",
|
||||
"config": [
|
||||
"all"
|
||||
]
|
||||
}
|
||||
],
|
||||
"blk_name": "NamedConstant",
|
||||
"subsystem": "VcTestTx/VcTestTx/Subsystem/VcTestTx/VcTestTx/1_Diag/12_DTC/122_AccrPedl",
|
||||
"API_blk_type": "Dem_SetEventStatusPre-Passed",
|
||||
"description": "Description missing",
|
||||
"type": "-",
|
||||
"unit": "-",
|
||||
"offset": "-",
|
||||
"lsb": "-",
|
||||
"min": "-",
|
||||
"max": "-",
|
||||
"class": "-",
|
||||
"configs": "((ALWAYS_ACTIVE))"
|
||||
}
|
||||
},
|
||||
"IUMPR": {},
|
||||
"FIDs": {},
|
||||
"Ranking": {},
|
||||
"TstId": {}
|
||||
},
|
||||
"dids": {
|
||||
"rVcTestTx_D_AccrPedlPosnInfo": {
|
||||
"handle": "VcTestTx__SPA3/VcTestTx/Subsystem/VcTestTx/VcTestTx/1_Diag/11_DID/111_AccrPedlDIDs/1111_AccPedPosnDID/Sum6",
|
||||
"name": "rVcTestTx_D_AccrPedlPosnInfo",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"description": "DID FFFF Accelerator Pedal Logical Position and Quality.",
|
||||
"type": "UInt16",
|
||||
"unit": "-",
|
||||
"offset": 0,
|
||||
"lsb": 1,
|
||||
"min": "-",
|
||||
"max": "-",
|
||||
"class": "CVC_DISP"
|
||||
}
|
||||
},
|
||||
"nvm": {},
|
||||
"pre_procs": [],
|
||||
"local_vars": {
|
||||
"rVcTestTx_D_AccrPedlPosnInfo": {
|
||||
"handle": "VcTestTx__SPA3/VcTestTx/Subsystem/VcTestTx/VcTestTx/1_Diag/11_DID/111_AccrPedlDIDs/1111_AccPedPosnDID/Sum6",
|
||||
"name": "rVcTestTx_D_AccrPedlPosnInfo",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"description": "DID FFFF Accelerator Pedal Logical Position and Quality.",
|
||||
"type": "UInt16",
|
||||
"unit": "-",
|
||||
"offset": 0,
|
||||
"lsb": 1,
|
||||
"min": "-",
|
||||
"max": "-",
|
||||
"width": 1,
|
||||
"class": "CVC_DISP"
|
||||
}
|
||||
},
|
||||
"calib_consts": {
|
||||
"cVcTestTx_B_HvcFanRampSw": {
|
||||
"type": "Bool",
|
||||
"unit": "-",
|
||||
"description": "",
|
||||
"max": "-",
|
||||
"min": "-",
|
||||
"lsb": 1,
|
||||
"offset": 0,
|
||||
"class": "CVC_CAL",
|
||||
"handle": "VcTestTx/VcTestTx/Subsystem/VcTestTx/VcTestTx/HvcTx_To_HBMF/B_HvcFanRampSw",
|
||||
"configs": "((ALWAYS_ACTIVE))",
|
||||
"width": 1
|
||||
}
|
||||
}
|
||||
}
|
121
test_data/test_repo/Models/IF/VcTestTx/pybuild_src/VcTestTx.c
Normal file
121
test_data/test_repo/Models/IF/VcTestTx/pybuild_src/VcTestTx.c
Normal file
@@ -0,0 +1,121 @@
|
||||
#ifndef VCTESTTX_C
|
||||
#define VCTESTTX_C
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES (OPT)
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
INCLUDES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "VcUnitTsDefines.h"
|
||||
#include "VcTestTx.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
ENUMS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
TYPEDEFS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
VARIABLES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "CVC_CAL_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_CAL: CVC calibration constants in FLASH | Width: 32
|
||||
\**************************************************************************************************/
|
||||
CVC_CAL Bool cVcTestTx_B_HvcFanRampSw = 0; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 1
|
||||
Description: Dummy */
|
||||
#include "CVC_CAL_END.h"
|
||||
|
||||
#include "CVC_DISP_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_DISP: CVC global observable variables in RAM | Width: 32
|
||||
\**************************************************************************************************/
|
||||
CVC_DISP Float32 sVcTestTx_X_AirFlapPosnReqForDefrst1; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 100
|
||||
Description: Dummy */
|
||||
CVC_DISP UInt16 rVcTestTx_D_AccrPedlPosnInfo; /*
|
||||
Unit: -
|
||||
MIN/MAX: -
|
||||
Description: DID FFFF Accelerator Pedal Logical Position and Quality. */
|
||||
#include "CVC_DISP_END.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
PARAMETERIZED MACROS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
FUNCTION PROTOTYPES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
INLINE FUNCTIONS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
FUNCTION DEFINITIONS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/**************************************************************************************************\
|
||||
*** FUNCTION:
|
||||
*** RESTART_VcTestTx
|
||||
***
|
||||
*** DESCRIPTION:
|
||||
*** Main restart function
|
||||
***
|
||||
***
|
||||
*** PARAMETERS:
|
||||
*** Type Name Description
|
||||
*** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
***
|
||||
*** RETURNS:
|
||||
*** void
|
||||
***
|
||||
*** SETTINGS:
|
||||
***
|
||||
\**************************************************************************************************/
|
||||
#include "CVC_CODE_START.h"
|
||||
void RESTART_VcTestTx(void)
|
||||
{
|
||||
cVcTestTx_B_HvcFanRampSw = 0;
|
||||
}
|
||||
#include "CVC_CODE_END.h"
|
||||
|
||||
/**************************************************************************************************\
|
||||
*** FUNCTION:
|
||||
*** VcTestTx
|
||||
***
|
||||
*** DESCRIPTION:
|
||||
***
|
||||
***
|
||||
*** PARAMETERS:
|
||||
*** Type Name Description
|
||||
*** ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
***
|
||||
*** RETURNS:
|
||||
*** void
|
||||
***
|
||||
*** SETTINGS:
|
||||
***
|
||||
\**************************************************************************************************/
|
||||
#include "CVC_CODE_START.h"
|
||||
void VcTestTx(void)
|
||||
{
|
||||
sVcTestTx_X_AirFlapPosnReqForDefrst1 = sVcCcHvcTx_X_ActRqRo1Def;
|
||||
cVcTestTx_B_HvcFanRampSw = 0;
|
||||
}
|
||||
#include "CVC_CODE_END.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
MODULE LOCAL FUNCTION DEFINITIONS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
#endif /* VCTESTTX_C */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
@@ -0,0 +1,75 @@
|
||||
#ifndef VCTESTTX_H
|
||||
#define VCTESTTX_H
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES (OPT)
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
INCLUDES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "udt_TestTx.h"
|
||||
#include "tl_defines_TestTx.h"
|
||||
#include "tl_basetypes.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
ENUMS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
DEFINES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
TYPEDEFS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
VARIABLES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
#include "PREDECL_CAL_START.h"
|
||||
extern CVC_CAL Bool cVcTestTx_B_HvcFanRampSw; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 1
|
||||
Description: Dummy */
|
||||
#include "PREDECL_CAL_END.h"
|
||||
|
||||
#include "PREDECL_DISP_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_DISP: CVC global observable variables in RAM | Width: 32
|
||||
\**************************************************************************************************/
|
||||
extern CVC_DISP Float32 sVcTestTx_X_AirFlapPosnReqForDefrst1; /*
|
||||
Unit: -
|
||||
MIN/MAX: 0 .. 100
|
||||
Description: Dummy */
|
||||
extern CVC_DISP UInt16 rVcTestTx_D_AccrPedlPosnInfo; /*
|
||||
Unit: -
|
||||
MIN/MAX: -
|
||||
Description: DID FFFF Accelerator Pedal Logical Position and Quality. */
|
||||
#include "PREDECL_DISP_END.h"
|
||||
|
||||
#include "PREDECL_START.h"
|
||||
/**************************************************************************************************\
|
||||
CVC_EXT: CVC external interface input variables | Width: 32
|
||||
\**************************************************************************************************/
|
||||
CVC_EXT Float32 sVcCcHvcTx_X_ActRqRo1Def; /*
|
||||
Unit: deg C
|
||||
MIN/MAX: 0 .. 100
|
||||
Description: Dummy */
|
||||
#include "PREDECL_END.h"
|
||||
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
PARAMETERIZED MACROS
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
FUNCTION PROTOTYPES
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
||||
/**************************************************************************************************\
|
||||
GLOBAL_FCN: global function(s) (exported to other modules)
|
||||
\**************************************************************************************************/
|
||||
extern void RESTART_VcTestTx(void);
|
||||
extern void VcTestTx(void);
|
||||
|
||||
#endif /* VCTESTTX_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
@@ -0,0 +1,16 @@
|
||||
#ifndef TL_DEFINES_TESTTX_H
|
||||
#define TL_DEFINES_TESTTX_H
|
||||
|
||||
/**************************************************************************************************\
|
||||
TL_CG_MACROCL_GLOBAL: Default macro class for macros with module extent
|
||||
\**************************************************************************************************/
|
||||
#define CVC_CAL
|
||||
#define CVC_DISP
|
||||
#define CVC_EXT extern
|
||||
#define EXTERN_GLOBAL_ALIAS extern
|
||||
|
||||
#endif /* TL_DEFINES_TESTTX_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
||||
|
@@ -0,0 +1,16 @@
|
||||
#ifndef UDT_TESTTX_H
|
||||
#define UDT_TESTTX_H
|
||||
|
||||
#include "tl_basetypes.h"
|
||||
|
||||
typedef enum CoolgPfmnc_tag {
|
||||
COOLGPFMNC_UNCERTAIN = 0,
|
||||
COOLGPFMNC_NOTOK = 1,
|
||||
COOLGPFMNC_LIMITEDPERFORMANCE = 2,
|
||||
COOLGPFMNC_OK = 3
|
||||
} CoolgPfmnc; /* Description: Enumeration type derived from Simulink type CoolgPfmnc */
|
||||
|
||||
#endif /* UDT_TESTTX_H */
|
||||
/*------------------------------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*------------------------------------------------------------------------------------------------*/
|
@@ -0,0 +1,3 @@
|
||||
;;;;PROJECTS;
|
||||
Model name;Function Id Name;Description;Comments;ClimCtr;Old Id
|
||||
VcDummy;VcFiDummy;VcFi forAmbient Pressure Rationality Monitor (comparison to other sensor at eng off);;;ATPR
|
|
@@ -0,0 +1,3 @@
|
||||
;;;;;PROJECTS;
|
||||
Model name;IUMPR Id Name;Description;Controlling FiD;Comments;ClimCtr;Old Id
|
||||
VcDummy;Vc09Dummy;Ratio Id for Boost Pressure High Rationality Monitor;VcFiDummy;;;BSTR_HI
|
|
@@ -0,0 +1,3 @@
|
||||
;;;;This sheet does not have projects
|
||||
IUMPR Id Name;Description;IUMPR Denominator trigger;Comments;
|
||||
Vc09Dummy;Ratio Id for catalyst monitor;0;;
|
|
@@ -0,0 +1,3 @@
|
||||
;;;;;;PROJECTS;Comments
|
||||
Model name;Mode $06 Name;Description;Fid;Unit and Scaling ID;Comments;ClimCtr;Old Id
|
||||
VcDummy;Vc06Dummy;Test Result Id for high boost pressure Monitoring;VcFiDummy;17;;;BSTR_HI
|
|
@@ -0,0 +1,3 @@
|
||||
;;;;;PROJECTS;
|
||||
Model name;Event Name;Description;Fid;Comments;ClimCtr;Old Id
|
||||
VcDummy;VcRvDummy;Ranking Id for Ambient Pressure Rationality Monitor;VcFiDummy;;;ATPR
|
|
@@ -0,0 +1,3 @@
|
||||
Range Min;Range Max
|
||||
0xE300;0xE32F
|
||||
DID_NAME;DID ID
|
|
@@ -0,0 +1,3 @@
|
||||
Range Min;Range Max
|
||||
0xE300;0xE5FF
|
||||
DID_NAME;DID ID
|
|
@@ -0,0 +1,4 @@
|
||||
Range Min;Range Max
|
||||
0xE400;0xE4FF
|
||||
DID_NAME;DID ID
|
||||
rVcTestTx_D_AccrPedlPosnInfo;0xE400
|
|
@@ -0,0 +1,3 @@
|
||||
Range Min;Range Max
|
||||
0xE400;0xE404
|
||||
DID_NAME;DID ID
|
|
29
test_data/test_repo/Projects/CSP/CATC/ProjectCfg.json
Normal file
29
test_data/test_repo/Projects/CSP/CATC/ProjectCfg.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"ConfigFileVersion": "0.2.1",
|
||||
"BaseConfig" : "../../../ConfigDocuments/BaseConfig.json",
|
||||
"ProjectInfo" : {
|
||||
"yamlInterface": true,
|
||||
"projConfig" : "CSP_CATC",
|
||||
"a2LFileName": "SPM.a2l",
|
||||
"ecuSupplier" : "CSP",
|
||||
"ecuType" : "",
|
||||
"unitCfgDeliveryDir": "./output/UnitCfgs",
|
||||
"configDir": "ConfigDocuments",
|
||||
"prjCodeswitches": "CSP_Codeswitch_Setup*.csv",
|
||||
"commonSrcDir": "../../../Models/Common/pybuild_src",
|
||||
"prjUnitSrcDir": "../../../Models/*/Vc*/pybuild_src",
|
||||
"prjUnitCfgDir": "../../../Models/*/Vc*/pybuild_cfg",
|
||||
"prjUnitMdlDir": "../../../Models/*/Vc*",
|
||||
"useGlobalConst": false,
|
||||
"enumDefDir": "../../../Models/Common/VcEnumDefinitions"
|
||||
},
|
||||
"UnitCfgs": "./conf.local/rasters.json",
|
||||
"includesPathsTree": [
|
||||
"../../../resources/static_code/csp_headers",
|
||||
"../../../resources/static_code/CSPCoreAPITL"
|
||||
],
|
||||
"includedCommonFiles": [
|
||||
"tl_basetypes",
|
||||
"tl_types"
|
||||
]
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"dummy": "dummy"
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"ClimateAndThermalControlInternal": "climate-and-thermal-control-service"
|
||||
}
|
@@ -0,0 +1 @@
|
||||
[]
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"SampleTimes": {
|
||||
"VcExt50ms": 0.05
|
||||
},
|
||||
"VcExt50ms": [
|
||||
"VcTestRx",
|
||||
"VcTestTx"
|
||||
]
|
||||
}
|
2
test_data/test_repo/Projects/CSP/hal_list.yaml
Normal file
2
test_data/test_repo/Projects/CSP/hal_list.yaml
Normal file
@@ -0,0 +1,2 @@
|
||||
hal-dummy: DummyHAL
|
||||
|
@@ -0,0 +1,32 @@
|
||||
# NOTE: This is an example file describing external diagnostics needs,
|
||||
# the struct contains data for both the yaml2arxml and the yaml2xml tools,
|
||||
# which are tools internal for Volvo.
|
||||
diagnostics:
|
||||
events:
|
||||
AccPedSnsr1Fault:
|
||||
operations: [SetEventStatus]
|
||||
runnable: [AR_LVCSC_VcExt10ms]
|
||||
Identifier: '0xFF'
|
||||
ThresholdUnconfirmed: 127
|
||||
StepDown: 128
|
||||
JumpDown: "on"
|
||||
JumpDownInit: 0
|
||||
StepUp: 127
|
||||
JumpUp: "on"
|
||||
JumpUpInit: 0
|
||||
TestFailedLimit: 127
|
||||
TestPassedLimit: -128
|
||||
AgedDTCLimit: 255
|
||||
ConfirmedDTCLimit: 3
|
||||
DTCEventPriority: 1
|
||||
OperationCycle: Dummy
|
||||
EnaDEMInd: off
|
||||
IndEnaCondGroup: Dummy
|
||||
IndSnapshotGroup: Dummy
|
||||
dids:
|
||||
rVcTestTx_D_AccrPedlPosnInfo:
|
||||
Identifier: 'FFFF'
|
||||
NumberOfParameters: 2
|
||||
TotalNoOfBytes: 2
|
||||
operations:
|
||||
ReadData: {}
|
@@ -0,0 +1,31 @@
|
||||
nv-needs:
|
||||
LVCSC_NVM_LIST_8:
|
||||
type: type1
|
||||
method: NVSWCOMPONENT
|
||||
datatype: UInt8
|
||||
runnables: [AR_LVCSC_VcExt10ms]
|
||||
LVCSC_NVM_LIST_8_PER:
|
||||
type: type1
|
||||
method: NVSWCOMPONENT
|
||||
datatype: UInt8
|
||||
runnables: [AR_LVCSC_VcExt10ms]
|
||||
LVCSC_NVM_LIST_16:
|
||||
type: type1
|
||||
method: NVSWCOMPONENT
|
||||
datatype: UInt16
|
||||
runnables: [AR_LVCSC_VcExt10ms]
|
||||
LVCSC_NVM_LIST_16_PER:
|
||||
type: type1
|
||||
method: NVSWCOMPONENT
|
||||
datatype: UInt16
|
||||
runnables: [AR_LVCSC_VcExt10ms]
|
||||
LVCSC_NVM_LIST_32:
|
||||
type: type1
|
||||
method: NVSWCOMPONENT
|
||||
datatype: UInt32
|
||||
runnables: [AR_LVCSC_VcExt10ms]
|
||||
LVCSC_NVM_LIST_32_PER:
|
||||
type: type1
|
||||
method: NVSWCOMPONENT
|
||||
datatype: UInt32
|
||||
runnables: [AR_LVCSC_VcExt10ms]
|
@@ -0,0 +1,19 @@
|
||||
ports:
|
||||
################### IN ####################
|
||||
DummyIn:
|
||||
direction: IN
|
||||
interface: DummyIn
|
||||
element:
|
||||
DummyIn:
|
||||
- insignal: yVcVmp_B_VehModConv
|
||||
property: VehModConv
|
||||
updateBit: true
|
||||
e2eStatus: true
|
||||
################### OUT ###################
|
||||
DummyOut:
|
||||
direction: OUT
|
||||
interface: DummyOut
|
||||
element:
|
||||
DummyOut:
|
||||
- outsignal: sVcTestTx_X_AirFlapPosnReqForDefrst1
|
||||
property: AirFlapPosnReqForDefrst1
|
@@ -0,0 +1 @@
|
||||
Switch name;Description;ZCLA_LVCSC
|
|
@@ -0,0 +1 @@
|
||||
Switch name;Description;ZCLA_LVCSC
|
|
@@ -0,0 +1,6 @@
|
||||
# ConfigDocuments
|
||||
|
||||
[TOC]
|
||||
|
||||
## Description
|
||||
This folder contains configuration items that set Code switch settings for SPM units used in the models.
|
28
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/Makefile
Normal file
28
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/Makefile
Normal file
@@ -0,0 +1,28 @@
|
||||
SRC_DIR =output/SourceCode
|
||||
INC_DIR =output/SourceCode
|
||||
EXT_INC_DIR =../../../resources/gcc/zc/headers
|
||||
OBJ_DIR =output/obj
|
||||
BIN_DIR =output/bin
|
||||
|
||||
csrc =$(wildcard $(SRC_DIR)/*.c)
|
||||
objs =$(subst $(SRC_DIR),$(OBJ_DIR), $(csrc:.c=.o))
|
||||
|
||||
CFLAGS =-I$(INC_DIR) -I$(EXT_INC_DIR) -no-pie -w -static
|
||||
LDFLAGS =-Wl,--relocatable
|
||||
|
||||
$(BIN_DIR)/lvcsc.o: $(objs) | $(BIN_DIR)
|
||||
$(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS)
|
||||
|
||||
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c | $(OBJ_DIR)
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
$(BIN_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
$(OBJ_DIR):
|
||||
mkdir -p $@
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
$(RM) -r $(OBJ_DIR)
|
||||
$(RM) -r $(BIN_DIR)
|
69
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/ProjectCfg.json
Normal file
69
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/ProjectCfg.json
Normal file
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"ConfigFileVersion": "0.2.1",
|
||||
"BaseConfig" : "../../../ConfigDocuments/BaseConfig.json",
|
||||
"ProjectInfo" : {
|
||||
"yamlInterface": true,
|
||||
"projConfig" : "ZCLA_LVCSC",
|
||||
"a2LFileName": "SPM.a2l",
|
||||
"ecuSupplier" : "ZC",
|
||||
"ecuType" : "",
|
||||
"unitCfgDeliveryDir": "./output/UnitCfgs",
|
||||
"configDir": "ConfigDocuments",
|
||||
"prjCodeswitches": "Codeswitch_Setup*.csv",
|
||||
"commonSrcDir": "../../../Models/Common/pybuild_src",
|
||||
"prjUnitSrcDir": "../../../Models/*/Vc*/pybuild_src",
|
||||
"prjUnitCfgDir": "../../../Models/*/Vc*/pybuild_cfg",
|
||||
"prjUnitMdlDir": "../../../Models/*/Vc*",
|
||||
"prjTranslationDir": "Config/ActiveInterfaces",
|
||||
"useGlobalConst": false,
|
||||
"schedulerPrefix":"LVCSC",
|
||||
"useVolatileGlobals": false
|
||||
},
|
||||
"CodeGenerationConfig": {
|
||||
"useRteNvmStructs": true
|
||||
},
|
||||
"CompositionConfig": {
|
||||
"compositionName": "McLvcSafe",
|
||||
"compositionArxml": "interface/McLvcSafe_GPA_24.arxml",
|
||||
"softwareComponentName":"LVCSC",
|
||||
"softwareComponentTemplate": "ARTCSC",
|
||||
"generateExternalImplementationType": false,
|
||||
"asil": "ASILD",
|
||||
"secure" : false,
|
||||
"includeNvm": true,
|
||||
"nvmPortPattern": "PS_LVCSC_SwcNv_{NvName}"
|
||||
},
|
||||
"UnitCfgs": "./conf.local/rasters.json",
|
||||
"includesPaths": [],
|
||||
"A2lConfig": {
|
||||
"complete": true,
|
||||
"name": "LVCSC",
|
||||
"allowKpBlob": false,
|
||||
"ipAddress": "198.19.64.47",
|
||||
"ipPort": 40245,
|
||||
"asap2Version": "1 60"
|
||||
},
|
||||
"MemoryMapConfig": {
|
||||
"memMapPrefix": "LVCSC",
|
||||
"includeHeaderGuards": false,
|
||||
"includeMemMapForCalibration": true,
|
||||
"projectDefines": {
|
||||
"START": {
|
||||
"code": "#define LVCSC_START_SEC_VCC_RUN",
|
||||
"const": "#define LVCSC_START_SEC_VCC_CONST",
|
||||
"disp": "#define LVCSC_START_SEC_VCC_CLEAR_INIT_SLOW",
|
||||
"cal": "#define LVCSC_START_SEC_VCC_CALIBRATION"
|
||||
},
|
||||
"STOP": {
|
||||
"code": "#define LVCSC_STOP_SEC_VCC_RUN",
|
||||
"const": "#define LVCSC_STOP_SEC_VCC_CONST",
|
||||
"disp": "#define LVCSC_STOP_SEC_VCC_CLEAR_INIT_SLOW",
|
||||
"cal": "#define LVCSC_STOP_SEC_VCC_CALIBRATION"
|
||||
}
|
||||
}
|
||||
},
|
||||
"includedCommonFiles": [
|
||||
"tl_basetypes",
|
||||
"tl_types"
|
||||
]
|
||||
}
|
38
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/conandata.yml
Normal file
38
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/conandata.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
version:
|
||||
minimum: "8.4.0"
|
||||
tag_prefix: "zcla_lvcsc-"
|
||||
|
||||
# Organizational data relating to the module
|
||||
# For VCC internal teams the string shall have the format: VCC/[Solution]/[ART]/[TEAM]
|
||||
organization: "DUMMY VCC"
|
||||
|
||||
# Module maintainer
|
||||
maintainer: "dummy@volvocars.com"
|
||||
|
||||
# Module maintainer peers
|
||||
peers:
|
||||
- "Dummy, John <John.Dummy.4@volvocars.com>"
|
||||
- "DummyTwo, John <John.DummyTwo@volvocars.com>"
|
||||
|
||||
# ID of the Generic Product Module(GMP) in CarWeaver that this sw-module belongs to.
|
||||
generic_product_module: "GPM-37"
|
||||
|
||||
# For each execution environment where the module is integrated, add an entry with the
|
||||
# name of the execution environment and an integer that indicates the SW package the module
|
||||
# contributes to. The name of the execution environment shall be the same as the name of the
|
||||
# ECU in CarWeaver, but in lower case. The SW package id shall be the id assigned to your
|
||||
# sw module in the sw-package-ledger.
|
||||
sw_package_ids:
|
||||
zcla: 913
|
||||
|
||||
# Link to SWAD in gerrit or gitlab repository.
|
||||
# Link must contain the commit hash, i.e. link to a specific revision of your SWAD.
|
||||
swad: https://dummy.volvocars.biz/dummy.md"
|
||||
|
||||
swdd: "${artifact_uri}/DocGen"
|
||||
|
||||
#change_log: "${artifact_uri}/doc/changelog.txt"
|
||||
|
||||
regulatory-requirements:
|
||||
- "RR-1"
|
||||
|
18
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/conanfile.py
Normal file
18
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/conanfile.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from conan import ConanFile
|
||||
|
||||
|
||||
# recipe inherits properties from the class defined in the baseline
|
||||
class ConanRecipe(ConanFile):
|
||||
name = "ZCLA_LVCSC"
|
||||
use_git_tag_version = True
|
||||
url = "https://dummy.volvocars.net/admin/repos/dummy"
|
||||
python_requires = "baseline_for_zc/1.0.0@vcc-tools/stable"
|
||||
python_requires_extend = "baseline_for_zc.ConanPybuild"
|
||||
config_repo = "config_zcla/[~1.0]@VCC-tools/stable"
|
||||
default_user = "VCC-modules"
|
||||
default_channel = "stable"
|
||||
project = "ZC/ZCLA_LVCSC"
|
||||
config_file = "ProjectCfg.json"
|
||||
src_dir = "src"
|
||||
interface_dir = "interface"
|
||||
create_sil = "swc" # options: "composition_swc" | "swc"
|
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"files": ["../output/bin/lvcsc.o"],
|
||||
"directories": [],
|
||||
"filters": {
|
||||
"static": [
|
||||
"_GLOBAL_OFFSET_TABLE_",
|
||||
"main"
|
||||
],
|
||||
"regex": [
|
||||
{
|
||||
"type": "exclusive",
|
||||
"expression": "__(?:pre|f|)init?_array_.*"
|
||||
},
|
||||
{
|
||||
"type": "exclusive",
|
||||
"expression": "Rte_CData_LVCSC_.*"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
@@ -0,0 +1,90 @@
|
||||
[
|
||||
{
|
||||
"name": "NVM_LIST_8",
|
||||
"allowed_datatypes": [
|
||||
"Bool",
|
||||
"UInt8",
|
||||
"Int8"
|
||||
],
|
||||
"size": 20,
|
||||
"instanceName": "nvm_list_8",
|
||||
"default_datatype": "UInt8",
|
||||
"includeStop": "",
|
||||
"includeStart": "",
|
||||
"persistent": false,
|
||||
"signals": []
|
||||
},
|
||||
{
|
||||
"name": "NVM_LIST_8_PER",
|
||||
"allowed_datatypes": [
|
||||
"Bool",
|
||||
"UInt8",
|
||||
"Int8"
|
||||
],
|
||||
"size": 20,
|
||||
"instanceName": "nvm_list_8_per",
|
||||
"default_datatype": "UInt8",
|
||||
"includeStop": "",
|
||||
"includeStart": "",
|
||||
"persistent": true,
|
||||
"signals": []
|
||||
},
|
||||
{
|
||||
"name": "NVM_LIST_16",
|
||||
"allowed_datatypes": [
|
||||
"UInt16",
|
||||
"Int16"
|
||||
],
|
||||
"size": 5,
|
||||
"instanceName": "nvm_list_16",
|
||||
"default_datatype": "UInt16",
|
||||
"includeStop": "",
|
||||
"includeStart": "",
|
||||
"persistent": false,
|
||||
"signals": []
|
||||
},
|
||||
{
|
||||
"name": "NVM_LIST_16_PER",
|
||||
"allowed_datatypes": [
|
||||
"UInt16",
|
||||
"Int16"
|
||||
],
|
||||
"size": 5,
|
||||
"instanceName": "nvm_list_16_per",
|
||||
"default_datatype": "UInt16",
|
||||
"includeStop": "",
|
||||
"includeStart": "",
|
||||
"persistent": true,
|
||||
"signals": []
|
||||
},
|
||||
{
|
||||
"name": "NVM_LIST_32",
|
||||
"allowed_datatypes": [
|
||||
"Float32",
|
||||
"UInt32",
|
||||
"Int32"
|
||||
],
|
||||
"size": 5,
|
||||
"instanceName": "nvm_list_32",
|
||||
"default_datatype": "UInt32",
|
||||
"includeStop": "",
|
||||
"includeStart": "",
|
||||
"persistent": false,
|
||||
"signals": []
|
||||
},
|
||||
{
|
||||
"name": "NVM_LIST_32_PER",
|
||||
"allowed_datatypes": [
|
||||
"Float32",
|
||||
"UInt32",
|
||||
"Int32"
|
||||
],
|
||||
"size": 5,
|
||||
"instanceName": "nvm_list_32_per",
|
||||
"default_datatype": "UInt32",
|
||||
"includeStop": "",
|
||||
"includeStart": "",
|
||||
"persistent": true,
|
||||
"signals": []
|
||||
}
|
||||
]
|
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"SampleTimes": {
|
||||
"VcExt10ms": 0.01
|
||||
},
|
||||
"VcExt10ms": [
|
||||
"VcDebug",
|
||||
"VcDebugSafe",
|
||||
"VcTestRx",
|
||||
"VcTestTx",
|
||||
"VcDebugOutput",
|
||||
"VcDebugOutputSafe"
|
||||
]
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<AUTOSAR xmlns="http://autosar.org/schema/r4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" T="2025-04-28T08:43:27Z" xsi:schemaLocation="http://autosar.org/schema/r4.0 autosar_00049.xsd">
|
||||
</AUTOSAR>
|
@@ -0,0 +1 @@
|
||||
{}
|
144
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/src/LVCSC.c
Normal file
144
test_data/test_repo/Projects/ZC/ZCLA_LVCSC/src/LVCSC.c
Normal file
@@ -0,0 +1,144 @@
|
||||
|
||||
#include "Rte_LVCSC.h"
|
||||
#include "calibration_interface_LVCSC.h"
|
||||
#include "VcDummy_spm.h"
|
||||
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << Start of include and declaration area >> DO NOT CHANGE THIS COMMENT!
|
||||
* Symbol: Includefunction
|
||||
*********************************************************************************************************************/
|
||||
#include "VcExtVar.h"
|
||||
#include "VcExtVarSafe.h"
|
||||
#include "VcExt10ms.h"
|
||||
#include "VcExtINI.h"
|
||||
#include "vcc_nvm_struct.h"
|
||||
|
||||
/* RTE read function declarations. */
|
||||
/* VcInpBcmdSigCdng */
|
||||
void Read_Dummy_DummyProperty_DummySignal(void);
|
||||
|
||||
|
||||
/* RTE write function declarations. */
|
||||
|
||||
/* VcOutpBrkSysSigCdng */
|
||||
void Write_Dummy_DummyProperty_DummySignal(void);
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << End of include and declaration area >> DO NOT CHANGE THIS COMMENT!
|
||||
*********************************************************************************************************************/
|
||||
|
||||
#define LVCSC_START_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
/**********************************************************************************************************************
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << Start of documentation area >> DO NOT CHANGE THIS COMMENT!
|
||||
* Symbol: MainFunction_doc
|
||||
*********************************************************************************************************************/
|
||||
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << End of documentation area >> DO NOT CHANGE THIS COMMENT!
|
||||
*********************************************************************************************************************/
|
||||
|
||||
FUNC(void, LVCSC_VCC_RUN) AR_LVCSC_VcExt10ms(void)
|
||||
{
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << Start of runnable implementation >> DO NOT CHANGE THIS COMMENT!
|
||||
* Symbol: MainFunction
|
||||
*********************************************************************************************************************/
|
||||
|
||||
/* Read input data from RTE, store in SPM insignal variables. */
|
||||
Read_Dummy_DummyProperty_DummySignal();
|
||||
|
||||
|
||||
/* Write output data to RTE, load from SPM outsignal variables. */
|
||||
Write_Dummy_DummyProperty_DummySignal();
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << End of runnable implementation >> DO NOT CHANGE THIS COMMENT!
|
||||
*********************************************************************************************************************/
|
||||
}
|
||||
#define LVCSC_STOP_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
|
||||
|
||||
#define LVCSC_START_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << Start of function definition area >> DO NOT CHANGE THIS COMMENT!
|
||||
* Symbol: Definefunction
|
||||
*********************************************************************************************************************/
|
||||
|
||||
/* RTE read function definitions. */
|
||||
void Read_Dummy_DummyProperty_DummySignal(void){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void Write_Dummy_DummyProperty_DummySignal(void){
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << End of function definition area >> DO NOT CHANGE THIS COMMENT!
|
||||
*********************************************************************************************************************/
|
||||
#define LVCSC_STOP_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
|
||||
#define LVCSC_START_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
|
||||
void AR_LVCSC_VcExtINI(void)
|
||||
{
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << Start of function initialization area >> DO NOT CHANGE THIS COMMENT!
|
||||
* Symbol: InitFunction
|
||||
*********************************************************************************************************************/
|
||||
|
||||
LVCSC_VcNvmInit();
|
||||
LVCSC_VcExtINI();
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << End of function initialization area >> DO NOT CHANGE THIS COMMENT!
|
||||
*********************************************************************************************************************/
|
||||
}
|
||||
#define LVCSC_STOP_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
|
||||
#define LVCSC_START_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
|
||||
void AR_LVCSC_ZcCalibrationStep(void)
|
||||
{
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << Start of Calibration main area >> DO NOT CHANGE THIS COMMENT!
|
||||
* Symbol: CalibrationFunction
|
||||
*********************************************************************************************************************/
|
||||
LVCSC_ZcCalibrationStep();
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << End of Calibration area >> DO NOT CHANGE THIS COMMENT!
|
||||
*********************************************************************************************************************/
|
||||
}
|
||||
#define LVCSC_STOP_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
|
||||
#define LVCSC_START_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
||||
|
||||
void AR_LVCSC_ZcCalibrationInit(void)
|
||||
{
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << Start of Calibration main area >> DO NOT CHANGE THIS COMMENT!
|
||||
* Symbol: CalibrationFunction
|
||||
*********************************************************************************************************************/
|
||||
LVCSC_ZcCalibrationInit();
|
||||
|
||||
/**********************************************************************************************************************
|
||||
* DO NOT CHANGE THIS COMMENT! << End of Calibration area >> DO NOT CHANGE THIS COMMENT!
|
||||
*********************************************************************************************************************/
|
||||
}
|
||||
#define LVCSC_STOP_SEC_VCC_RUN
|
||||
#include "LVCSC_MemMap.h"
|
@@ -0,0 +1,7 @@
|
||||
portname;portinterface;swc
|
||||
LVCSC_NVM_LIST_8;/PortInterface/LVCSC_NVM_LIST_8;LVCSC
|
||||
LVCSC_NVM_LIST_16;/PortInterface/LVCSC_NVM_LIST_16;LVCSC
|
||||
LVCSC_NVM_LIST_32;/PortInterface/LVCSC_NVM_LIST_32;LVCSC
|
||||
LVCSC_NVM_LIST_8_PER;/PortInterface/LVCSC_NVM_LIST_8_PER;LVCSC
|
||||
LVCSC_NVM_LIST_16_PER;/PortInterface/LVCSC_NVM_LIST_16_PER;LVCSC
|
||||
LVCSC_NVM_LIST_32_PER;/PortInterface/LVCSC_NVM_LIST_32_PER;LVCSC
|
|
@@ -0,0 +1,21 @@
|
||||
#ifndef CORESUPPLIERABSTRACTION_H
|
||||
#define CORESUPPLIERABSTRACTION_H
|
||||
|
||||
/***************************/
|
||||
/* Include Files */
|
||||
/***************************/
|
||||
#include "tl_types.h"
|
||||
|
||||
/***************************/
|
||||
/* Glue macro defintions */
|
||||
/***************************/
|
||||
|
||||
/***************************/
|
||||
/* Prototype Declarations */
|
||||
/***************************/
|
||||
|
||||
#endif
|
||||
|
||||
/*----------------------------------------------------------------------------*\
|
||||
END OF FILE
|
||||
\*----------------------------------------------------------------------------*/
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCCAL
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCCAL
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCCAL
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCCODE
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCCODE
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCCODE
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCCODE
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCDISP
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCDISP
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCDISP
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVC
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCNVMP
|
||||
#include "cvc_pragma.h"
|
@@ -0,0 +1,2 @@
|
||||
#define CVCNVM
|
||||
#include "cvc_pragma.h"
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user