Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Schuetz2019-01-11 21:07:51 +0000
committerThomas Schuetz2019-01-11 21:10:07 +0000
commit322931d01d3fdf0411b2756f5aad5f582eddeed0 (patch)
tree862d6d66046f184eed99fe4ba7604a5096bc6238 /runtime
parent71d8ecc0556364aec9c55ec0df9328f3197bd85e (diff)
downloadorg.eclipse.etrice-322931d01d3fdf0411b2756f5aad5f582eddeed0.tar.gz
org.eclipse.etrice-322931d01d3fdf0411b2756f5aad5f582eddeed0.tar.xz
org.eclipse.etrice-322931d01d3fdf0411b2756f5aad5f582eddeed0.zip
added model documentation for PTimer
Diffstat (limited to 'runtime')
-rw-r--r--runtime/org.eclipse.etrice.modellib.c/model/TimingService.room7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room b/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
index a4ed1dbee..0ab729348 100644
--- a/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
+++ b/runtime/org.eclipse.etrice.modellib.c/model/TimingService.room
@@ -200,17 +200,24 @@ RoomModel room.basic.service.timing {
}
}
+ /*
+ * Protocol for periodic timers and single shot timeouts
+ */
ProtocolClass PTimer {
usercode1 '''
#define ET_TIMER_RUNNING 0x01
#define ET_TIMER_PERIODIC 0x02'''
usercode2 '''/*uc2*/'''
incoming {
+ /* starts a periodic timer (time in milliseconds) */
Message startTimer(uint32)
+ /* starts a single shot timeout (time in milliseconds) */
Message startTimeout(uint32)
+ /* kills single shot timeouts and periodic timers */
Message kill()
}
outgoing {
+ /* fires when timeout or timer has expired */
Message timeout()
}
conjugated PortClass

Back to the top