-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathPotSensor.swcd
More file actions
36 lines (27 loc) · 821 Bytes
/
PotSensor.swcd
File metadata and controls
36 lines (27 loc) · 821 Bytes
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
33
34
35
36
package ApplicationLayer.ApplicationPackage
import ApplicationLayer.Interface.*
import ArcCore.Services.IoHwAb.*
import PotSensor.PotSensorBehavior
component sensorActuator PotSensor {
ports {
// AnalogServiceRead is from IoHwAb
client POTSignal requires AnalogServiceRead
sender POTSts provides DataInterface
}
}
internalBehavior PotSensorBehavior for PotSensor {
//dataTypeMapping is imported, but it needs to be explicitly referred for RTE generation
dataTypeMappings {
TypeMappings
}
runnable PotSensorMain[0.0] {
symbol "PotSensorMain"
dataWriteAccess POTSts.message
serverCallPoint synchronous POTSignal.Read
timingEvent 0.01 as PotSensorMainEvent
}
}
implementation PotSensorImpl for PotSensorBehavior {
language c
codeDescriptor "src"
}