31 #include <CrFwCmpData.h> 34 #include "FwSmConstants.h" 35 #include "FwSmConfig.h" 37 #include "FwPrDCreate.h" 38 #include "FwPrConfig.h" 40 #include "FwPrConstants.h" 81 uint32_t dataSize, pos;
82 uint32_t *lptMemStartAddr;
83 CrPsNumberU4_t PartSeqNmb;
94 pckt = cmpSpecificData->
pckt;
97 LptBufferId = Tid % LPT_N_BUF;
108 pos =
sizeof(TcHeader_t)+
sizeof(CrPsTid_t) +
sizeof(CrPsNumberU4_t);
109 memcpy((uint8_t *)lptMemStartAddr + (PartSeqNmb-1)*partSize, &((uint8_t*)pckt)[pos], dataSize);
116 coarse = (ts.t[0] << 24) | (ts.t[1] << 16) | (ts.t[2] << 8) | ts.t[3];
117 fine = (ts.t[4] << 7) | (ts.t[5] & 0xfe);
Type for the Framework Component Data (FCD).
CrFwOutcome_t outcome
The outcome of an action or check executed by a state machine or by one of its procedures.
FwPrDesc_t getPrDescLptUpCmdStart()
Getter for LptUpCmdStart procedure descriptor.
static CrPsNumberU4_t getLptUpFirstCmdPartSeqNmb(void *p)
Get "PartSeqNmb" from "LptUpFirstCmd" packet.
#define CR_FW_MAX_PCKT_LENGTH
The maximum size in number of bytes of a packet.
#define CRFW_UNUSED(x)
A macro that can be used to specify that a function parameter is not used.
#define CRC_LENGTH
The length of CRC.
Interface for accessing data pool items.
Header file to define all user-configurable constants and types for the IASW Application.
Definition of the OutFactory component.
CrFwPckt_t pckt
Packet holding the InCommand.
static void setDplptSizeItem(int i, CrPsSize_t lptSize)
Sets the value of the i-th element in the datapool array lptSize.
Header file to define all service and packet identifiers.
static void setDplptTimeItem(int i, CrFwTimeStamp_t lptTime)
Sets the value of the i-th element in the datapool array lptTime.
Interface for creating and accessing a report or command packet.
Interface through which applications can initialize and execute framework PUS extension components...
Create one instance of the CrPsLpt state machine.
void CrPsLptUpInterCmdTerminationAction(FwSmDesc_t smDesc)
Termination action of TC(13,10) LptUpInterCmd.
CrFwPcktLength_t CrFwPcktGetLength(CrFwPckt_t pckt)
Return the length (in number of bytes) of a packet.
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".
void CrPsLptUpInterCmdProgressAction(FwSmDesc_t smDesc)
Progress action of TC(13,10) LptUpInterCmd.
static CrPsSize_t getDplptSizeItem(int i)
Gets the value of the i-th element in the datapool array lptSize.
uint32_t * getLptMemStartAddr(uint32_t LptBuffer)
Getter function for the Address of the Data.
char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
Definition of the OutComponent Component of the framework.
auxiliary Interface for accessing fields in packets of service "ServLPT".
void CrPsLptUpInterCmdStartAction(FwSmDesc_t smDesc)
Start action of TC(13,10) LptUpInterCmd.
Implementation of TC(13,10) LptUpInterCmd.
Type for the data describing an InCommand.
static void setDppartSeqNmbItem(int i, CrFwCounterU4_t partSeqNmb)
Sets the value of the i-th element in the datapool array partSeqNmb.
static CrPsTid_t getLptUpInterCmdTid(void *p)
Get "Tid" from "LptUpInterCmd" packet.
Definition of the OutLoader component.
CrFwTimeStamp_t CrFwGetCurrentTimeServer()
Provide the current time.
unsigned int CrFwTimeStamp_t
Type used for the time stamp of a command or report.