summaryrefslogtreecommitdiff
path: root/lcmodule/source/cnh1606344_ldr_communication_module/config/command_ids_h.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'lcmodule/source/cnh1606344_ldr_communication_module/config/command_ids_h.xsl')
-rw-r--r--lcmodule/source/cnh1606344_ldr_communication_module/config/command_ids_h.xsl15
1 files changed, 12 insertions, 3 deletions
diff --git a/lcmodule/source/cnh1606344_ldr_communication_module/config/command_ids_h.xsl b/lcmodule/source/cnh1606344_ldr_communication_module/config/command_ids_h.xsl
index 325b598..f0fd533 100644
--- a/lcmodule/source/cnh1606344_ldr_communication_module/config/command_ids_h.xsl
+++ b/lcmodule/source/cnh1606344_ldr_communication_module/config/command_ids_h.xsl
@@ -19,6 +19,7 @@
#ifndef _COMMAND_IDS_H
#define _COMMAND_IDS_H
#include "t_basicdefinitions.h"
+<apply-templates select="group/command" mode="define"/>
TYPEDEF_ENUM {
<apply-templates select="group" mode="id"/>} ENUM8(GroupId_e);
@@ -38,15 +39,15 @@ typedef struct <value-of select="interface/@name" />_s {
<template match="value">
<text> </text>
<choose>
- <when test="@type='uint64'">
- <value-of select="@type" /><text> </text><value-of select="@name" />; /**&lt; <value-of select="text()" /> */
- </when>
<when test="@type='string'">
char *<text></text><value-of select="@name" />; /**&lt; <value-of select="text()" /> */
</when>
<when test="@type='uint32'">
<value-of select="@type" /><text> </text><value-of select="@name" />; /**&lt; <value-of select="text()" /> */
</when>
+ <when test="@type='uint64'">
+ <value-of select="@type" /><text> </text><value-of select="@name" />; /**&lt; <value-of select="text()" /> */
+ </when>
</choose>
<if test="position() = last()"><text></text>
</if>
@@ -82,4 +83,12 @@ typedef struct <value-of select="interface/@name" />_s {
</if>
</template>
+<template match="command" mode="define">
+<variable name="group" select="../@number"/>
+<variable name="command" select="@number"/>
+<if test='$target=&quot;lcm&quot; or $supported_commands/group[@number=$group]/command[@number=$command]'>
+#define <call-template name="commandsupported"/>
+</if>
+</template>
+
</stylesheet>