F´ Flight Software - C/C++ Documentation  NASA-v1.5.0
A framework for building embedded system applications to NASA flight quality standards.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Svc::FileUplink Class Reference

#include <Svc/FileUplink/FileUplink.hpp>

Inheritance diagram for Svc::FileUplink:
Svc::FileUplinkComponentBase Fw::ActiveComponentBase Fw::QueuedComponentBase Fw::PassiveComponentBase Fw::ObjBase

Public Member Functions

 FileUplink (const char *const name)
 
void init (const NATIVE_INT_TYPE queueDepth, const NATIVE_INT_TYPE instance)
 
 ~FileUplink (void)
 
void pingIn_handler (const NATIVE_INT_TYPE portNum, U32 key)
 
void handleDataPacket (const Fw::FilePacket::DataPacket &dataPacket)
 Handle a data packet. More...
 
void handleEndPacket (const Fw::FilePacket::EndPacket &endPacket)
 Handle an end packet. More...
 
void handleCancelPacket (void)
 Handle a cancel packet. More...
 
void checkSequenceIndex (const U32 sequenceIndex)
 Check sequence index. More...
 
void compareChecksums (const Fw::FilePacket::EndPacket &endPacket)
 Compare checksums. More...
 
void goToStartMode (void)
 Go to START mode. More...
 
void goToDataMode (void)
 Go to DATA mode. More...
 
- Public Member Functions inherited from Fw::ActiveComponentBase
void start (NATIVE_INT_TYPE identifier, NATIVE_INT_TYPE priority, NATIVE_INT_TYPE stackSize, NATIVE_INT_TYPE cpuAffinity=-1)
 called by instantiator when task is to be started More...
 
void exit (void)
 exit task in active component More...
 
Os::Task::TaskStatus join (void **value_ptr)
 provide return value of thread if value_ptr is not NULL More...
 
virtual ~ActiveComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 initialization code More...
 
virtual void preamble (void)
 A function that will be called before the event loop is entered. More...
 
virtual void loop (void)
 The function that will loop dispatching messages. More...
 
virtual void finalizer (void)
 A function that will be called after exiting the loop. More...
 
- Public Member Functions inherited from Fw::QueuedComponentBase
virtual ~QueuedComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 initialization function More...
 
Os::Queue::QueueStatus createQueue (NATIVE_INT_TYPE depth, NATIVE_INT_TYPE msgSize)
 
virtual MsgDispatchStatus doDispatch (void)=0
 method to dispatch a single message in the queue. More...
 
NATIVE_INT_TYPE getNumMsgsDropped (void)
 return number of messages dropped More...
 
void incNumMsgDropped (void)
 increment the number of messages dropped More...
 
- Public Member Functions inherited from Fw::PassiveComponentBase
void setIdBase (const U32)
 Set the ID base. More...
 
U32 getIdBase (void) const
 
virtual ~PassiveComponentBase ()
 Destructor. More...
 
void init (NATIVE_INT_TYPE instance)
 Initialization function. More...
 
NATIVE_INT_TYPE getInstance (void) const
 

Public Attributes

PRIVATE __pad1__: void bufferSendIn_handler( const NATIVE_INT_TYPE portNum
 The port number. More...
 
PRIVATE Fw::Bufferbuffer
 
PRIVATE __pad2__: void handleStartPacket(const Fw::FilePacket::StartPacket& startPacket)
 
PRIVATE __pad3__: ReceiveMode receiveMode
 
U32 lastSequenceIndex
 The sequence index of the last packet received. More...
 
File file
 The file being assembled. More...
 
FilesReceived filesReceived
 The total number of files received. More...
 
PacketsReceived packetsReceived
 The total number of cancel packets. More...
 
Warnings warnings
 The total number of warnings. More...
 
- Public Attributes inherited from Fw::ActiveComponentBase
PROTECTED __pad0__: ActiveComponentBase(const char* name)
 Constructor. More...
 
Os::Task m_task
 task object for active component More...
 
PRIVATE __pad1__: static void s_baseTask(void*)
 function provided to task class for new thread. More...
 
- Public Attributes inherited from Fw::QueuedComponentBase
PROTECTED __pad0__: QueuedComponentBase(const char* name)
 Constructor. More...
 
Os::Queue m_queue
 queue object for active component More...
 
PRIVATE __pad1__: NATIVE_INT_TYPE m_msgsDropped
 number of messages dropped from full queue More...
 
- Public Attributes inherited from Fw::PassiveComponentBase
PROTECTED __pad0__: PassiveComponentBase(const char* name)
 Named constructor. More...
 
PRIVATE __pad1__: U32 m_idBase
 ID base for opcodes etc. More...
 
NATIVE_INT_TYPE m_instance
 instance of component object More...
 

Additional Inherited Members

- Public Types inherited from Fw::ActiveComponentBase
enum  { ACTIVE_COMPONENT_EXIT }
 
- Public Types inherited from Fw::QueuedComponentBase
enum  MsgDispatchStatus { MSG_DISPATCH_OK, MSG_DISPATCH_EMPTY, MSG_DISPATCH_ERROR, MSG_DISPATCH_EXIT }
 
- Static Public Member Functions inherited from Fw::ActiveComponentBase
static void s_baseBareTask (void *)
 function provided to task class for new thread. More...
 
- Protected Member Functions inherited from Fw::ObjBase
 ObjBase (const char *name)
 ObjBase constructor. More...
 
virtual ~ObjBase ()
 Destructor. More...
 
void init (void)
 Object initializer. More...
 

Detailed Description

Definition at line 22 of file FileUplink.hpp.

Constructor & Destructor Documentation

◆ FileUplink()

Svc::FileUplink::FileUplink ( const char *const  name)

Construct object FileUplink

Parameters
nameThe component name

Definition at line 23 of file FileUplink.cpp.

◆ ~FileUplink()

Svc::FileUplink::~FileUplink ( void  )

Destroy object FileUplink

Definition at line 44 of file FileUplink.cpp.

Member Function Documentation

◆ checkSequenceIndex()

void Svc::FileUplink::checkSequenceIndex ( const U32  sequenceIndex)

Check sequence index.

Definition at line 171 of file FileUplink.cpp.

◆ compareChecksums()

void Svc::FileUplink::compareChecksums ( const Fw::FilePacket::EndPacket endPacket)

Compare checksums.

Definition at line 183 of file FileUplink.cpp.

◆ goToDataMode()

void Svc::FileUplink::goToDataMode ( void  )

Go to DATA mode.

Definition at line 205 of file FileUplink.cpp.

◆ goToStartMode()

void Svc::FileUplink::goToStartMode ( void  )

Go to START mode.

Definition at line 197 of file FileUplink.cpp.

◆ handleCancelPacket()

void Svc::FileUplink::handleCancelPacket ( void  )

Handle a cancel packet.

Definition at line 163 of file FileUplink.cpp.

◆ handleDataPacket()

void Svc::FileUplink::handleDataPacket ( const Fw::FilePacket::DataPacket dataPacket)

Handle a data packet.

Definition at line 121 of file FileUplink.cpp.

◆ handleEndPacket()

void Svc::FileUplink::handleEndPacket ( const Fw::FilePacket::EndPacket endPacket)

Handle an end packet.

Definition at line 147 of file FileUplink.cpp.

◆ init()

void Svc::FileUplink::init ( const NATIVE_INT_TYPE  queueDepth,
const NATIVE_INT_TYPE  instance 
)

Initialize object FileUplink

Parameters
queueDepthThe queue depth
instanceThe instance number

Definition at line 35 of file FileUplink.cpp.

◆ pingIn_handler()

void Svc::FileUplink::pingIn_handler ( const NATIVE_INT_TYPE  portNum,
U32  key 
)
virtual

Handler implementation for pingIn

Parameters
portNumThe port number
keyValue to return to pinger

Implements Svc::FileUplinkComponentBase.

Definition at line 84 of file FileUplink.cpp.

Member Data Documentation

◆ __pad1__

PRIVATE Svc::FileUplink::__pad1__

The port number.

Definition at line 211 of file FileUplink.hpp.

◆ __pad2__

PRIVATE Svc::FileUplink::__pad2__

Definition at line 232 of file FileUplink.hpp.

◆ __pad3__

PRIVATE Svc::FileUplink::__pad3__

Definition at line 262 of file FileUplink.hpp.

◆ buffer

PRIVATE Fw::Buffer& Svc::FileUplink::buffer

Definition at line 221 of file FileUplink.hpp.

◆ file

File Svc::FileUplink::file

The file being assembled.

Definition at line 275 of file FileUplink.hpp.

◆ filesReceived

FilesReceived Svc::FileUplink::filesReceived

The total number of files received.

Definition at line 278 of file FileUplink.hpp.

◆ lastSequenceIndex

U32 Svc::FileUplink::lastSequenceIndex

The sequence index of the last packet received.

Definition at line 272 of file FileUplink.hpp.

◆ packetsReceived

PacketsReceived Svc::FileUplink::packetsReceived

The total number of cancel packets.

Definition at line 281 of file FileUplink.hpp.

◆ warnings

Warnings Svc::FileUplink::warnings

The total number of warnings.

Definition at line 284 of file FileUplink.hpp.


The documentation for this class was generated from the following files: