summaryrefslogtreecommitdiff
path: root/lcmodule/customer_config
diff options
context:
space:
mode:
Diffstat (limited to 'lcmodule/customer_config')
-rw-r--r--lcmodule/customer_config/custom_command_marshal.xsl55
-rw-r--r--lcmodule/customer_config/custom_commands.xml36
-rw-r--r--lcmodule/customer_config/custom_commands_impl_h.xsl6
3 files changed, 49 insertions, 48 deletions
diff --git a/lcmodule/customer_config/custom_command_marshal.xsl b/lcmodule/customer_config/custom_command_marshal.xsl
index 4ee1838..6739367 100644
--- a/lcmodule/customer_config/custom_command_marshal.xsl
+++ b/lcmodule/customer_config/custom_command_marshal.xsl
@@ -18,9 +18,9 @@
</template>
<template match="group/documentation" mode="unmarshal">
- /*
- * <value-of select="normalize-space(.)"/>
- */
+ /*
+ * <value-of select="normalize-space(.)"/>
+ */
</template>
<template name="unmarshal">
@@ -75,7 +75,7 @@
#include "r_command_protocol.h"
-#define CUSTOMCOMMAND(response, group, id) (((response) &lt;&lt; 31) | ((group) &lt;&lt; 16) | (id))
+#define CUSTOMCOMMAND(response, group, id) (((response) &lt;&lt; 31) | ((group) &lt;&lt; 16) | (id))
#define CUSTOMCOMMANDDATA(TypeP,ApplicationP,CommandP,SessionP,SizeP) \
memset((uint8*)&amp;CmdData, 0x00, sizeof(CommandData_t)); \
CmdData.Type = TypeP; \
@@ -111,38 +111,39 @@
return E_ALLOCATE_FAILED; \
}\
}
-
+
//static uint16 Session;
-ErrorCode_e Do_CustomCEH_Call(CommandData_t * CmdData_p)
+ErrorCode_e Do_CustomCEH_Call(CommandData_t *CmdData_p)
{
- ErrorCode_e Status = E_GENERAL_FATAL_ERROR;
-// uint32 PL_GRSize = 0;
-// ErrorCode_e ResponseStatus = E_SUCCESS;
- boolean response = FALSE;
+ ErrorCode_e Status = E_GENERAL_FATAL_ERROR;
+ // uint32 PL_GRSize = 0;
+ // ErrorCode_e ResponseStatus = E_SUCCESS;
+ boolean response = FALSE;
- void *Data_p = CmdData_p-&gt;Payload.Data_p;
- (void)(Data_p); //XVSZOAN Temporary solution!
-
- if (CmdData_p-&gt;Type == GENERAL_RESPONSE_PACKAGE)
- {
- response = TRUE;
-// PL_GRSize = CmdData_p-&gt;Payload.Size;
-// ResponseStatus = (ErrorCode_e)get_uint16(&amp;Data_p);
- }
+ void *Data_p = CmdData_p-&gt;Payload.Data_p;
+ (void)(Data_p); //XVSZOAN Temporary solution!
-// Session = CmdData_p-&gt;SessionNr;
+ if (CmdData_p-&gt;Type == GENERAL_RESPONSE_PACKAGE) {
- switch(CUSTOMCOMMAND(response, CmdData_p-&gt;ApplicationNr, CmdData_p-&gt;CommandNr))
- {<apply-templates select="group" mode="unmarshal"/>
- default:
- break;
- }
+ response = TRUE;
+ // PL_GRSize = CmdData_p-&gt;Payload.Size;
+ // ResponseStatus = (ErrorCode_e)get_uint16(&amp;Data_p);
+ }
+
+ // Session = CmdData_p-&gt;SessionNr;
+
+ switch (CUSTOMCOMMAND(response, CmdData_p-&gt;ApplicationNr, CmdData_p-&gt;CommandNr)) {
+
+<apply-templates select="group" mode="unmarshal"/>
+ default:
+ break;
+ }
- return Status;
+ return Status;
}
- <apply-templates select="group" mode="marshal"/>
+<apply-templates select="group" mode="marshal"/>
</template>
diff --git a/lcmodule/customer_config/custom_commands.xml b/lcmodule/customer_config/custom_commands.xml
index 39169d9..25b739c 100644
--- a/lcmodule/customer_config/custom_commands.xml
+++ b/lcmodule/customer_config/custom_commands.xml
@@ -20,52 +20,52 @@
</group>
<group number="02" name="Flash application">
- <documentation>
- Flash command group.
- </documentation>
+ <documentation>
+ Flash command group.
+ </documentation>
<interface type="loader" name="Flash" />
</group>
<group number="03" name="GDFS application ">
- <documentation>
- GDFS command group.
- </documentation>
+ <documentation>
+ GDFS command group.
+ </documentation>
<interface type="loader" name="GDFS" />
</group>
<group number ="04" name ="FILE Sys application ">
- <documentation>
- File System Unit
- </documentation>
+ <documentation>
+ File System Unit
+ </documentation>
<interface type="loader" name="File_Management" />
</group>
<group number ="05" name ="Signature application ">
- <documentation>
- Signature application
- </documentation>
+ <documentation>
+ Signature application
+ </documentation>
<interface type="loader" name="SIGNATURE" />
</group>
<group number ="06" name ="Internal Security application ">
- <documentation>
- Internal Security application
- </documentation>
+ <documentation>
+ Internal Security application
+ </documentation>
<interface type="loader" name="INTERNAL_SECURITY" />
</group>
<group number ="07" name ="Reset application ">
- <documentation>
- Reset application
- </documentation>
+ <documentation>
+ Reset application
+ </documentation>
<interface type="loader" name="RESET" />
</group>
diff --git a/lcmodule/customer_config/custom_commands_impl_h.xsl b/lcmodule/customer_config/custom_commands_impl_h.xsl
index a62a434..7edd078 100644
--- a/lcmodule/customer_config/custom_commands_impl_h.xsl
+++ b/lcmodule/customer_config/custom_commands_impl_h.xsl
@@ -22,9 +22,9 @@
</template>
<template match="group/documentation">
-/*
- * <value-of select="normalize-space(.)"/>
- */
+ /*
+ * <value-of select="normalize-space(.)"/>
+ */
</template>
<template match="group/command">