feat: add soc decoding basis received can id

- decoding the soc basis the can id received from ec200
stable
heezes 2024-11-08 14:42:40 +05:30
parent e013432ef7
commit b345c3ae48
32 changed files with 226 additions and 2324 deletions

View File

@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<MF0 version="1.1" packageUris="http://schema.mathworks.com/mf0/ci/19700101 http://schema.mathworks.com/mf0/sl_data_duplicateandconsistencycheck/R2022b http://schema.mathworks.com/mf0/sl_modelref_info/R2023b http://schema.mathworks.com/mf0/slexec_mm_sto/R2023a_202208151321 http://schema.mathworks.com/mf0/sltp_mm/R2023a_202209151115">
<ModelRefInfoRepo.ModelRefInfoRoot type="ModelRefInfoRepo.ModelRefInfoRoot" uuid="c423a4c2-c42e-4d68-a7d6-3c68c762f110">
<ModelRefInfoRepo.ModelRefInfoRoot type="ModelRefInfoRepo.ModelRefInfoRoot" uuid="06330d8d-0b1f-42a7-ae66-18118dd967df">
<JITEngines>sJSjS2nhFB3Qcky7Q7UDQFE</JITEngines>
<JITEngines>sKuRTaq5s8EZI5Gj28zXs2E</JITEngines>
<calibrationData type="ModelRefInfoRepo.CalibrationData" uuid="dff40f17-bcdf-4c37-95af-e03e67c08781">
<calibrationData type="ModelRefInfoRepo.CalibrationData" uuid="3cc64475-251f-4ff3-a920-279e74c2a96c">
<InternalData>[{&quot;Name&quot;:&quot;&quot;,&quot;Profile&quot;:&quot;&quot;}]</InternalData>
<ModelName>socTouchDisplay</ModelName>
<RootIOData>[{&quot;Name&quot;:&quot;in_bTouchDetected&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;ip_u32TouchDuration_msec&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;ip_u32DisplayDuration_msec&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;Input&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_bDisplayStatus&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_bErrorStatus&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_u8HundredsPlace&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_u8TensPlace&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_u8OnesPlace&quot;,&quot;Profile&quot;:&quot;&quot;}]</RootIOData>
<RootIOData>[{&quot;Name&quot;:&quot;in_bTouchDetected&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;ip_u32TouchDuration_msec&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;ip_u32DisplayDuration_msec&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;Input&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;ip_u32canId&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_bDisplayStatus&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_bErrorStatus&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_u8HundredsPlace&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_u8TensPlace&quot;,&quot;Profile&quot;:&quot;&quot;},{&quot;Name&quot;:&quot;op_u8OnesPlace&quot;,&quot;Profile&quot;:&quot;&quot;}]</RootIOData>
</calibrationData>
<childModelRefInfo type="ModelRefInfoRepo.ChildModelRefInfo" uuid="48754e11-5d0e-458a-b67a-bdb64b45170d">
<childModelRefInfo type="ModelRefInfoRepo.ChildModelRefInfo" uuid="f25ea66c-054e-4214-98cb-b2b70e582e67">
<modelName>socTouchDisplay</modelName>
<modelPath>socTouchDisplay</modelPath>
</childModelRefInfo>
@ -16,13 +16,13 @@
<dataDictionary>socTouchDisplay.sldd</dataDictionary>
<dataDictionarySet>socTouchDisplay.sldd</dataDictionarySet>
<dataDictionarySetForDataTypeCheck>socTouchDisplay.sldd</dataDictionarySetForDataTypeCheck>
<dataSourceInfo type="ModelRefInfoRepo.DataSourceInfo" uuid="d0392e51-1d2b-483b-adf9-04d1f7dc1fd0">
<dataSources type="ModelRefInfoRepo.SourceInfo" uuid="04471474-cf64-48c8-8a61-61c3fb3cdfc0">
<dataSourceInfo type="ModelRefInfoRepo.DataSourceInfo" uuid="b42a231a-3218-4971-9c5d-50824744d12a">
<dataSources type="ModelRefInfoRepo.SourceInfo" uuid="9a8ef6ee-cd60-402d-ac89-914ca9273d25">
<includeAllSections>true</includeAllSections>
<sourceName>socTouchDisplay.sldd</sourceName>
<type>DataDictionary</type>
</dataSources>
<dataSources type="ModelRefInfoRepo.SourceInfo" uuid="1ba4548b-b166-4a96-9479-a131e4340a86">
<dataSources type="ModelRefInfoRepo.SourceInfo" uuid="16035acd-f82b-414e-b1a1-ee6b9af935d8">
<includeAllSections>true</includeAllSections>
<sourceName>base workspace</sourceName>
<type>BaseWorkspace</type>
@ -40,7 +40,7 @@
<hasBwsAccessedByAnyModel>true</hasBwsAccessedByAnyModel>
<hasNonVirtualConstantTs>true</hasNonVirtualConstantTs>
<hasStatesModifiedInOutputUpdate>true</hasStatesModifiedInOutputUpdate>
<inports type="ModelRefInfoRepo.InportInformation" uuid="0da382bb-d9b8-4a6e-8024-f54ce44c3905">
<inports type="ModelRefInfoRepo.InportInformation" uuid="04d81b25-c474-4e9c-8c09-2319e02a45b1">
<isNotDerivPort>true</isNotDerivPort>
<designMax>inf</designMax>
<designMin>-inf</designMin>
@ -53,10 +53,10 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="c6e11a6f-85f9-472a-8c4f-04932b0e4040"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="1d76ece0-98aa-4aef-b697-d7d77c35f72d"/>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="4b52b55a-ea9b-41a7-8e79-8ea03f0cc9c9"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="0cd45c6a-812e-44bd-ab6c-0d0a5512fbd9"/>
</inports>
<inports type="ModelRefInfoRepo.InportInformation" uuid="91652b38-7362-4fb1-8e80-180f8c57a19e">
<inports type="ModelRefInfoRepo.InportInformation" uuid="2b667d6d-639f-4383-9bca-da5bcddf3c65">
<isNotDerivPort>true</isNotDerivPort>
<designMax>inf</designMax>
<designMin>-inf</designMin>
@ -70,10 +70,10 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="06f459e4-ee47-42dd-86fe-788d6be67841"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="44e21e7b-b349-4b37-b488-2badadc45f69"/>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="9d9b3b4e-d610-4212-a446-4c969ea60437"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="f3309e88-67cd-450d-8adc-201037b7c178"/>
</inports>
<inports type="ModelRefInfoRepo.InportInformation" uuid="69aef273-7467-4a72-be4e-9942e407dce2">
<inports type="ModelRefInfoRepo.InportInformation" uuid="296946d2-5a11-4635-81c4-d4f31c47447b">
<isNotDerivPort>true</isNotDerivPort>
<designMax>inf</designMax>
<designMin>-inf</designMin>
@ -87,10 +87,10 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="c69dd893-dc7b-4580-9019-c5a33c033cf0"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="65f49605-3848-4e57-805b-649ead2bc58a"/>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="8ac87951-0a5f-4e8f-a2ab-1a435f81c2f7"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="a0f3e557-cbac-43aa-919e-8d34587b5ba2"/>
</inports>
<inports type="ModelRefInfoRepo.InportInformation" uuid="f2ca55ba-3ebf-45f2-a441-2f06cc1a598f">
<inports type="ModelRefInfoRepo.InportInformation" uuid="38b825ec-62d3-449a-8fdb-7011b4bec927">
<isNotDerivPort>true</isNotDerivPort>
<designMax>inf</designMax>
<designMin>-inf</designMin>
@ -104,8 +104,25 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="845b2d7f-8b9e-41f7-b61a-31a1a3051e97"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="9ee09362-f869-4a00-ab26-70c5c4520638"/>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="40b70236-15c8-4b09-b0df-7048497f8243"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="0798ea4d-1f6a-4f31-a884-80069f17da1d"/>
</inports>
<inports type="ModelRefInfoRepo.InportInformation" uuid="722a749d-4325-4303-b88e-e33cd9299693">
<isNotDerivPort>true</isNotDerivPort>
<designMax>inf</designMax>
<designMin>-inf</designMin>
<indexType>2</indexType>
<originalPortNumber>4</originalPortNumber>
<rateInfos type="ModelRefInfoRepo.RateInfo">
<compiled>true</compiled>
<nonFcnCallPartitionName>D1</nonFcnCallPartitionName>
<period>.1</period>
<priority>40</priority>
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.InputExecutionInterface" uuid="13a0fa05-25db-4d4c-b6f6-552797705d3a"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="c0d48622-ab23-4464-8fc3-a3132dc39274"/>
</inports>
<isBdInSimModeForSimCodegenVariants>false</isBdInSimModeForSimCodegenVariants>
<isInlineParamsOn>true</isInlineParamsOn>
@ -113,6 +130,7 @@
<isOrigInportVirtualBus>false</isOrigInportVirtualBus>
<isOrigInportVirtualBus>false</isOrigInportVirtualBus>
<isOrigInportVirtualBus>false</isOrigInportVirtualBus>
<isOrigInportVirtualBus>false</isOrigInportVirtualBus>
<isOrigOutportVirtualBus>false</isOrigOutportVirtualBus>
<isOrigOutportVirtualBus>false</isOrigOutportVirtualBus>
<isOrigOutportVirtualBus>false</isOrigOutportVirtualBus>
@ -120,12 +138,13 @@
<isOrigOutportVirtualBus>false</isOrigOutportVirtualBus>
<loggingSaveFormat>2</loggingSaveFormat>
<maxFreqHz>-1.0</maxFreqHz>
<numDataInputPorts>4</numDataInputPorts>
<numDataInputPorts>5</numDataInputPorts>
<numLoggableJacobianDStates>0</numLoggableJacobianDStates>
<origInportBusType></origInportBusType>
<origInportBusType></origInportBusType>
<origInportBusType></origInportBusType>
<origInportBusType></origInportBusType>
<origInportBusType></origInportBusType>
<origOutportBusOutputAsStruct>false</origOutportBusOutputAsStruct>
<origOutportBusOutputAsStruct>false</origOutportBusOutputAsStruct>
<origOutportBusOutputAsStruct>false</origOutportBusOutputAsStruct>
@ -136,7 +155,7 @@
<origOutportBusType></origOutportBusType>
<origOutportBusType></origOutportBusType>
<origOutportBusType></origOutportBusType>
<outports type="ModelRefInfoRepo.OutportInformation" uuid="91427711-c988-42c7-941e-5fa2285ee3bb">
<outports type="ModelRefInfoRepo.OutportInformation" uuid="d11e053e-e358-47f5-9cbf-3f9e0b447db9">
<hasSystemInitMethod>true</hasSystemInitMethod>
<designMax>inf</designMax>
<designMin>-inf</designMin>
@ -148,10 +167,10 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="e62a5e9b-58d4-4231-830d-3d90ba27cfad"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="9b940b83-17ca-471e-b395-a6326f912463"/>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="a9bb6cb9-90c8-4d88-bd00-1c418c545113"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="6bd078e3-61f5-4e8b-ad02-722734612027"/>
</outports>
<outports type="ModelRefInfoRepo.OutportInformation" uuid="6b9e9057-adb2-4896-9d70-0dd9579b94d9">
<outports type="ModelRefInfoRepo.OutportInformation" uuid="66f29f9c-235f-41f6-9566-cfc8c591436a">
<hasSystemInitMethod>true</hasSystemInitMethod>
<designMax>inf</designMax>
<designMin>-inf</designMin>
@ -164,10 +183,10 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="cb46f534-f936-4c5b-bb91-bb8351c76476"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="2338d864-4100-4233-a487-7ce855432e38"/>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="afc0a88f-2cda-45eb-a5e7-f78aa7dab6c7"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="1c61affe-d9a1-430a-b89f-d60cbaff6b88"/>
</outports>
<outports type="ModelRefInfoRepo.OutportInformation" uuid="3a9dcd48-ab47-42f0-8e42-1f1c06b60098">
<outports type="ModelRefInfoRepo.OutportInformation" uuid="0ad18af4-34db-4b9a-b8c2-748f5c70b7d4">
<designMax>inf</designMax>
<designMin>-inf</designMin>
<originalPortNumber>2</originalPortNumber>
@ -179,10 +198,10 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="2a458600-29a7-47e6-90b2-238c22446509"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="5a1bc24b-ad47-4fad-9428-9c857f9d8d9c"/>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="ba736367-0eca-48a5-be28-e90c5fcedadc"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="0b1fd699-8283-4ae3-b65d-8ad6a8a68132"/>
</outports>
<outports type="ModelRefInfoRepo.OutportInformation" uuid="5e204093-ee38-45b8-bd46-438d3765cda1">
<outports type="ModelRefInfoRepo.OutportInformation" uuid="8770e933-fafa-4a10-b5a8-176d897755ad">
<designMax>inf</designMax>
<designMin>-inf</designMin>
<originalPortNumber>3</originalPortNumber>
@ -194,10 +213,10 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="b56e9fea-84a2-4900-a41f-946714f917dc"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="1379f7e3-4f83-48b3-b50c-aabb9733533d"/>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="98e330e2-d543-4bab-8574-c928dc41616e"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="8eb2ff12-adb6-43d4-8310-553ff0eba64c"/>
</outports>
<outports type="ModelRefInfoRepo.OutportInformation" uuid="d3b8e248-f5a5-4ce1-ab09-458243094cb1">
<outports type="ModelRefInfoRepo.OutportInformation" uuid="73a1d0ff-1e45-42d4-991d-264721f7ac5e">
<designMax>inf</designMax>
<designMin>-inf</designMin>
<originalPortNumber>4</originalPortNumber>
@ -209,8 +228,8 @@
<rateIdx>0</rateIdx>
</rateInfos>
<resolvedSignalObject></resolvedSignalObject>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="b7fc6574-a5da-442c-b659-e759138c0e4b"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="adbc514c-a22b-492a-ac4b-741a413439b0"/>
<executionInterface type="ModelRefInfoRepo.OutputExecutionInterface" uuid="9062923e-af0a-45c4-9cb0-fc981c8b46e0"/>
<sigNameToEMVCEMap type="ModelRefInfoRepo.SigNameEMVCEInfo" uuid="8e9f5f6f-1c67-43fb-8638-17a5c6a26f47"/>
</outports>
<removeResetFunc>true</removeResetFunc>
<runtimeNonFcnCallRateInfos type="ModelRefInfoRepo.RateInfo">
@ -224,50 +243,50 @@
<solverStatusFlags>323</solverStatusFlags>
<timingAndTaskingRegistry>&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;slexec_sto version=&quot;1.1&quot; packageUris=&quot;http://schema.mathworks.com/mf0/slexec_mm_sto/R2023a_202208151321&quot;&gt;
&lt;sto.Registry type=&quot;sto.Registry&quot; uuid=&quot;3a3d3d52-cd9c-47c0-a0c8-32e7580def99&quot;&gt;
&lt;sto.Registry type=&quot;sto.Registry&quot; uuid=&quot;cd25431f-875e-462e-90e6-77aba17625d3&quot;&gt;
&lt;executionSpec&gt;Undetermined&lt;/executionSpec&gt;
&lt;identifier&gt;socTouchDisplay&lt;/identifier&gt;
&lt;clockRegistry type=&quot;sto.ClockRegistry&quot; uuid=&quot;926692e5-6e1d-44ce-95bd-ec062455c3dd&quot;&gt;
&lt;clocks type=&quot;sto.Timer&quot; uuid=&quot;b6a56536-b6c2-4e08-a692-5478eb83994e&quot;&gt;
&lt;clockRegistry type=&quot;sto.ClockRegistry&quot; uuid=&quot;dd27bfe6-2f41-4359-8706-c010ed9dc578&quot;&gt;
&lt;clocks type=&quot;sto.Timer&quot; uuid=&quot;23b6ef5b-2cde-4de5-8f5c-41238b19192e&quot;&gt;
&lt;clockTickConstraint&gt;PeriodicWithFixedResolution&lt;/clockTickConstraint&gt;
&lt;computedFundamentalDiscretePeriod&gt;.1&lt;/computedFundamentalDiscretePeriod&gt;
&lt;fastestDiscreteRate type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;b24d7f8a-e80b-4bf6-a138-35e053d007e1&quot;/&gt;
&lt;fastestDiscreteRate type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;a4a85346-4500-496a-b655-7c0b2e0a41ce&quot;/&gt;
&lt;isDefaultTimer&gt;true&lt;/isDefaultTimer&gt;
&lt;resolution&gt;.1&lt;/resolution&gt;
&lt;timeAdvanceMode&gt;FixedStep&lt;/timeAdvanceMode&gt;
&lt;identifier&gt;socTouchDisplay::defaultTimer&lt;/identifier&gt;
&lt;rates type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;b24d7f8a-e80b-4bf6-a138-35e053d007e1&quot;&gt;
&lt;rates type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;a4a85346-4500-496a-b655-7c0b2e0a41ce&quot;&gt;
&lt;annotation&gt;D1&lt;/annotation&gt;
&lt;clockId&gt;socTouchDisplay::defaultTimer&lt;/clockId&gt;
&lt;description&gt;Discrete 1&lt;/description&gt;
&lt;taskId&gt;_task0&lt;/taskId&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;04741580-1702-4d99-a71f-5c59fff197c6&quot;&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;e2802860-1cd7-4f78-a3ea-f71eeea3095b&quot;&gt;
&lt;period&gt;.1&lt;/period&gt;
&lt;rateType&gt;ClassicPeriodicDiscrete&lt;/rateType&gt;
&lt;/rateSpec&gt;
&lt;/rates&gt;
&lt;baseRate type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;66637882-0267-41e0-a267-d06135e27d03&quot;&gt;
&lt;baseRate type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;83ac6bc7-b933-4c64-aaa4-c68795b13cf0&quot;&gt;
&lt;annotation&gt;D1&lt;/annotation&gt;
&lt;clockId&gt;socTouchDisplay::defaultTimer&lt;/clockId&gt;
&lt;description&gt;Discrete 1&lt;/description&gt;
&lt;taskId&gt;_task0&lt;/taskId&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;a1392d16-b148-4f54-a21b-6f8b08d0035f&quot;&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;a04f93e4-1521-445e-8894-e52d5e91ab8e&quot;&gt;
&lt;period&gt;.1&lt;/period&gt;
&lt;rateType&gt;ClassicPeriodicDiscrete&lt;/rateType&gt;
&lt;/rateSpec&gt;
&lt;/baseRate&gt;
&lt;/clocks&gt;
&lt;clocks type=&quot;sto.Event&quot; uuid=&quot;e41a78c8-b216-4f36-9dee-4f997b4b1c11&quot;&gt;
&lt;clocks type=&quot;sto.Event&quot; uuid=&quot;885722a5-c5f4-4bd2-9701-8e7be9b9e22e&quot;&gt;
&lt;eventType&gt;PARAMETER_CHANGE_EVENT&lt;/eventType&gt;
&lt;cNum&gt;1&lt;/cNum&gt;
&lt;clockType&gt;Event&lt;/clockType&gt;
&lt;identifier&gt;ParameterChangeEvent&lt;/identifier&gt;
&lt;rates type=&quot;sto.ModelWideEventRate&quot; uuid=&quot;90d6839c-de09-4d36-8a0c-4a5a598feba9&quot;&gt;
&lt;rates type=&quot;sto.ModelWideEventRate&quot; uuid=&quot;936e84dc-3ded-47f7-8ab3-c85ff31937e5&quot;&gt;
&lt;clockId&gt;ParameterChangeEvent&lt;/clockId&gt;
&lt;rateIdx&gt;-1&lt;/rateIdx&gt;
&lt;taskId&gt;ModelWideParameterChangeEvent&lt;/taskId&gt;
&lt;useForExecution&gt;NotForExecution&lt;/useForExecution&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;1ff799ef-cf4a-4029-870d-05c901611246&quot;&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;19ce4db5-4ab9-480c-b5ec-8fffafc7135e&quot;&gt;
&lt;period&gt;inf&lt;/period&gt;
&lt;rateType&gt;ModelWideParameterChangeEvent&lt;/rateType&gt;
&lt;/rateSpec&gt;
@ -275,15 +294,15 @@
&lt;/clocks&gt;
&lt;timeAdvanceMode&gt;FixedStep&lt;/timeAdvanceMode&gt;
&lt;/clockRegistry&gt;
&lt;taskRegistry type=&quot;sto.TaskRegistry&quot; uuid=&quot;51c7559b-0d95-45c2-89b5-e8ca1b1a2a36&quot;&gt;
&lt;rootTaskHierarchyElements type=&quot;sto.Task&quot; uuid=&quot;83d195cc-1e47-4c1f-bf41-cf7515d90315&quot;&gt;
&lt;taskRegistry type=&quot;sto.TaskRegistry&quot; uuid=&quot;0d993ee2-3b65-4573-8898-5196aac386ca&quot;&gt;
&lt;rootTaskHierarchyElements type=&quot;sto.Task&quot; uuid=&quot;7a8d6f06-f507-4752-b49d-2d40b196b835&quot;&gt;
&lt;isExplicit&gt;true&lt;/isExplicit&gt;
&lt;rates type=&quot;sto.ModelWideEventRate&quot; uuid=&quot;ddbb3b2c-a7d0-41a7-9985-12f1dbe63b55&quot;&gt;
&lt;rates type=&quot;sto.ModelWideEventRate&quot; uuid=&quot;e25b0b14-78dd-4492-8e0f-646a47ceb794&quot;&gt;
&lt;clockId&gt;ParameterChangeEvent&lt;/clockId&gt;
&lt;rateIdx&gt;-1&lt;/rateIdx&gt;
&lt;taskId&gt;ModelWideParameterChangeEvent&lt;/taskId&gt;
&lt;useForExecution&gt;NotForExecution&lt;/useForExecution&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;9773adec-69fb-499f-b3d5-c885d4c27f15&quot;&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;f3a4db8e-6eb5-4170-b182-f2fb8ee48e34&quot;&gt;
&lt;period&gt;inf&lt;/period&gt;
&lt;rateType&gt;ModelWideParameterChangeEvent&lt;/rateType&gt;
&lt;/rateSpec&gt;
@ -294,15 +313,15 @@
&lt;identifier&gt;ModelWideParameterChangeEvent&lt;/identifier&gt;
&lt;priority&gt;-1&lt;/priority&gt;
&lt;/rootTaskHierarchyElements&gt;
&lt;rootTaskHierarchyElements type=&quot;sto.Task&quot; uuid=&quot;8d35a7a1-6a0f-4104-8229-9f1d048673ef&quot;&gt;
&lt;rootTaskHierarchyElements type=&quot;sto.Task&quot; uuid=&quot;d3bf08c5-2444-421e-8164-08c71bb6edf8&quot;&gt;
&lt;isExecutable&gt;true&lt;/isExecutable&gt;
&lt;orderIndex&gt;1&lt;/orderIndex&gt;
&lt;rates type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;cc569252-814e-451a-b975-9d4d66331c6d&quot;&gt;
&lt;rates type=&quot;sto.ClassicPeriodicDiscreteRate&quot; uuid=&quot;f3a57984-7593-41ca-8198-978ffde0f85d&quot;&gt;
&lt;annotation&gt;D1&lt;/annotation&gt;
&lt;clockId&gt;socTouchDisplay::defaultTimer&lt;/clockId&gt;
&lt;description&gt;Discrete 1&lt;/description&gt;
&lt;taskId&gt;_task0&lt;/taskId&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;b90a1e82-5f37-4e57-8497-d7a2efda69c7&quot;&gt;
&lt;rateSpec type=&quot;sto.RateSpec&quot; uuid=&quot;d6123553-da2e-4156-bc60-26c4ac2e0a35&quot;&gt;
&lt;period&gt;.1&lt;/period&gt;
&lt;rateType&gt;ClassicPeriodicDiscrete&lt;/rateType&gt;
&lt;/rateSpec&gt;
@ -313,11 +332,11 @@
&lt;identifier&gt;_task0&lt;/identifier&gt;
&lt;priority&gt;40&lt;/priority&gt;
&lt;/rootTaskHierarchyElements&gt;
&lt;taskDependencyGraph type=&quot;sto.SerializedTaskConnectionList&quot; uuid=&quot;2e3cd3f0-1e21-43b0-9c9c-83e394120168&quot;&gt;
&lt;taskDependencyGraph type=&quot;sto.SerializedTaskConnectionList&quot; uuid=&quot;f2944dc6-df54-41da-8274-72899cb2e2c9&quot;&gt;
&lt;clockIdentifier&gt;socTouchDisplay::defaultTimer&lt;/clockIdentifier&gt;
&lt;taskIdentifier&gt;_task0&lt;/taskIdentifier&gt;
&lt;/taskDependencyGraph&gt;
&lt;taskDependencyGraph type=&quot;sto.SerializedTaskConnectionList&quot; uuid=&quot;dd557f49-849f-47e0-be4f-d57d5f19b2d6&quot;&gt;
&lt;taskDependencyGraph type=&quot;sto.SerializedTaskConnectionList&quot; uuid=&quot;e0cf3055-a235-4970-a1cf-fff869fdec18&quot;&gt;
&lt;clockIdentifier&gt;ParameterChangeEvent&lt;/clockIdentifier&gt;
&lt;taskIdentifier&gt;ModelWideParameterChangeEvent&lt;/taskIdentifier&gt;
&lt;/taskDependencyGraph&gt;
@ -326,10 +345,10 @@
&lt;/sto.Registry&gt;
&lt;/slexec_sto&gt;</timingAndTaskingRegistry>
<zeroInternalMemoryAtStartupUnchecked>true</zeroInternalMemoryAtStartupUnchecked>
<FMUBlockMap type="ModelRefInfoRepo.FMUBlockInfo" uuid="69cbfdd1-86ba-47e6-b23f-a357ee66437a"/>
<codeGenInfo type="ModelRefInfoRepo.CodeGenInformation" uuid="dede7188-05e5-44b5-8df7-bb027da4bc9f"/>
<compiledVariantInfos type="ModelRefInfoRepo.CompiledVariantInfoMap" uuid="44e63a7b-6c81-4d60-b7d2-92443f03274a"/>
<configSettingsForConsistencyChecks type="ModelRefInfoRepo.ConfigSettingsForConsistencyChecks" uuid="ec71486b-3f4d-4d70-a1ce-6034e5c16e5c">
<FMUBlockMap type="ModelRefInfoRepo.FMUBlockInfo" uuid="3e8b716c-9243-4ffc-9573-dbe5a7704f57"/>
<codeGenInfo type="ModelRefInfoRepo.CodeGenInformation" uuid="a2756deb-d404-4389-b200-b09a703dc57c"/>
<compiledVariantInfos type="ModelRefInfoRepo.CompiledVariantInfoMap" uuid="64d47c18-6cd8-4fba-b9c1-26d4a8d02673"/>
<configSettingsForConsistencyChecks type="ModelRefInfoRepo.ConfigSettingsForConsistencyChecks" uuid="e0f2fd7e-9e9a-4569-b6ea-f3c554c5c137">
<consistentOutportInitialization>true</consistentOutportInitialization>
<fixedStepSize>.1</fixedStepSize>
<frameDiagnosticSetting>2</frameDiagnosticSetting>
@ -339,7 +358,7 @@
<simSIMDOptimization>1</simSIMDOptimization>
<solverName>FixedStepDiscrete</solverName>
<solverType>SOLVER_TYPE_FIXEDSTEP</solverType>
<hardwareSettings type="ModelRefInfoRepo.HardwareSettings" uuid="767f4170-c31a-4d8b-a9c6-b3f27c3c07da">
<hardwareSettings type="ModelRefInfoRepo.HardwareSettings" uuid="f91b372c-4d10-4c2e-a9e3-20226af61a22">
<prodBitPerChar>8</prodBitPerChar>
<prodBitPerDouble>64</prodBitPerDouble>
<prodBitPerFloat>32</prodBitPerFloat>
@ -355,13 +374,14 @@
<prodWordSize>64</prodWordSize>
</hardwareSettings>
</configSettingsForConsistencyChecks>
<controllableInputRatesMap type="ModelRefInfoRepo.VarTsUIDMap" uuid="7651d61a-d0b0-4e02-bc29-92248e48de24"/>
<controllableOutputRatesMap type="ModelRefInfoRepo.VarTsUIDMap" uuid="ced402d5-0110-476d-9f88-0d9ce97906f8"/>
<dataPortGroup type="ModelRefInfoRepo.DataPortGroup" uuid="6df60948-ecf5-41a0-a997-438d13f0e9bc">
<controllableInputRatesMap type="ModelRefInfoRepo.VarTsUIDMap" uuid="fcebf00d-ba3c-47e6-9c59-baf579ac3d84"/>
<controllableOutputRatesMap type="ModelRefInfoRepo.VarTsUIDMap" uuid="dc22734d-1f30-4a67-a8c8-77c50a021870"/>
<dataPortGroup type="ModelRefInfoRepo.DataPortGroup" uuid="df4e46cd-befa-4229-ae78-a022b917ba1d">
<compDataInputPorts>0</compDataInputPorts>
<compDataInputPorts>1</compDataInputPorts>
<compDataInputPorts>2</compDataInputPorts>
<compDataInputPorts>3</compDataInputPorts>
<compDataInputPorts>4</compDataInputPorts>
<compDataOutputPorts>0</compDataOutputPorts>
<compDataOutputPorts>1</compDataOutputPorts>
<compDataOutputPorts>2</compDataOutputPorts>
@ -371,87 +391,95 @@
<dataInputPorts>1</dataInputPorts>
<dataInputPorts>2</dataInputPorts>
<dataInputPorts>3</dataInputPorts>
<dataInputPorts>4</dataInputPorts>
<dataOutputPorts>0</dataOutputPorts>
<dataOutputPorts>1</dataOutputPorts>
<dataOutputPorts>2</dataOutputPorts>
<dataOutputPorts>3</dataOutputPorts>
<dataOutputPorts>4</dataOutputPorts>
</dataPortGroup>
<expFcnUnconnectedDataPortGroup type="ModelRefInfoRepo.DataPortGroup" uuid="d59044c4-b0ef-4623-9710-bed667db30b0"/>
<interfaceParameterInfo type="ModelRefInfoRepo.InterfaceParameterInfo" uuid="f67248e8-d518-4835-9bcd-0d8d2cb6ae59"/>
<messageInfo type="ModelRefInfoRepo.MessageInformation" uuid="f9e594a2-0b38-40e7-83b6-6c60055c4b8a"/>
<methodInfo type="ModelRefInfoRepo.MethodExistenceInfo" uuid="7129bfef-595c-412a-bcf2-448a8a3d1a38">
<expFcnUnconnectedDataPortGroup type="ModelRefInfoRepo.DataPortGroup" uuid="55f0dca5-8780-44ea-8b0c-80cab8b94d43"/>
<interfaceParameterInfo type="ModelRefInfoRepo.InterfaceParameterInfo" uuid="639db967-aa0d-4c0a-8211-8648e0126245"/>
<messageInfo type="ModelRefInfoRepo.MessageInformation" uuid="a8103aa5-7ba4-45d6-9994-ad82749265db"/>
<methodInfo type="ModelRefInfoRepo.MethodExistenceInfo" uuid="1f87407e-afbb-4d35-a77b-0ddb2fe0462a">
<hasEnableMethod>true</hasEnableMethod>
<hasSystemInitializeMethod>true</hasSystemInitializeMethod>
<hasSystemResetMethod>true</hasSystemResetMethod>
<hasTerminateMethod>true</hasTerminateMethod>
<hasUpdateMethod>true</hasUpdateMethod>
</methodInfo>
<periodicEventPortUnsupportedBlockInfo type="ModelRefInfoRepo.PeriodicEventPortUnsupportedBlockInfo" uuid="5ce766fa-e0cd-47d6-a3db-554509f826c7"/>
<portGroupsRequireSameRate type="ModelRefInfoRepo.PortGroupsRequireSameRate" uuid="2bc83336-826c-4245-89c8-f506be71f9b2">
<DSMPortGroups type="ModelRefInfoRepo.NameToPortGroupIdxVectMap" uuid="383ebe57-9cd5-4789-b1fe-5e9ff9ce2ec0"/>
<GlobalDSMPortGroups type="ModelRefInfoRepo.NameToPortGroupIdxVectMap" uuid="10b75860-edff-4a5a-82fa-90bd3debdb59"/>
<mergedPortGroups type="ModelRefInfoRepo.NameToPortGroupIdxVectMap" uuid="1d725e25-8ced-4deb-bcf2-09e4f08bd6e2"/>
<periodicEventPortUnsupportedBlockInfo type="ModelRefInfoRepo.PeriodicEventPortUnsupportedBlockInfo" uuid="14206dc0-1fd6-4dba-8c74-dd99a845570e"/>
<portGroupsRequireSameRate type="ModelRefInfoRepo.PortGroupsRequireSameRate" uuid="59052a57-cbe4-4463-83d9-41146784d92f">
<DSMPortGroups type="ModelRefInfoRepo.NameToPortGroupIdxVectMap" uuid="c6117d1e-18f0-4b5f-aa4f-223d9b0d2383"/>
<GlobalDSMPortGroups type="ModelRefInfoRepo.NameToPortGroupIdxVectMap" uuid="f78ef5ea-a1be-4233-ad7b-86e4091dab6f"/>
<mergedPortGroups type="ModelRefInfoRepo.NameToPortGroupIdxVectMap" uuid="1b2928e2-9c91-4ab4-9ba2-604d814052a7"/>
</portGroupsRequireSameRate>
<rateBasedMdlGlobalDSMRateSpec type="ModelRefInfoRepo.GlobalDSMRateSpecMap" uuid="0dcb5c09-7687-489b-9215-59557e94f89d"/>
<rateSpecOfGlobalDSMAccessedByDescExpFcnMdlMap type="ModelRefInfoRepo.GlobalDSMRateSpecMap" uuid="18204780-05a6-47df-85a7-32adb2fa5988"/>
<rootBlockDiagramInterface type="ci.Model" uuid="54e390f9-b2e4-435c-b43b-57734de58ae5">
<p_RootComponentInterface type="ci.ComponentInterface" uuid="129c9357-1e43-4cde-870a-483e5f06ca82">
<p_InputPorts type="ci.SignalInterface" uuid="84833d01-b9da-401e-a7fa-4190816cd995">
<rateBasedMdlGlobalDSMRateSpec type="ModelRefInfoRepo.GlobalDSMRateSpecMap" uuid="c5c17c96-96d2-495c-b462-ee039088a145"/>
<rateSpecOfGlobalDSMAccessedByDescExpFcnMdlMap type="ModelRefInfoRepo.GlobalDSMRateSpecMap" uuid="e5d0c96b-d583-466f-a4dc-7313b276fa4a"/>
<rootBlockDiagramInterface type="ci.Model" uuid="f9aa547e-87b9-4a50-89de-ad733cfc8358">
<p_RootComponentInterface type="ci.ComponentInterface" uuid="b12fc1fe-b6e0-422f-a979-cfd08ffff44c">
<p_InputPorts type="ci.SignalInterface" uuid="288fd37a-5572-433c-afa5-132c04394ef8">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_Name>in_bTouchDetected</p_Name>
</p_InputPorts>
<p_InputPorts type="ci.SignalInterface" uuid="c195fde1-00dc-4ccc-8e3b-b60ff524bca5">
<p_InputPorts type="ci.SignalInterface" uuid="12ff4a35-82b6-4cf6-842b-0877dc1d5209">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_Name>ip_u32TouchDuration_msec</p_Name>
</p_InputPorts>
<p_InputPorts type="ci.SignalInterface" uuid="16377543-358e-4a08-8d57-7eabf48849d4">
<p_InputPorts type="ci.SignalInterface" uuid="cff393c9-d93f-4727-9243-b7b7be826450">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_Name>ip_u32DisplayDuration_msec</p_Name>
</p_InputPorts>
<p_InputPorts type="ci.SignalInterface" uuid="f9b5f34e-f0d1-4091-ace0-c918d7f7914b">
<p_InputPorts type="ci.SignalInterface" uuid="260520bf-4fbf-49d9-ae62-38cf75c4de46">
<p_ComputedNumericDimensions>10.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_ComputedType>CAN_MESSAGE_BUS</p_ComputedType>
<p_Name>Input</p_Name>
</p_InputPorts>
<p_InputPorts type="ci.SignalInterface" uuid="aebccee6-adcc-4ecb-886d-dc95a9d1520c">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_ComputedType>uint32</p_ComputedType>
<p_Name>ip_u32canId</p_Name>
</p_InputPorts>
<p_Name>socTouchDisplay</p_Name>
<p_OutputPorts type="ci.SignalInterface" uuid="4ea5d474-2a0a-4120-a8bc-d6a8454d4c72">
<p_OutputPorts type="ci.SignalInterface" uuid="c5bef65f-2e96-4186-900c-b3bb4aba9989">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_ComputedType>boolean</p_ComputedType>
<p_Name>op_bDisplayStatus</p_Name>
</p_OutputPorts>
<p_OutputPorts type="ci.SignalInterface" uuid="bbbee058-9d0b-40e7-b09c-ae5535e94752">
<p_OutputPorts type="ci.SignalInterface" uuid="a2addc16-d6d5-4b5e-8e70-877f7f9a557b">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_ComputedType>boolean</p_ComputedType>
<p_Name>op_bErrorStatus</p_Name>
</p_OutputPorts>
<p_OutputPorts type="ci.SignalInterface" uuid="873224f0-c19f-4069-b929-897a6e7e903b">
<p_OutputPorts type="ci.SignalInterface" uuid="615aaec8-58b0-4ba0-a870-e05720b3773a">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_ComputedType>uint8</p_ComputedType>
<p_Name>op_u8HundredsPlace</p_Name>
</p_OutputPorts>
<p_OutputPorts type="ci.SignalInterface" uuid="60b84ff1-b8ab-4abf-9a7f-82eb57be56c0">
<p_OutputPorts type="ci.SignalInterface" uuid="c0fdcbb2-942c-4639-af9a-95c6eec04845">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
<p_ComputedType>uint8</p_ComputedType>
<p_Name>op_u8TensPlace</p_Name>
</p_OutputPorts>
<p_OutputPorts type="ci.SignalInterface" uuid="e6ac93cd-5bfa-47fb-b521-fb99fee3c438">
<p_OutputPorts type="ci.SignalInterface" uuid="0c95a3fd-f88a-4c9c-b98e-9f6fa2d41109">
<p_ComputedNumericDimensions>1.0</p_ComputedNumericDimensions>
<p_ComputedSampleTime>.1</p_ComputedSampleTime>
<p_ComputedSampleTime>0.0</p_ComputedSampleTime>
@ -461,7 +489,7 @@
<p_Type>ROOT</p_Type>
</p_RootComponentInterface>
</rootBlockDiagramInterface>
<simulinkFunctions type="ModelRefInfoRepo.SimulinkFunctions" uuid="577f9e88-4dd7-4d20-b733-c4f902f7e705">
<simulinkFunctions type="ModelRefInfoRepo.SimulinkFunctions" uuid="40b4b019-7b2f-4041-83bb-22b4b7e0ac38">
<compSimulinkFunctionCatalog></compSimulinkFunctionCatalog>
</simulinkFunctions>
<sltpContext type="sltp.mm.core.Context" uuid="9163d92d-0590-41fc-b13d-3bf36253804b">
@ -489,6 +517,10 @@
<dataName>portip_u32TouchDuration_msec</dataName>
<type>RootInport</type>
</globalData>
<globalData type="sltp.mm.core.GlobalData" uuid="adc4eccc-5298-47f0-8d61-7a766ff78265">
<dataName>portip_u32canId</dataName>
<type>RootInport</type>
</globalData>
<globalData type="sltp.mm.core.GlobalData" uuid="77d0d2a5-4fc8-4b05-8e88-88c7d9f48503">
<dataName>portop_bDisplayStatus</dataName>
<type>RootOutport</type>
@ -575,19 +607,19 @@
</subgraph>
</rootTask>
</sltpContext>
<stateWriterToOwnerMap type="ModelRefInfoRepo.StateWriterInfo" uuid="22a8b72c-4272-4705-b437-629711bebca9"/>
<stoClientDataRegistry type="sto.ClientDataRegistry" uuid="5d8158e7-81e6-41d7-aab9-eb91fcaa7ff5">
<dataSets type="sto.ClientClockNamedDataSet" uuid="5bd5964e-9d18-49f3-9232-f95682fa9fc2">
<stateWriterToOwnerMap type="ModelRefInfoRepo.StateWriterInfo" uuid="d4596d5a-82a2-4fbf-a6bd-240b84e32d12"/>
<stoClientDataRegistry type="sto.ClientDataRegistry" uuid="6cf327a2-1192-4222-abbf-2eb55ba5e358">
<dataSets type="sto.ClientClockNamedDataSet" uuid="39f73b00-9d41-460a-a9a8-7e71df411ef6">
<tag>sltpEvents</tag>
</dataSets>
<dataSets type="sto.ClientTaskHierarchyElementNamedDataSet" uuid="edf2c48f-5baa-46f9-8bff-1e8f0afa3fd0">
<dataSets type="sto.ClientTaskHierarchyElementNamedDataSet" uuid="da47f9da-a730-42f7-9f37-617ade1e4b4d">
<tag>sltpTaskGroups</tag>
</dataSets>
<dataSets type="sto.ClientTaskHierarchyElementNamedDataSet" uuid="cb57e322-4a7b-43a5-941d-7ef176e52203">
<dSet type="ModelRefInfoRepo.SltpTaskData" uuid="b784d6cd-de7c-4b5e-9098-c7cdc8228345"/>
<tSet type="ModelRefInfoRepo.SltpTaskData" uuid="b784d6cd-de7c-4b5e-9098-c7cdc8228345">
<dataSets type="sto.ClientTaskHierarchyElementNamedDataSet" uuid="0068dcf7-d91f-4494-9a94-cffdd92acdb1">
<dSet type="ModelRefInfoRepo.SltpTaskData" uuid="133a0a07-2b63-44b7-b58e-998084ea0e7f"/>
<tSet type="ModelRefInfoRepo.SltpTaskData" uuid="133a0a07-2b63-44b7-b58e-998084ea0e7f">
<dataName>D1</dataName>
<linkedSet type="sto.ClientTaskHierarchyElementNamedDataSet" uuid="cb57e322-4a7b-43a5-941d-7ef176e52203"/>
<linkedSet type="sto.ClientTaskHierarchyElementNamedDataSet" uuid="0068dcf7-d91f-4494-9a94-cffdd92acdb1"/>
<id type="sto.TaskHierarchyElementId">
<clockId>socTouchDisplay::defaultTimer</clockId>
<id>_task0</id>
@ -596,6 +628,6 @@
<tag>sltpTasks</tag>
</dataSets>
</stoClientDataRegistry>
<varTsUIDMap type="ModelRefInfoRepo.VarTsUIDMap" uuid="dea2d909-c171-4d7c-a17e-56fed8709aeb"/>
<varTsUIDMap type="ModelRefInfoRepo.VarTsUIDMap" uuid="2725448d-e310-4475-8ae8-ec6f113d2b9f"/>
</ModelRefInfoRepo.ModelRefInfoRoot>
</MF0>

Binary file not shown.

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)

View File

@ -1,96 +0,0 @@
/*
* File: rtGetInf.c
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include "rtwtypes.h"
#include "rtGetInf.h"
#include <stddef.h>
#include "rt_nonfinite.h"
#define NumBitsPerChar 8U
/*
* Initialize rtInf needed by the generated code.
* Inf is initialized as non-signaling. Assumes IEEE.
*/
real_T rtGetInf(void)
{
size_t bitsPerReal = sizeof(real_T) * (NumBitsPerChar);
real_T inf = 0.0;
if (bitsPerReal == 32U) {
inf = rtGetInfF();
} else {
union {
LittleEndianIEEEDouble bitVal;
real_T fltVal;
} tmpVal;
tmpVal.bitVal.words.wordH = 0x7FF00000U;
tmpVal.bitVal.words.wordL = 0x00000000U;
inf = tmpVal.fltVal;
}
return inf;
}
/*
* Initialize rtInfF needed by the generated code.
* Inf is initialized as non-signaling. Assumes IEEE.
*/
real32_T rtGetInfF(void)
{
IEEESingle infF;
infF.wordL.wordLuint = 0x7F800000U;
return infF.wordL.wordLreal;
}
/*
* Initialize rtMinusInf needed by the generated code.
* Inf is initialized as non-signaling. Assumes IEEE.
*/
real_T rtGetMinusInf(void)
{
size_t bitsPerReal = sizeof(real_T) * (NumBitsPerChar);
real_T minf = 0.0;
if (bitsPerReal == 32U) {
minf = rtGetMinusInfF();
} else {
union {
LittleEndianIEEEDouble bitVal;
real_T fltVal;
} tmpVal;
tmpVal.bitVal.words.wordH = 0xFFF00000U;
tmpVal.bitVal.words.wordL = 0x00000000U;
minf = tmpVal.fltVal;
}
return minf;
}
/*
* Initialize rtMinusInfF needed by the generated code.
* Inf is initialized as non-signaling. Assumes IEEE.
*/
real32_T rtGetMinusInfF(void)
{
IEEESingle minfF;
minfF.wordL.wordLuint = 0xFF800000U;
return minfF.wordL.wordLreal;
}
/*
* File trailer for generated code.
*
* [EOF]
*/

View File

@ -1,32 +0,0 @@
/*
* File: rtGetInf.h
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#ifndef RTW_HEADER_rtGetInf_h_
#define RTW_HEADER_rtGetInf_h_
#include "rt_nonfinite.h"
#include "rtwtypes.h"
extern real_T rtGetInf(void);
extern real32_T rtGetInfF(void);
extern real_T rtGetMinusInf(void);
extern real32_T rtGetMinusInfF(void);
#endif /* RTW_HEADER_rtGetInf_h_ */
/*
* File trailer for generated code.
*
* [EOF]
*/

View File

@ -1,62 +0,0 @@
/*
* File: rtGetNaN.c
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include "rtwtypes.h"
#include "rtGetNaN.h"
#include <stddef.h>
#include "rt_nonfinite.h"
#define NumBitsPerChar 8U
/*
* Initialize rtNaN needed by the generated code.
* NaN is initialized as non-signaling. Assumes IEEE.
*/
real_T rtGetNaN(void)
{
size_t bitsPerReal = sizeof(real_T) * (NumBitsPerChar);
real_T nan = 0.0;
if (bitsPerReal == 32U) {
nan = rtGetNaNF();
} else {
union {
LittleEndianIEEEDouble bitVal;
real_T fltVal;
} tmpVal;
tmpVal.bitVal.words.wordH = 0xFFF80000U;
tmpVal.bitVal.words.wordL = 0x00000000U;
nan = tmpVal.fltVal;
}
return nan;
}
/*
* Initialize rtNaNF needed by the generated code.
* NaN is initialized as non-signaling. Assumes IEEE.
*/
real32_T rtGetNaNF(void)
{
IEEESingle nanF = { { 0.0F } };
nanF.wordL.wordLuint = 0xFFC00000U;
return nanF.wordL.wordLreal;
}
/*
* File trailer for generated code.
*
* [EOF]
*/

View File

@ -1,30 +0,0 @@
/*
* File: rtGetNaN.h
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#ifndef RTW_HEADER_rtGetNaN_h_
#define RTW_HEADER_rtGetNaN_h_
#include "rt_nonfinite.h"
#include "rtwtypes.h"
extern real_T rtGetNaN(void);
extern real32_T rtGetNaNF(void);
#endif /* RTW_HEADER_rtGetNaN_h_ */
/*
* File trailer for generated code.
*
* [EOF]
*/

View File

@ -1,92 +0,0 @@
/*
* File: rt_nonfinite.c
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include "rtGetNaN.h"
#include "rtGetInf.h"
#include <stddef.h>
#include "rtwtypes.h"
#include "rt_nonfinite.h"
#define NumBitsPerChar 8U
real_T rtInf;
real_T rtMinusInf;
real_T rtNaN;
real32_T rtInfF;
real32_T rtMinusInfF;
real32_T rtNaNF;
/*
* Initialize the rtInf, rtMinusInf, and rtNaN needed by the
* generated code. NaN is initialized as non-signaling. Assumes IEEE.
*/
void rt_InitInfAndNaN(size_t realSize)
{
(void) (realSize);
rtNaN = rtGetNaN();
rtNaNF = rtGetNaNF();
rtInf = rtGetInf();
rtInfF = rtGetInfF();
rtMinusInf = rtGetMinusInf();
rtMinusInfF = rtGetMinusInfF();
}
/* Test if value is infinite */
boolean_T rtIsInf(real_T value)
{
return (boolean_T)((value==rtInf || value==rtMinusInf) ? 1U : 0U);
}
/* Test if single-precision value is infinite */
boolean_T rtIsInfF(real32_T value)
{
return (boolean_T)(((value)==rtInfF || (value)==rtMinusInfF) ? 1U : 0U);
}
/* Test if value is not a number */
boolean_T rtIsNaN(real_T value)
{
boolean_T result = (boolean_T) 0;
size_t bitsPerReal = sizeof(real_T) * (NumBitsPerChar);
if (bitsPerReal == 32U) {
result = rtIsNaNF((real32_T)value);
} else {
union {
LittleEndianIEEEDouble bitVal;
real_T fltVal;
} tmpVal;
tmpVal.fltVal = value;
result = (boolean_T)((tmpVal.bitVal.words.wordH & 0x7FF00000) == 0x7FF00000 &&
( (tmpVal.bitVal.words.wordH & 0x000FFFFF) != 0 ||
(tmpVal.bitVal.words.wordL != 0) ));
}
return result;
}
/* Test if single-precision value is not a number */
boolean_T rtIsNaNF(real32_T value)
{
IEEESingle tmp;
tmp.wordL.wordLreal = value;
return (boolean_T)( (tmp.wordL.wordLuint & 0x7F800000) == 0x7F800000 &&
(tmp.wordL.wordLuint & 0x007FFFFF) != 0 );
}
/*
* File trailer for generated code.
*
* [EOF]
*/

View File

@ -1,60 +0,0 @@
/*
* File: rt_nonfinite.h
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#ifndef RTW_HEADER_rt_nonfinite_h_
#define RTW_HEADER_rt_nonfinite_h_
#include <stddef.h>
#include "rtwtypes.h"
#define NOT_USING_NONFINITE_LITERALS 1
extern real_T rtInf;
extern real_T rtMinusInf;
extern real_T rtNaN;
extern real32_T rtInfF;
extern real32_T rtMinusInfF;
extern real32_T rtNaNF;
extern void rt_InitInfAndNaN(size_t realSize);
extern boolean_T rtIsInf(real_T value);
extern boolean_T rtIsInfF(real32_T value);
extern boolean_T rtIsNaN(real_T value);
extern boolean_T rtIsNaNF(real32_T value);
typedef struct {
struct {
uint32_T wordH;
uint32_T wordL;
} words;
} BigEndianIEEEDouble;
typedef struct {
struct {
uint32_T wordL;
uint32_T wordH;
} words;
} LittleEndianIEEEDouble;
typedef struct {
union {
real32_T wordLreal;
uint32_T wordLuint;
} wordL;
} IEEESingle;
#endif /* RTW_HEADER_rt_nonfinite_h_ */
/*
* File trailer for generated code.
*
* [EOF]
*/

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@ -16,7 +16,6 @@
#include "socTouchDisplay.h"
#include "rtwtypes.h"
#include <math.h>
#include "rt_nonfinite.h"
#include "socTouchDisplay_private.h"
/* Named constants for Chart: '<Root>/Chart' */
@ -48,11 +47,12 @@ RT_MODEL_socTouchDisplay_T *const socTouchDisplay_M = &socTouchDisplay_M_;
/* Model step function */
void socTouchDisplay_step(void)
{
real_T tmp;
int32_T i;
int32_T s3_iter;
uint32_T tmp_0;
uint32_T tmp;
uint8_T rtb_Cast;
boolean_T Memory_PreviousInput;
boolean_T rtb_Equal;
boolean_T rtb_Memory;
/* Outputs for Iterator SubSystem: '<Root>/canMsgDecode' incorporates:
@ -71,842 +71,38 @@ void socTouchDisplay_step(void)
&socTouchDisplay_B.Selector.Length, &socTouchDisplay_B.Selector.Data[0],
&socTouchDisplay_B.SFunction);
/* RelationalOperator: '<S3>/Equal' incorporates:
* Inport: '<Root>/ip_u32canId'
*/
rtb_Equal = (socTouchDisplay_B.SFunction.ID == socTouchDisplay_U.ip_u32canId);
/* Outputs for Enabled SubSystem: '<S3>/Enabled Subsystem' incorporates:
* EnablePort: '<S5>/Enable'
*/
/* Logic: '<S3>/AND' incorporates:
* Constant: '<S3>/Constant'
* RelationalOperator: '<S3>/Equal1'
*/
if ((socTouchDisplay_B.SFunction.Data[0] == 2) && rtb_Equal) {
for (i = 0; i < 8; i++) {
/* SignalConversion generated from: '<S5>/In1' */
socTouchDisplay_B.In1[i] = socTouchDisplay_B.SFunction.Data[i];
}
}
/* End of Logic: '<S3>/AND' */
/* End of Outputs for SubSystem: '<S3>/Enabled Subsystem' */
/* DataTypeConversion: '<S3>/Cast' */
rtb_Cast = socTouchDisplay_B.In1[2];
/* Memory: '<S3>/Memory' */
rtb_Memory = Memory_PreviousInput;
/* S-Function (scanunpack): '<S3>/CAN Unpack' */
{
/* S-Function (scanunpack): '<S3>/CAN Unpack' */
if ((8 == socTouchDisplay_B.SFunction.Length) &&
(socTouchDisplay_B.SFunction.ID != INVALID_CAN_ID) ) {
if ((220839530 == socTouchDisplay_B.SFunction.ID) && (1U ==
socTouchDisplay_B.SFunction.Extended) ) {
{
/* --------------- START Unpacking signal 16 ------------------
* startBit = 0
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
{
real_T outValue = 0;
{
uint8_T unpackedValue = 0;
{
uint8_T tempValue = (uint8_T) (0);
{
tempValue = tempValue | (uint8_T)
(socTouchDisplay_B.SFunction.Data[0]);
}
unpackedValue = tempValue;
}
outValue = (real_T) (unpackedValue);
}
{
real_T result = (real_T) outValue;
socTouchDisplay_B.CANUnpack_o17 = result;
}
}
/* --------------- START Unpacking signal 0 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 1 ------------------
* startBit = 24
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 2 ------------------
* startBit = 32
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 3 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 4 ------------------
* startBit = 48
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 5 ------------------
* startBit = 56
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 6 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 7 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 8 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 9 ------------------
* startBit = 24
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 10 ------------------
* startBit = 32
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 11 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 12 ------------------
* startBit = 48
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 13 ------------------
* startBit = 56
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 14 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 15 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 17 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 18 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 19 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 20 ------------------
* startBit = 48
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 21 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 22 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 23 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 24 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 25 ------------------
* startBit = 24
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 26 ------------------
* startBit = 32
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 27 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 28 ------------------
* startBit = 8
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 29 ------------------
* startBit = 9
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 30 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 31 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 32 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 33 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 34 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 35 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 36 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 37 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 38 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 39 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 40 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 41 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 42 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 43 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 44 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 45 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 46 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 47 ------------------
* startBit = 9
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 48 ------------------
* startBit = 8
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 49 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 50 ------------------
* startBit = 10
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 51 ------------------
* startBit = 11
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 52 ------------------
* startBit = 13
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 53 ------------------
* startBit = 14
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 54 ------------------
* startBit = 15
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 55 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/* Perform the mode dependency check to value */
if (socTouchDisplay_B.CANUnpack_o17 == 2.0) {
{
real_T outValue = 0;
{
uint8_T unpackedValue = 0;
{
uint8_T tempValue = (uint8_T) (0);
{
tempValue = tempValue | (uint8_T)
(socTouchDisplay_B.SFunction.Data[2]);
}
unpackedValue = tempValue;
}
outValue = (real_T) (unpackedValue);
}
{
real_T result = (real_T) outValue;
socTouchDisplay_B.CANUnpack_o56 = result;
}
}
}
/* --------------- START Unpacking signal 56 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 57 ------------------
* startBit = 12
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
}
}
}
}
/* DataTypeConversion: '<S3>/Cast' */
tmp = floor(socTouchDisplay_B.CANUnpack_o56);
if (rtIsNaN(tmp) || rtIsInf(tmp)) {
tmp = 0.0;
} else {
tmp = fmod(tmp, 256.0);
}
if (tmp < 0.0) {
rtb_Cast = (uint8_T)-(int8_T)(uint8_T)-tmp;
} else {
rtb_Cast = (uint8_T)tmp;
}
/* End of DataTypeConversion: '<S3>/Cast' */
/* Update for Memory: '<S3>/Memory' incorporates:
* Logic: '<S3>/OR'
* RelationalOperator: '<S3>/Equal'
*/
Memory_PreviousInput = ((socTouchDisplay_B.SFunction.ID == 220839530U) ||
Memory_PreviousInput);
Memory_PreviousInput = (rtb_Equal || Memory_PreviousInput);
}
/* End of Outputs for SubSystem: '<Root>/canMsgDecode' */
@ -1012,9 +208,9 @@ void socTouchDisplay_step(void)
socTouchDisplay_DW.durationCounter_2 = 0U;
}
tmp_0 = (uint32_T)ceil(socTouchDisplay_U.ip_u32TouchDuration_msec);
if (((uint32_T)((int32_T)socTouchDisplay_DW.durationCounter_2 * 100) >
tmp_0) && Memory_PreviousInput) {
tmp = (uint32_T)ceil(socTouchDisplay_U.ip_u32TouchDuration_msec);
if (((uint32_T)((int32_T)socTouchDisplay_DW.durationCounter_2 * 100) > tmp)
&& Memory_PreviousInput) {
socTouchDisplay_DW.temporalCounter_i1 = 0U;
socTouchDisplay_DW.is_c3_socTouchDisplay = socTouchDisplay_IN_displaySoc;
@ -1026,7 +222,7 @@ void socTouchDisplay_step(void)
}
if (((uint32_T)((int32_T)socTouchDisplay_DW.durationCounter_1_g * 100) >
tmp_0) && (!Memory_PreviousInput)) {
tmp) && (!Memory_PreviousInput)) {
socTouchDisplay_DW.temporalCounter_i1 = 0U;
socTouchDisplay_DW.is_c3_socTouchDisplay =
socTouchDisplay_IN_displayError;
@ -1114,18 +310,7 @@ void socTouchDisplay_step(void)
/* Model initialize function */
void socTouchDisplay_initialize(void)
{
/* Registration code */
/* initialize non-finites */
rt_InitInfAndNaN(sizeof(real_T));
/* SystemInitialize for Iterator SubSystem: '<Root>/canMsgDecode' */
/* Start for S-Function (scanunpack): '<S3>/CAN Unpack' */
/*-----------S-Function Block: <S3>/CAN Unpack -----------------*/
/* End of SystemInitialize for SubSystem: '<Root>/canMsgDecode' */
/* (no initialization code required) */
}
/* Model terminate function */

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@ -18,11 +18,9 @@
#ifndef socTouchDisplay_COMMON_INCLUDES_
#define socTouchDisplay_COMMON_INCLUDES_
#include "rtwtypes.h"
#include "can_message.h"
#endif /* socTouchDisplay_COMMON_INCLUDES_ */
#include "socTouchDisplay_types.h"
#include "rt_nonfinite.h"
#include "ivec_rte_dummy.h"
/* Macros for accessing real-time model data structure */
@ -38,64 +36,7 @@
typedef struct {
CAN_MESSAGE_BUS Selector; /* '<S3>/Selector' */
CAN_MESSAGE_BUS SFunction; /* '<S3>/S-Function' */
real_T CANUnpack_o1; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o2; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o3; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o4; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o5; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o6; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o7; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o8; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o9; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o10; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o11; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o12; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o13; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o14; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o15; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o16; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o17; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o18; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o19; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o20; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o21; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o22; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o23; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o24; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o25; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o26; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o27; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o28; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o29; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o30; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o31; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o32; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o33; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o34; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o35; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o36; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o37; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o38; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o39; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o40; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o41; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o42; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o43; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o44; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o45; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o46; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o47; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o48; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o49; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o50; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o51; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o52; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o53; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o54; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o55; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o56; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o57; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o58; /* '<S3>/CAN Unpack' */
uint8_T In1[8]; /* '<S5>/In1' */
} B_socTouchDisplay_T;
/* Block states (default storage) for system '<Root>' */
@ -105,8 +46,6 @@ typedef struct {
uint32_T temporalCounter_i1; /* '<Root>/Chart' */
uint32_T durationCounter_1_g; /* '<Root>/Chart' */
uint32_T durationCounter_2; /* '<Root>/Chart' */
int_T CANUnpack_ModeSignalID; /* '<S3>/CAN Unpack' */
int_T CANUnpack_StatusPortID; /* '<S3>/CAN Unpack' */
uint8_T is_active_c1_socTouchDisplay;/* '<Root>/Chart1' */
uint8_T is_c1_socTouchDisplay; /* '<Root>/Chart1' */
uint8_T is_active_c3_socTouchDisplay;/* '<Root>/Chart' */
@ -119,6 +58,7 @@ typedef struct {
real_T ip_u32TouchDuration_msec; /* '<Root>/ip_u32TouchDuration_msec' */
real_T ip_u32DisplayDuration_msec; /* '<Root>/ip_u32DisplayDuration_msec' */
CAN_MESSAGE_BUS Input[MAX_CAN_MESSAGE_INSTANCE];/* '<Root>/Input' */
uint32_T ip_u32canId; /* '<Root>/ip_u32canId' */
} ExtU_socTouchDisplay_T;
/* External outputs (root outports fed by signals with default storage) */
@ -182,6 +122,7 @@ extern RT_MODEL_socTouchDisplay_T *const socTouchDisplay_M;
* '<S2>' : 'socTouchDisplay/Chart1'
* '<S3>' : 'socTouchDisplay/canMsgDecode'
* '<S4>' : 'socTouchDisplay/displayData'
* '<S5>' : 'socTouchDisplay/canMsgDecode/Enabled Subsystem'
*/
#endif /* RTW_HEADER_socTouchDisplay_h_ */

View File

@ -2,7 +2,7 @@
## Makefile generated for component 'socTouchDisplay'.
##
## Makefile : socTouchDisplay.mk
## Generated on : Mon Oct 28 16:04:26 2024
## Generated on : Thu Nov 07 22:32:48 2024
## Final product: $(RELATIVE_PATH_TO_ANCHOR)/socTouchDisplay.exe
## Product type : executable
##
@ -23,7 +23,7 @@ MAKEFILE = socTouchDisplay.mk
MATLAB_ROOT = C:/PROGRA~1/MATLAB/R2023b
MATLAB_BIN = C:/PROGRA~1/MATLAB/R2023b/bin
MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64
START_DIR = D:/MATLAB/bs_touchAndLcd
START_DIR = D:/AAR/cantouart_ti/bs_touchAndLcd
SOLVER =
SOLVER_OBJ =
CLASSIC_INTERFACE = 0
@ -183,7 +183,7 @@ DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STAN
## SOURCE FILES
###########################################################################
SRCS = $(START_DIR)/socTouchDisplay_ert_rtw/rtGetInf.c $(START_DIR)/socTouchDisplay_ert_rtw/rtGetNaN.c $(START_DIR)/socTouchDisplay_ert_rtw/rt_nonfinite.c $(START_DIR)/socTouchDisplay_ert_rtw/socTouchDisplay.c
SRCS = $(START_DIR)/socTouchDisplay_ert_rtw/socTouchDisplay.c
MAIN_SRC = $(START_DIR)/socTouchDisplay_ert_rtw/ert_main.c
@ -193,7 +193,7 @@ ALL_SRCS = $(SRCS) $(MAIN_SRC)
## OBJECTS
###########################################################################
OBJS = rtGetInf.obj rtGetNaN.obj rt_nonfinite.obj socTouchDisplay.obj
OBJS = socTouchDisplay.obj
MAIN_OBJ = ert_main.obj
@ -515,18 +515,6 @@ ert_main.obj : $(START_DIR)/socTouchDisplay_ert_rtw/ert_main.c
$(CC) $(CFLAGS) -o "$@" "$<"
rtGetInf.obj : $(START_DIR)/socTouchDisplay_ert_rtw/rtGetInf.c
$(CC) $(CFLAGS) -o "$@" "$<"
rtGetNaN.obj : $(START_DIR)/socTouchDisplay_ert_rtw/rtGetNaN.c
$(CC) $(CFLAGS) -o "$@" "$<"
rt_nonfinite.obj : $(START_DIR)/socTouchDisplay_ert_rtw/rt_nonfinite.c
$(CC) $(CFLAGS) -o "$@" "$<"
socTouchDisplay.obj : $(START_DIR)/socTouchDisplay_ert_rtw/socTouchDisplay.c
$(CC) $(CFLAGS) -o "$@" "$<"

View File

@ -1,5 +1,2 @@
ert_main.obj
rtGetInf.obj
rtGetNaN.obj
rt_nonfinite.obj
socTouchDisplay.obj

View File

@ -1,8 +1,7 @@
-ID:/MATLAB/bs_touchAndLcd
-ID:/MATLAB/bs_touchAndLcd/socTouchDisplay_ert_rtw
-ID:/AAR/cantouart_ti/bs_touchAndLcd
-ID:/AAR/cantouart_ti/bs_touchAndLcd/socTouchDisplay_ert_rtw
-IC:/Program\ Files/MATLAB/R2023b/extern/include
-IC:/Program\ Files/MATLAB/R2023b/simulink/include
-IC:/Program\ Files/MATLAB/R2023b/rtw/c/src
-IC:/Program\ Files/MATLAB/R2023b/rtw/c/src/ext_mode/common
-IC:/Program\ Files/MATLAB/R2023b/rtw/c/ert
-IC:/Program\ Files/MATLAB/R2023b/toolbox/shared/can/src/scanutil

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)

View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<MF0 version="1.1" packageUris="http://schema.mathworks.com/mf0/SlCache/19700101">
<slcache.FileAttributes type="slcache.FileAttributes" uuid="50ee8ca7-b352-4bb2-8e74-a29811f62669">
<checksum>2oxCrrkWYAfYsid2BKElsqmUm/b9blgB8ROjvTY5kkSHI15WRdu5OidAq6Boxegx/r4DqPRAm5D7oEE/jWVWyQ==</checksum>
<slcache.FileAttributes type="slcache.FileAttributes" uuid="9dbe2b40-75ce-4910-952e-94ba17cbac94">
<checksum>8bTFSfmqHVlYhNqKtSda3c/Kq/qLr9+hTAYNegrcsTT+6h7F5vQznuwmUe5uezw4aTCxAwaPBDr/BUHto5jDVQ==</checksum>
</slcache.FileAttributes>
</MF0>

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@ -18,11 +18,9 @@
#ifndef socTouchDisplay_COMMON_INCLUDES_
#define socTouchDisplay_COMMON_INCLUDES_
#include "rtwtypes.h"
#include "can_message.h"
#endif /* socTouchDisplay_COMMON_INCLUDES_ */
#include "socTouchDisplay_types.h"
#include "rt_nonfinite.h"
#include "ivec_rte_dummy.h"
/* Macros for accessing real-time model data structure */
@ -38,64 +36,7 @@
typedef struct {
CAN_MESSAGE_BUS Selector; /* '<S3>/Selector' */
CAN_MESSAGE_BUS SFunction; /* '<S3>/S-Function' */
real_T CANUnpack_o1; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o2; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o3; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o4; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o5; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o6; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o7; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o8; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o9; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o10; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o11; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o12; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o13; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o14; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o15; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o16; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o17; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o18; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o19; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o20; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o21; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o22; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o23; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o24; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o25; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o26; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o27; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o28; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o29; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o30; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o31; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o32; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o33; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o34; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o35; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o36; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o37; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o38; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o39; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o40; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o41; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o42; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o43; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o44; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o45; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o46; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o47; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o48; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o49; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o50; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o51; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o52; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o53; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o54; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o55; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o56; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o57; /* '<S3>/CAN Unpack' */
real_T CANUnpack_o58; /* '<S3>/CAN Unpack' */
uint8_T In1[8]; /* '<S5>/In1' */
} B_socTouchDisplay_T;
/* Block states (default storage) for system '<Root>' */
@ -105,8 +46,6 @@ typedef struct {
uint32_T temporalCounter_i1; /* '<Root>/Chart' */
uint32_T durationCounter_1_g; /* '<Root>/Chart' */
uint32_T durationCounter_2; /* '<Root>/Chart' */
int_T CANUnpack_ModeSignalID; /* '<S3>/CAN Unpack' */
int_T CANUnpack_StatusPortID; /* '<S3>/CAN Unpack' */
uint8_T is_active_c1_socTouchDisplay;/* '<Root>/Chart1' */
uint8_T is_c1_socTouchDisplay; /* '<Root>/Chart1' */
uint8_T is_active_c3_socTouchDisplay;/* '<Root>/Chart' */
@ -119,6 +58,7 @@ typedef struct {
real_T ip_u32TouchDuration_msec; /* '<Root>/ip_u32TouchDuration_msec' */
real_T ip_u32DisplayDuration_msec; /* '<Root>/ip_u32DisplayDuration_msec' */
CAN_MESSAGE_BUS Input[MAX_CAN_MESSAGE_INSTANCE];/* '<Root>/Input' */
uint32_T ip_u32canId; /* '<Root>/ip_u32canId' */
} ExtU_socTouchDisplay_T;
/* External outputs (root outports fed by signals with default storage) */
@ -182,6 +122,7 @@ extern RT_MODEL_socTouchDisplay_T *const socTouchDisplay_M;
* '<S2>' : 'socTouchDisplay/Chart1'
* '<S3>' : 'socTouchDisplay/canMsgDecode'
* '<S4>' : 'socTouchDisplay/displayData'
* '<S5>' : 'socTouchDisplay/canMsgDecode/Enabled Subsystem'
*/
#endif /* RTW_HEADER_socTouchDisplay_h_ */

View File

@ -3,9 +3,9 @@
*
* Code generated for Simulink model 'socTouchDisplay'.
*
* Model version : 1.104
* Model version : 1.111
* Simulink Coder version : 23.2 (R2023b) 01-Aug-2023
* C/C++ source code generated on : Mon Oct 28 16:04:13 2024
* C/C++ source code generated on : Thu Nov 7 22:32:36 2024
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
@ -16,7 +16,6 @@
#include "socTouchDisplay.h"
#include "rtwtypes.h"
#include <math.h>
#include "rt_nonfinite.h"
#include "socTouchDisplay_private.h"
/* Named constants for Chart: '<Root>/Chart' */
@ -48,11 +47,12 @@ RT_MODEL_socTouchDisplay_T *const socTouchDisplay_M = &socTouchDisplay_M_;
/* Model step function */
void socTouchDisplay_step(void)
{
real_T tmp;
int32_T i;
int32_T s3_iter;
uint32_T tmp_0;
uint32_T tmp;
uint8_T rtb_Cast;
boolean_T Memory_PreviousInput;
boolean_T rtb_Equal;
boolean_T rtb_Memory;
/* Outputs for Iterator SubSystem: '<Root>/canMsgDecode' incorporates:
@ -71,842 +71,38 @@ void socTouchDisplay_step(void)
&socTouchDisplay_B.Selector.Length, &socTouchDisplay_B.Selector.Data[0],
&socTouchDisplay_B.SFunction);
/* RelationalOperator: '<S3>/Equal' incorporates:
* Inport: '<Root>/ip_u32canId'
*/
rtb_Equal = (socTouchDisplay_B.SFunction.ID == socTouchDisplay_U.ip_u32canId);
/* Outputs for Enabled SubSystem: '<S3>/Enabled Subsystem' incorporates:
* EnablePort: '<S5>/Enable'
*/
/* Logic: '<S3>/AND' incorporates:
* Constant: '<S3>/Constant'
* RelationalOperator: '<S3>/Equal1'
*/
if ((socTouchDisplay_B.SFunction.Data[0] == 2) && rtb_Equal) {
for (i = 0; i < 8; i++) {
/* SignalConversion generated from: '<S5>/In1' */
socTouchDisplay_B.In1[i] = socTouchDisplay_B.SFunction.Data[i];
}
}
/* End of Logic: '<S3>/AND' */
/* End of Outputs for SubSystem: '<S3>/Enabled Subsystem' */
/* DataTypeConversion: '<S3>/Cast' */
rtb_Cast = socTouchDisplay_B.In1[2];
/* Memory: '<S3>/Memory' */
rtb_Memory = Memory_PreviousInput;
/* S-Function (scanunpack): '<S3>/CAN Unpack' */
{
/* S-Function (scanunpack): '<S3>/CAN Unpack' */
if ((8 == socTouchDisplay_B.SFunction.Length) &&
(socTouchDisplay_B.SFunction.ID != INVALID_CAN_ID) ) {
if ((220839530 == socTouchDisplay_B.SFunction.ID) && (1U ==
socTouchDisplay_B.SFunction.Extended) ) {
{
/* --------------- START Unpacking signal 16 ------------------
* startBit = 0
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
{
real_T outValue = 0;
{
uint8_T unpackedValue = 0;
{
uint8_T tempValue = (uint8_T) (0);
{
tempValue = tempValue | (uint8_T)
(socTouchDisplay_B.SFunction.Data[0]);
}
unpackedValue = tempValue;
}
outValue = (real_T) (unpackedValue);
}
{
real_T result = (real_T) outValue;
socTouchDisplay_B.CANUnpack_o17 = result;
}
}
/* --------------- START Unpacking signal 0 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 1 ------------------
* startBit = 24
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 2 ------------------
* startBit = 32
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 3 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 4 ------------------
* startBit = 48
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 5 ------------------
* startBit = 56
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 6 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 7 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 8 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 9 ------------------
* startBit = 24
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 10 ------------------
* startBit = 32
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 11 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 12 ------------------
* startBit = 48
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 13 ------------------
* startBit = 56
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 14 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 15 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 17 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 18 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 19 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 20 ------------------
* startBit = 48
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 21 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 22 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 23 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 24 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 25 ------------------
* startBit = 24
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 26 ------------------
* startBit = 32
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 27 ------------------
* startBit = 40
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 28 ------------------
* startBit = 8
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 29 ------------------
* startBit = 9
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 30 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 31 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 32 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 33 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 34 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 35 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 36 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 37 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 38 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 39 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 40 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 41 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 42 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 43 ------------------
* startBit = 16
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 44 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 45 ------------------
* startBit = 48
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 46 ------------------
* startBit = 32
* length = 16
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 47 ------------------
* startBit = 9
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 48 ------------------
* startBit = 8
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 49 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = SIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 50 ------------------
* startBit = 10
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 51 ------------------
* startBit = 11
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 52 ------------------
* startBit = 13
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 53 ------------------
* startBit = 14
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 54 ------------------
* startBit = 15
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 55 ------------------
* startBit = 16
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/* Perform the mode dependency check to value */
if (socTouchDisplay_B.CANUnpack_o17 == 2.0) {
{
real_T outValue = 0;
{
uint8_T unpackedValue = 0;
{
uint8_T tempValue = (uint8_T) (0);
{
tempValue = tempValue | (uint8_T)
(socTouchDisplay_B.SFunction.Data[2]);
}
unpackedValue = tempValue;
}
outValue = (real_T) (unpackedValue);
}
{
real_T result = (real_T) outValue;
socTouchDisplay_B.CANUnpack_o56 = result;
}
}
}
/* --------------- START Unpacking signal 56 ------------------
* startBit = 8
* length = 8
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
/* --------------- START Unpacking signal 57 ------------------
* startBit = 12
* length = 1
* desiredSignalByteLayout = BIGENDIAN
* dataType = UNSIGNED
* factor = 1.0
* offset = 0.0
* -----------------------------------------------------------------------*/
/*
* Signal is not connected or connected to terminator.
* No unpacking code generated.
*/
}
}
}
}
/* DataTypeConversion: '<S3>/Cast' */
tmp = floor(socTouchDisplay_B.CANUnpack_o56);
if (rtIsNaN(tmp) || rtIsInf(tmp)) {
tmp = 0.0;
} else {
tmp = fmod(tmp, 256.0);
}
if (tmp < 0.0) {
rtb_Cast = (uint8_T)-(int8_T)(uint8_T)-tmp;
} else {
rtb_Cast = (uint8_T)tmp;
}
/* End of DataTypeConversion: '<S3>/Cast' */
/* Update for Memory: '<S3>/Memory' incorporates:
* Logic: '<S3>/OR'
* RelationalOperator: '<S3>/Equal'
*/
Memory_PreviousInput = ((socTouchDisplay_B.SFunction.ID == 220839530U) ||
Memory_PreviousInput);
Memory_PreviousInput = (rtb_Equal || Memory_PreviousInput);
}
/* End of Outputs for SubSystem: '<Root>/canMsgDecode' */
@ -1012,9 +208,9 @@ void socTouchDisplay_step(void)
socTouchDisplay_DW.durationCounter_2 = 0U;
}
tmp_0 = (uint32_T)ceil(socTouchDisplay_U.ip_u32TouchDuration_msec);
if (((uint32_T)((int32_T)socTouchDisplay_DW.durationCounter_2 * 100) >
tmp_0) && Memory_PreviousInput) {
tmp = (uint32_T)ceil(socTouchDisplay_U.ip_u32TouchDuration_msec);
if (((uint32_T)((int32_T)socTouchDisplay_DW.durationCounter_2 * 100) > tmp)
&& Memory_PreviousInput) {
socTouchDisplay_DW.temporalCounter_i1 = 0U;
socTouchDisplay_DW.is_c3_socTouchDisplay = socTouchDisplay_IN_displaySoc;
@ -1026,7 +222,7 @@ void socTouchDisplay_step(void)
}
if (((uint32_T)((int32_T)socTouchDisplay_DW.durationCounter_1_g * 100) >
tmp_0) && (!Memory_PreviousInput)) {
tmp) && (!Memory_PreviousInput)) {
socTouchDisplay_DW.temporalCounter_i1 = 0U;
socTouchDisplay_DW.is_c3_socTouchDisplay =
socTouchDisplay_IN_displayError;
@ -1114,18 +310,7 @@ void socTouchDisplay_step(void)
/* Model initialize function */
void socTouchDisplay_initialize(void)
{
/* Registration code */
/* initialize non-finites */
rt_InitInfAndNaN(sizeof(real_T));
/* SystemInitialize for Iterator SubSystem: '<Root>/canMsgDecode' */
/* Start for S-Function (scanunpack): '<S3>/CAN Unpack' */
/*-----------S-Function Block: <S3>/CAN Unpack -----------------*/
/* End of SystemInitialize for SubSystem: '<Root>/canMsgDecode' */
/* (no initialization code required) */
}
/* Model terminate function */

View File

@ -18,6 +18,7 @@ McalUartHandle_s g_xUartHandle;
uint32_t g_u32UartSpeed = 0;
uint16_t g_u16CanSpeed = 0;
uint8_t g_pu8Buf[MAX_PACKET_LENGTH] = {0};
volatile uint32_t g_u32CanId = 0x1fffffff;
static uint8_t __gprv_u8Idx = 0;
static uint8_t __gprv_u8Buf = 0;
@ -88,6 +89,7 @@ void vRTE_MatlabRun(void)
socTouchDisplay_U.in_bTouchDetected = (u32MCAL_gpioRead(GPIOB, DL_GPIO_PIN_17) == DL_GPIO_PIN_17) ? 1 : 0;
socTouchDisplay_U.ip_u32DisplayDuration_msec = 2000;
socTouchDisplay_U.ip_u32TouchDuration_msec = 100;
socTouchDisplay_U.ip_u32canId = g_u32CanId;
socTouchDisplay_step();
@ -158,6 +160,10 @@ void vRTE_UARTDataProcess(void)
g_u16CanSpeed = (uint16_t)baudrate;
// xECU_CanReInit(CANFD0, g_u16CanSpeed);
}
else if (mode == 100)
{
g_u32CanId = baudrate;
}
vMCAL_DelayTicks(100);
vECU_InitiateUartToCanTransmit(&g_xUartHandle, 0x01, g_pu8Buf, 0);
}
@ -186,7 +192,7 @@ void vRTE_CANDataProcess(void)
socTouchDisplay_U.Input[__gprv_u8Idx].Length = xBuff.length;
memcpy(&socTouchDisplay_U.Input[__gprv_u8Idx].Data[0], &xBuff.data[0], 8);
__gprv_u8Idx = (__gprv_u8Idx + 1) % MAX_CAN_MESSAGE_INSTANCE;
if(l_u8TxBurstMessages < 24)
if(l_u8TxBurstMessages < 16)
l_u8TxBurstMessages++;
else
break;