Open Source & Linux Lab

It's better when it's simple

User Tools

Site Tools


etc:users:jcmvbkbc:isl

This is an old revision of the document!


Opensource compiler for motorola internal language

Output files structure

.h

  • includes
  • enumerations
  • struct typedefs
  • structures
  • prototypes

.c

  • includes
  • internal declarations
  • field packers/unpackers
  • message packers/unpackers
  • interface packers/unpackers

Pack/unpack signature

<pack return type>
pack_<interface name>(
    SignalType signal, /* signal type */
    Param1_t_uunion *p1, /* only present when interface has explicit header */
    Param2_t_uunion *p2, /* signal data */
    Param3_t_uunion *p3, /* only present when interface has explicit trailer */
    <pdu arg type> pdu, /* pdu output buffer */
    <pdu size arg type> sz /* pdu buffer size */
);
<unpack return type>
unpack_<interface name>(
    <pdu arg type> pdu, /* input pdu buffer */
    <pdu size arg type> sz, /* pdu buffer size */
    SignalType *signal, /* signal type */
    Param1_t_uunion **p1, /* only present when interface has explicit header */
    Param2_t_uunion **p2, /* signal data */
    Param3_t_uunion **p3, /* only present when interface has explicit trailer */
);

c

etc/users/jcmvbkbc/isl.1278968718.txt.gz · Last modified: 2010/07/13 01:05 by jcmvbkbc