-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathRootComposition.swcd
More file actions
32 lines (23 loc) · 1.11 KB
/
RootComposition.swcd
File metadata and controls
32 lines (23 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
package ApplicationLayer.CompositionPackage
import ApplicationLayer.ApplicationPackage.*
import BSWConfiguration.Services.IoHwAb.IoHwAb
composition RootComposition {
prototype PotSensor PotSensorInstance
prototype SwtSensor SwtSensorInstance
prototype IntController RedLiIntControllerInstance
prototype LEDActuator BlueLiActuatorInstance
prototype LightManager LightManagerInstance
prototype IoHwAb IoHwAbInstance
ports {
requires LightManagerInstance.IntReq IntReqCAN
provides LightManagerInstance.LEDSts LEDStsCAN
provides PotSensorInstance.POTSts POTStsCAN
}
connect SwtSensorInstance.SwtSts to LightManagerInstance.BtnPressed
connect LightManagerInstance.BlueLiSts to BlueLiActuatorInstance.LightSts
connect LightManagerInstance.RedLiIntSts to RedLiIntControllerInstance.IntSts
connect IoHwAbInstance.Digital_Swt to SwtSensorInstance.SwtSignal
connect IoHwAbInstance.Digital_BlueLED to BlueLiActuatorInstance.LEDSignal
connect IoHwAbInstance.Pwm_RedLEDDuty to RedLiIntControllerInstance.DutySignal
connect IoHwAbInstance.Analog_POT to PotSensorInstance.POTSignal
}