diff options
Diffstat (limited to 'lcmodule/customer_config/custom_command_marshal.xsl')
-rw-r--r-- | lcmodule/customer_config/custom_command_marshal.xsl | 55 |
1 files changed, 28 insertions, 27 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) << 31) | ((group) << 16) | (id)) +#define CUSTOMCOMMAND(response, group, id) (((response) << 31) | ((group) << 16) | (id)) #define CUSTOMCOMMANDDATA(TypeP,ApplicationP,CommandP,SessionP,SizeP) \ memset((uint8*)&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->Payload.Data_p; - (void)(Data_p); //XVSZOAN Temporary solution! - - if (CmdData_p->Type == GENERAL_RESPONSE_PACKAGE) - { - response = TRUE; -// PL_GRSize = CmdData_p->Payload.Size; -// ResponseStatus = (ErrorCode_e)get_uint16(&Data_p); - } + void *Data_p = CmdData_p->Payload.Data_p; + (void)(Data_p); //XVSZOAN Temporary solution! -// Session = CmdData_p->SessionNr; + if (CmdData_p->Type == GENERAL_RESPONSE_PACKAGE) { - switch(CUSTOMCOMMAND(response, CmdData_p->ApplicationNr, CmdData_p->CommandNr)) - {<apply-templates select="group" mode="unmarshal"/> - default: - break; - } + response = TRUE; + // PL_GRSize = CmdData_p->Payload.Size; + // ResponseStatus = (ErrorCode_e)get_uint16(&Data_p); + } + + // Session = CmdData_p->SessionNr; + + switch (CUSTOMCOMMAND(response, CmdData_p->ApplicationNr, CmdData_p->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> |