source: SimpleSample/trunk/SimpleSampleTransparentRPC/SimpleSample.cdl@ 30

Last change on this file since 30 was 30, checked in by okuma-top, 12 years ago

TECS Simple Sample

File size: 1.2 KB
Line 
1/*
2 * Simple な Sample (TransparentRPC 版)
3 *
4 * +-------------+ +-------------+ +-------------+
5 * | | | | | |
6 * | tTask | sTaskBody | tSimple | sSample | tSample |
7 * | Task |-----------|> Simple |==========|> Sample |
8 * | |cTask eBody| |cCall eEnt| |
9 * | |Body | | | |
10 * +-------------+ +-------------+ +-------------+
11 */
12
13
14// cygwin 用の簡易な型定義
15import( <cygwin_kernel.cdl> );
16 // TECS 対応 TOPPERS/ASP ならば import( <kernel.cdl> ); でよい
17
18import( <tSysLog.cdl> );
19import( <rpc.cdl> );
20import( <tDataqueueOWChannel.cdl> );
21
22signature sSample {
23 ER sayHello( [in]int32_t times );
24 ER howAreYou( [out,string(len)]char_t *buf, [in]int32_t len );
25};
26
27celltype tSample {
28 entry sSample eEnt;
29};
30
31[singleton,active]
32celltype tSimple {
33 call sSample cCall;
34 entry sTaskBody eBody;
35};
36
37cell tSysLog SysLog {
38};
39
40cell tSample Sample {
41};
42
43cell tSimple Simple {
44 [through(RPCPlugin,"")]
45 cCall = Sample.eEnt;
46};
47
48cell tTask Task {
49 cBody = Simple.eBody;
50 priority = 11;
51 stackSize = 1024;
52 taskAttribute = C_EXP( "TA_ACT" );
53};
Note: See TracBrowser for help on using the repository browser.