diff options
author | Thomas Schuetz | 2019-01-11 21:07:51 +0000 |
---|---|---|
committer | Thomas Schuetz | 2019-01-11 21:10:07 +0000 |
commit | 322931d01d3fdf0411b2756f5aad5f582eddeed0 (patch) | |
tree | 862d6d66046f184eed99fe4ba7604a5096bc6238 /runtime | |
parent | 71d8ecc0556364aec9c55ec0df9328f3197bd85e (diff) | |
download | org.eclipse.etrice-322931d01d3fdf0411b2756f5aad5f582eddeed0.tar.gz org.eclipse.etrice-322931d01d3fdf0411b2756f5aad5f582eddeed0.tar.xz org.eclipse.etrice-322931d01d3fdf0411b2756f5aad5f582eddeed0.zip |
added model documentation for PTimer
Change-Id: I6321c293ef13cd40e339f39f75f001598fd8027d
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/org.eclipse.etrice.modellib.c/model/TimingService.room | 7 |
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 |