28 #include "FwSmConstants.h" 29 #include "FwSmConfig.h" 31 #include "FwPrConfig.h" 33 #include "FwPrConstants.h" 49 FwSmDesc_t inStream5, outStream5;
50 CrFwPckt_t pcktSend, pcktRec, pcktSend1, pcktRec1, pcktSend2, pcktRec2;
54 if (inStream5 == NULL)
61 if (outStream5 == NULL)
63 FwSmStart(outStream5);
116 if (pcktRec[90] != 99) {
142 if (pcktRec1[90] != 11) {
148 if (pcktRec2[90] != 22) {
189 FwSmDesc_t inStream6, inStream7, outStream6, outStream7;
194 if (inStream6 == NULL)
196 FwSmStart(inStream6);
201 if (inStream7 == NULL)
203 FwSmStart(inStream7);
208 if (outStream6 == NULL)
210 FwSmStart(outStream6);
215 if (outStream7 == NULL)
217 FwSmStart(outStream7);
273 if (pcktRec[90] != 99)
290 if (pcktRec[90] != 11)
313 FwSmDesc_t inStream6, inStream7, outStream6, outStream7;
321 if (inStream6 == NULL)
323 FwSmStart(inStream6);
328 if (inStream7 == NULL)
330 FwSmStart(inStream7);
335 if (outStream6 == NULL)
337 FwSmStart(outStream6);
342 if (outStream7 == NULL)
344 FwSmStart(outStream7);
413 if (pcktRec[90] != 99)
417 if (pcktRec[90] != 98)
421 if (pcktRec[90] != 97)
451 if (pcktRec[90] != 10)
455 if (pcktRec[90] != 11)
459 if (pcktRec[90] != 12)
486 FwSmDesc_t inStream6, inStream7, outStream6, outStream7;
487 CrFwPckt_t sPckt1, sPckt2, sPckt3, cPckt1, cPckt2, cPckt3, pcktRec;
494 if (inStream6 == NULL)
496 FwSmStart(inStream6);
501 if (inStream7 == NULL)
503 FwSmStart(inStream7);
508 if (outStream6 == NULL)
510 FwSmStart(outStream6);
515 if (outStream7 == NULL)
517 FwSmStart(outStream7);
605 if (pcktRec[90] != 99)
609 if (pcktRec[90] != 98)
613 if (pcktRec[90] != 97)
620 if (pcktRec[90] != 10)
624 if (pcktRec[90] != 11)
628 if (pcktRec[90] != 12)
Interface through which framework components access the current time.
Declaration of the test cases for the InStream Component (see CrFwInStream.h).
void CrFwOutStreamSend(FwSmDesc_t smDesc, CrFwPckt_t pckt)
Send a packet to the OutStream.
void CrFwPcktSetSrc(CrFwPckt_t pckt, CrFwDestSrc_t src)
Set the source of the command or report encapsulated in a packet.
void CrFwPcktSetGroup(CrFwPckt_t pckt, CrFwGroup_t group)
Set the group of the command/report encapsulated in a packet.
void CrFwCmpInit(FwSmDesc_t smDesc)
Initialize a framework component.
Definition of the Framework Component Data (FCD) Type.
CrFwDestSrc_t CrFwInStreamGetSrc(FwSmDesc_t smDesc)
Get the currently defined packet source of an InStream.
CrFwBool_t CrFwSocketTestCase2()
Test the initialization and configuration of the client and server sockets of CrFwClientSocket.h and CrFwServerSocket.h.
Interface for a server socket to be used by InStreams and OutStreams.
CrFwBool_t CrFwCmpIsInConfigured(FwSmDesc_t smDesc)
Return true if the argument component is in state CONFIGURED.
#define CR_FW_HOST_APP_ID
The identifier of the host application.
unsigned char * CrFwPckt_t
Type for packets (see CrFwPckt.h).
CrFwBool_t CrFwCmpIsInCreated(FwSmDesc_t smDesc)
Return true if the argument component is in state CREATED.
CrFwPckt_t CrFwPcktMake(CrFwPcktLength_t pcktLength)
Make function for command or report packets.
Interface for creating and accessing a report or command packet.
Definition of the InStream component.
Interface for a client socket to be used by InStreams and OutStreams.
int CrFwBool_t
Type used for boolean values (1 represent "true" and 0 represents "false").
void CrFwServerSocketPoll()
Poll the server socket to check whether a new packet has arrived.
void CrFwClientSocketPoll()
Poll the client socket to check whether a new packet has arrived.
void CrFwPcktRelease(CrFwPckt_t pckt)
Release function for command or report packets.
void CrFwRepErrStubReset()
Reset the error reporting interface.
CrFwBool_t CrFwCmpIsInInitialized(FwSmDesc_t smDesc)
Return true if the argument component is in state INITIALIZED.
CrFwBool_t CrFwSocketTestCase3()
Test the sending and receiving of multiple packets through client and server sockets of CrFwClientSoc...
void CrFwInStreamSocketSetPort(unsigned short n)
Set the port number for the socket.
CrFwBool_t CrFwSocketTestCase1()
Test the initialization and configuration of the socket-based InStream and OutStream.
Interface for reporting an error detected by a framework component.
Definition of the utility functions for the CORDET Framework.
void CrFwClientSocketSetHost(char *name)
Set the host name of the server.
Interface for the Socket-Based InStream.
void CrFwCmpReset(FwSmDesc_t smDesc)
Reset a framework component.
void CrFwInStreamSocketPoll(FwSmDesc_t inStream)
Poll the socket to check whether a new packet has arrived.
Interface for the InStream stub.
Definition of Base Component.
The CORDET Framework defines an interface for generating error reports (see CrFwRepErr.h).
CrFwCounterU2_t CrFwPcktGetNOfAllocated()
Return the number of packets which are currently allocated.
void CrFwInStreamSocketSetHost(char *name)
Set the host name of the server.
FwSmDesc_t CrFwOutStreamMake(CrFwInstanceId_t i)
Factory function to retrieve the i-th OutStream State Machine instance.
CrFwBool_t CrFwSocketTestCase4()
Test the interleaved sending and receiving of multiple packets through client and server sockets of C...
CrFwCounterU2_t CrFwRepErrStubGetPos()
Return the position in the error report array at which the next error report will be written...
FwSmDesc_t CrFwInStreamMake(CrFwInstanceId_t i)
Factory function to retrieve the i-th InStream State Machine instance.
void CrFwClientSocketSetPort(unsigned short n)
Set the port number for the socket.
CrFwPckt_t CrFwInStreamGetPckt(FwSmDesc_t smDesc)
Retrieve a packet from the InStream.
void CrFwServerSocketSetPort(unsigned short n)
Set the port number for the socket.
User-modifiable parameters for the InStream components (see CrFwInStream.h).
void CrFwCmpShutdown(FwSmDesc_t smDesc)
Shutdown a framework component.
void CrFwOutStreamSocketSetPort(unsigned short n)
Set the port number for the socket.
No application errors have been detected.
Interface for the Socket-Based OutStream.
CrFwAppErrCode_t CrFwGetAppErrCode()
Return the value of the application error code.