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::FileDownlink Class Reference

#include <Svc/FileDownlink/FileDownlink.hpp>

Inheritance diagram for Svc::FileDownlink:
Svc::FileDownlinkComponentBase Fw::ActiveComponentBase Fw::QueuedComponentBase Fw::PassiveComponentBase Fw::ObjBase

Public Member Functions

 Mode (void)
 Constructor. More...
 
void set (const Type value)
 Set the Mode value. More...
 
Type get (void)
 Get the Mode value. More...
 
 FileDownlink (const char *const compName, const U16 downlinkPacketSize)
 
void init (const NATIVE_INT_TYPE queueDepth, const NATIVE_INT_TYPE instance)
 
 ~FileDownlink (void)
 
void FileDownlink_Cancel_cmdHandler (const FwOpcodeType opCode, const U32 cmdSeq)
 
void pingIn_handler (const NATIVE_INT_TYPE portNum, U32 key)
 
Os::File::Status sendDataPackets (void)
 
void sendCancelPacket (void)
 
void sendEndPacket (void)
 
void sendStartPacket (void)
 
void sendFilePacket (const Fw::FilePacket &filePacket)
 
- 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 FileDownlink_SendFile_cmdHandler( const FwOpcodeType opCode
 The opcode. More...
 
PRIVATE const U32 cmdSeq
 The command sequence number. More...
 
PRIVATE const U32 const Fw::CmdStringArgsourceFileName
 The name of the on-board file to send. More...
 
PRIVATE const U32 const Fw::CmdStringArg const Fw::CmdStringArgdestFileName
 < The name of the destination file on the ground More...
 
PRIVATE __pad2__: Os::File::Status sendDataPacket(const U32 byteOffset)
 
PRIVATE __pad3__: const U32 downlinkPacketSize
 
Mode mode
 The mode. More...
 
File file
 The file. More...
 
FilesSent filesSent
 Files sent. More...
 
PacketsSent packetsSent
 Packets sent. More...
 
Warnings warnings
 Warnings. More...
 
U32 sequenceIndex
 The current sequence index. 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 23 of file FileDownlink.hpp.

Constructor & Destructor Documentation

◆ FileDownlink()

Svc::FileDownlink::FileDownlink ( const char *const  compName,
const U16  downlinkPacketSize 
)

Construct object FileDownlink

Parameters
compNameThe component name
downlinkPacketSizeThe size of a downlink packet

Definition at line 23 of file FileDownlink.cpp.

◆ ~FileDownlink()

Svc::FileDownlink::~FileDownlink ( void  )

Destroy object FileDownlink

Definition at line 47 of file FileDownlink.cpp.

Member Function Documentation

◆ FileDownlink_Cancel_cmdHandler()

void Svc::FileDownlink::FileDownlink_Cancel_cmdHandler ( const FwOpcodeType  opCode,
const U32  cmdSeq 
)
virtual

Implementation for FileDownlink_Cancel command handler

Parameters
opCodeThe opcode
cmdSeqThe command sequence number

Implements Svc::FileDownlinkComponentBase.

Definition at line 124 of file FileDownlink.cpp.

◆ get()

Type Svc::FileDownlink::get ( void  )
inline

Get the Mode value.

Definition at line 56 of file FileDownlink.hpp.

◆ init()

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

Initialize object FileDownlink

Parameters
queueDepthThe queue depth
instanceThe instance number

Definition at line 38 of file FileDownlink.cpp.

◆ Mode()

Svc::FileDownlink::Mode ( void  )
inline

Constructor.

Definition at line 44 of file FileDownlink.hpp.

◆ pingIn_handler()

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

Handler implementation for pingIn

Parameters
portNumThe port number
keyValue to return to pinger

Definition at line 250 of file FileDownlink.cpp.

◆ sendCancelPacket()

void Svc::FileDownlink::sendCancelPacket ( void  )

Definition at line 191 of file FileDownlink.cpp.

◆ sendDataPackets()

Os::File::Status Svc::FileDownlink::sendDataPackets ( void  )

Definition at line 172 of file FileDownlink.cpp.

◆ sendEndPacket()

void Svc::FileDownlink::sendEndPacket ( void  )

Definition at line 202 of file FileDownlink.cpp.

◆ sendFilePacket()

void Svc::FileDownlink::sendFilePacket ( const Fw::FilePacket filePacket)

Definition at line 237 of file FileDownlink.cpp.

◆ sendStartPacket()

void Svc::FileDownlink::sendStartPacket ( void  )

Definition at line 223 of file FileDownlink.cpp.

◆ set()

void Svc::FileDownlink::set ( const Type  value)
inline

Set the Mode value.

Definition at line 49 of file FileDownlink.hpp.

Member Data Documentation

◆ __pad1__

PRIVATE Svc::FileDownlink::__pad1__

The opcode.

Definition at line 238 of file FileDownlink.hpp.

◆ __pad2__

PRIVATE Svc::FileDownlink::__pad2__

Definition at line 268 of file FileDownlink.hpp.

◆ __pad3__

PRIVATE Svc::FileDownlink::__pad3__

Definition at line 286 of file FileDownlink.hpp.

◆ cmdSeq

PRIVATE const U32 Svc::FileDownlink::cmdSeq

The command sequence number.

Definition at line 248 of file FileDownlink.hpp.

◆ destFileName

PRIVATE const U32 const Fw::CmdStringArg const Fw::CmdStringArg& Svc::FileDownlink::destFileName

< The name of the destination file on the ground

Definition at line 250 of file FileDownlink.hpp.

◆ file

File Svc::FileDownlink::file

The file.

Definition at line 299 of file FileDownlink.hpp.

◆ filesSent

FilesSent Svc::FileDownlink::filesSent

Files sent.

Definition at line 302 of file FileDownlink.hpp.

◆ mode

Mode Svc::FileDownlink::mode

The mode.

Definition at line 296 of file FileDownlink.hpp.

◆ packetsSent

PacketsSent Svc::FileDownlink::packetsSent

Packets sent.

Definition at line 305 of file FileDownlink.hpp.

◆ sequenceIndex

U32 Svc::FileDownlink::sequenceIndex

The current sequence index.

Definition at line 311 of file FileDownlink.hpp.

◆ sourceFileName

PRIVATE const U32 const Fw::CmdStringArg& Svc::FileDownlink::sourceFileName

The name of the on-board file to send.

Definition at line 249 of file FileDownlink.hpp.

◆ warnings

Warnings Svc::FileDownlink::warnings

Warnings.

Definition at line 308 of file FileDownlink.hpp.


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