commsfwsupport/commselements/testing/examplecode/mmexample1/data/utddefs.txt
branchRCL_3
changeset 11 98a7181d2ce7
equal deleted inserted replaced
9:77effd21b2c9 11:98a7181d2ce7
       
     1 //
       
     2 // Node Messages basic message and message signature definitions
       
     3 //
       
     4 
       
     5 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
       
     6 // Define ENUM TStateChangeStage before including this file
       
     7 // Define ENUM ActivityId before including this file
       
     8 // !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
       
     9 
       
    10 CONST KNodeMessagesImplementationUid = 0x10285F38
       
    11 
       
    12 
       
    13 ENUM ActivityId : UINT8
       
    14 	ActivityTimer = 1
       
    15 	ActivityTrafficLight = 2
       
    16 	ActivityController = 3
       
    17 END ENUM
       
    18 
       
    19 ENUM NM_SignatureId : UINT32
       
    20     ESignalBase                          =0
       
    21     ENodeSignal                          =1
       
    22     ESignatureBase                       =2
       
    23     ESignatureNumber                     =3
       
    24     ESignatureUid                        =4
       
    25     ESignatureErrContext                 =5
       
    26     ESignatureErrResponse                =6
       
    27 	
       
    28     ESignatureNodeId                     =8
       
    29     ESignatureNodeIdNumber               =9
       
    30     ESignatureNodeIdNumberNumber         =10
       
    31     ESignatureMessageIdNumber            =11
       
    32     ESignatureAnyNumber                  =12
       
    33     ESignatureMetaDataPtr                =13
       
    34     ESignatureNumberNumberNumber         =14
       
    35     ESignatureRMessage2                  =15
       
    36     ESignatureNumberRMessage2            =16
       
    37     ESignatureAny                        =17
       
    38     ESignatureNumberNumber               =18
       
    39     ESignatureNodeIdAny                  =19
       
    40     ESignatureNodeIdNodeId               =20
       
    41     ESignatureNodeIdNodeIdNumber         =21
       
    42     ESignatureNumberNumberNumberNumber   =22
       
    43     ESignatureUidNumber                  =23
       
    44     ESignatureNumberUidNumber            =24
       
    45     ESignatureNodeIdClientType           =25
       
    46     ESignatureClientTypeUidClientType    =26
       
    47     ESignatureClientType                 =27
       
    48     ESignatureClientTypeUid              =28
       
    49     ESignatureMessageId                  =29
       
    50     ESignatureNodeIdNumberNumberNumber   =30
       
    51     ESignatureTypeId                     =31
       
    52 END ENUM
       
    53 
       
    54 
       
    55 CONTEXT Context_RuntimeCtxId
       
    56 //    UINT8 iSize
       
    57 //    UINT8 iSalt
       
    58 //    UINT16 iThread
       
    59 //    UINT32 iScope
       
    60       PAD 8
       
    61 END CONTEXT
       
    62 
       
    63 CONTEXT Context_NodeId : Context_RuntimeCtxId 
       
    64     UINT32 iPtr
       
    65 END CONTEXT
       
    66 
       
    67 CONTEXT Context_NodeCtxId : Context_NodeId 
       
    68     ActivityId iNodeCtx		// low byte of activity id
       
    69     PAD 1			// high byte of activity id
       
    70     PAD 2 // 2-byte padding
       
    71 END CONTEXT
       
    72 
       
    73 ALIAS CONTEXT TCommsId = Context_NodeId
       
    74 
       
    75 STRUCT STypeId
       
    76     UINT32 iUid
       
    77     UINT32 iTypeId
       
    78 END STRUCT
       
    79 	
       
    80 SIGNATURE TSignalBase
       
    81     TYPEID = KNodeMessagesImplementationUid:ESignalBase
       
    82 END SIGNATURE
       
    83 
       
    84 SIGNATURE TNodeSignal : TSignalBase
       
    85     TYPEID = KNodeMessagesImplementationUid:ENodeSignal
       
    86     TMessageId iMessageId
       
    87 END SIGNATURE
       
    88 
       
    89 // Synonymous with TSigVoid
       
    90 SIGNATURE TSignatureBase : TNodeSignal
       
    91     TYPEID = KNodeMessagesImplementationUid:ESignatureBase
       
    92 END SIGNATURE
       
    93 
       
    94 SIGNATURE TSigNumber : TSignatureBase
       
    95     TYPEID = KNodeMessagesImplementationUid:ESignatureNumber
       
    96     UINT32 iValue
       
    97 END SIGNATURE 
       
    98 
       
    99 ALIAS SIGNATURE TSigVoid = TSignatureBase
       
   100 
       
   101 
       
   102 CONST KExampleRealmId = 0x2002D4B3
       
   103 
       
   104 ENUM Base_MessageId : UINT16
       
   105      EGoGreen  = 1
       
   106      EGoneRed = 2
       
   107      EWait = 3
       
   108      EGo = 4
       
   109 END ENUM
       
   110 
       
   111 MESSAGE GoGreen
       
   112     SIGNATURE = TSignatureBase
       
   113     MESSAGEID = KExampleRealmId:EGoGreen
       
   114 END MESSAGE
       
   115 
       
   116 MESSAGE GoneRed
       
   117     SIGNATURE = TSignatureBase
       
   118     MESSAGEID = KExampleRealmId:EGoneRed
       
   119 END MESSAGE
       
   120 
       
   121 MESSAGE Wait
       
   122     SIGNATURE = TSigNumber
       
   123     MESSAGEID = KExampleRealmId:EWait
       
   124 END MESSAGE
       
   125 
       
   126 MESSAGE Go
       
   127     SIGNATURE = TSignatureBase
       
   128     MESSAGEID = KExampleRealmId:EGo
       
   129 END MESSAGE
       
   130 
       
   131 
       
   132 
       
   133