CORDET Framework - C2 Implementation
CrPsLptUpAbortRep.c
Go to the documentation of this file.
1 
24 #include "CrPsLptUpAbortRep.h"
25 
26 /* CrFramework includes */
27 #include "OutCmp/CrFwOutCmp.h"
28 #include "CrFwCmpData.h"
29 #include "Pckt/CrFwPckt.h"
30 
31 /* FwProfile includes */
32 #include "FwPrConfig.h"
33 #include "FwPrCore.h"
34 #include "FwSmConfig.h"
35 
36 #include <CrPsUtilitiesServLpt.h>
37 #include <DataPool/CrPsDpServLpt.h>
39 
40 
47 void CrPsLptUpAbortRepUpdateAction(FwSmDesc_t smDesc)
48 {
49  CrFwCmpData_t *cmpData;
50  CrFwOutCmpData_t *cmpSpecificData;
51  CrFwPckt_t pckt;
52  uint32_t LptBufferId = UpTransferLptBufferId;
53  CrPsTid_t Tid;
54  CrPsFailCode_t FailReason;
55 
56  cmpData = (CrFwCmpData_t *) FwSmGetData(smDesc);
57  cmpSpecificData = (CrFwOutCmpData_t *) cmpData->cmpSpecificData;
58  pckt = cmpSpecificData->pckt;
59 
60  /* The large message transaction identifier is taken from parameter largeMsgTransId and ... */
61  Tid = getDplargeMsgTransIdItem(LptBufferId);
62  setLptUpAbortRepTid(pckt, Tid);
63 
64  /* ... the failure reason is read from variable lptFailReason. */
65  FailReason = getDplptFailCodeItem(LptBufferId);
66  setLptUpAbortRepFailReason(pckt, FailReason);
67 
68  return;
69 }
Type for the Framework Component Data (FCD).
Interface for accessing data pool items.
Type for the data describing an OutComponent.
CrFwPckt_t pckt
Packet to which the out-going command or report is serialized.
Interface for creating and accessing a report or command packet.
Interface through which applications can initialize and execute framework PUS extension components...
void CrPsLptUpAbortRepUpdateAction(FwSmDesc_t smDesc)
Update action of TM(13,16) LptUpAbortRep.
static CrPsFailCode_t getDplptFailCodeItem(int i)
Gets the value of the i-th element in the datapool array lptFailCode.
static CrPsTid_t getDplargeMsgTransIdItem(int i)
Gets the value of the i-th element in the datapool array largeMsgTransId.
Implementation of TM(13,16) LptUpAbortRep.
CrPsTid_t Tid
CrPsLptUpCmdStart function definitions.
void * cmpSpecificData
Derived data which are specific to each type of framework component.
Interface for accessing fields in packets of service "ServLPT".
uint16_t CrPsFailCode_t
Type used for the Failure Code of a packet.
char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
Definition: CrFwConstants.h:36
static void setLptUpAbortRepTid(void *p, CrPsTid_t Tid)
Set "Tid" in "LptUpAbortRep" packet.
Definition of the OutComponent Component of the framework.
static void setLptUpAbortRepFailReason(void *p, CrPsFailReason_t FailReason)
Set "FailReason" in "LptUpAbortRep" packet.
P&P Software GmbH, Copyright 2012-2013, All Rights Reserved