GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LFS / V1-12-3 > lfs_lcp / mv2304


Interface   Data Structures   File List   Data Fields   Globals  

LFS_lcp_private.h File Reference

Private definitions for the LFS LCP constituents. More...

#include <PBS/RW.ih>
#include <PBS/SEM.h>
#include <PBS/WUT.h>
#include <IMM/FPM_pubdefs.h>
#include <ITC/ITC_pubdefs.h>
#include <FILE_DB/FILE_DB_schema.h>

Classes

struct  _LFS_Control
 LFS LCP control block. More...

Defines

#define LFS_APID_CMD   0x648
#define LFS_APID_CRIT   0x649
#define LFS_FILE_DUMP_PARAM_SIZE   14

Typedefs

typedef enum _LFS_ControlState LFS_ControlState
 Typedef for enum _LFS_ControlState.
typedef struct _LFS_Control LFS_Control
 Typedef for structure _LFS_Control.

Enumerations

enum  _LFS_ControlState {
  LFS_CTL_UNINITIALIZED = 0,
  LFS_CTL_INITIALIZING = 1,
  LFS_CTL_DEINITIALIZING = 2,
  LFS_CTL_INITIALIZED = 3,
  LFS_CTL_STARTING = 4,
  LFS_CTL_RUNNING = 5,
  LFS_CTL_STOPPING = 6,
  LFS_CTL_BROKEN = 7
}
 Enumeration of LFS LCP control states. More...

Functions

unsigned int LFS_bootDumpFile (LFS_Control *ctl, unsigned int cpu, unsigned int fileNum, unsigned int xactId)
 Dump a TFFS boot partition file to the CTDB interface.
unsigned int LFS_bootDumpFileSSR (LFS_Control *ctl, unsigned int cpu, unsigned int fileNum, unsigned int xactId)
 Dump a TFFS boot partition file to the SSR interface.
unsigned int LFS_bootDumpDir (LFS_Control *ctl, unsigned int cpu, unsigned int xactId)
 Dump a TFFS boot directory.
void LFS_freeTelem (ITC_QueueItem *qitem, unsigned int status, LFS_Control *ctl, void *prm1, void *prm2)
 Free telemetry packet memory.
void LFS_freeTelemSSR (ITC_QueueItem *qitem, unsigned int status, LFS_Control *ctl, void *prm1, void *prm2)
 Free telemetry packet memory.
unsigned short LFS_apidMap (unsigned short itcNode)
 Translate an ITC node ID to a SSR science data file dump CCSDS APID.


Detailed Description

Private definitions for the LFS LCP constituents.

Author:
D.L. Wood

Define Documentation

#define LFS_APID_CMD   0x648

The telecommand APID to use for nominal LFS command packets.

#define LFS_APID_CRIT   0x649

The telecommand APID to use for critical LFS command packets.

#define LFS_FILE_DUMP_PARAM_SIZE   14

The number of bytes needed to hold the parameter section of a file dump data packet.

Referenced by LFS_FileDumpCTDB().


Enumeration Type Documentation

Enumeration of LFS LCP control states.

Enumerator:
LFS_CTL_UNINITIALIZED  Uninitialized
LFS_CTL_INITIALIZING  Initializing
LFS_CTL_DEINITIALIZING  De-initializing
LFS_CTL_INITIALIZED  Initialized
LFS_CTL_STARTING  Starting
LFS_CTL_RUNNING  Running
LFS_CTL_STOPPING  Stopping
LFS_CTL_BROKEN  Broken (irrecoverable)


Function Documentation

unsigned short LFS_apidMap ( unsigned short  itcNode  ) 

Translate an ITC node ID to a SSR science data file dump CCSDS APID.

Translate an ITC node ID to a SSR science data file dump CCSDS APID.

Parameters:
itcNode The ITC node ID.
Returns:
The APID value.

References apidMap.

Referenced by LFS_FileDumpSSR().

unsigned int LFS_bootDumpDir ( LFS_Control ctl,
unsigned int  cpu,
unsigned int  xactId 
)

Dump a TFFS boot directory.

No-op boot directory dump for non-TFFS targets.

Parameters:
ctl LFS control structure.
cpu The LAT CPU unit number.
xactId The transaction ID.
Returns:
A LFS MSG code.

Referenced by LFS_DirDump().

unsigned int LFS_bootDumpFile ( LFS_Control ctl,
unsigned int  cpu,
unsigned int  fileNum,
unsigned int  xactId 
)

Dump a TFFS boot partition file to the CTDB interface.

No-op boot file dump for non-TFFS targets.

Parameters:
ctl LFS control structure.
cpu The LAT CPU unit number.
fileNum The boot file number.
xactId The transaction ID.
Returns:
A LFS MSG code.

Referenced by LFS_FileDumpCTDB().

unsigned int LFS_bootDumpFileSSR ( LFS_Control ctl,
unsigned int  cpu,
unsigned int  fileNum,
unsigned int  xactId 
)

Dump a TFFS boot partition file to the SSR interface.

No-op boot file dump for non-TFFS targets.

Parameters:
ctl LFS control structure.
cpu The LAT CPU unit number.
fileNum The boot file number.
xactId The transaction ID.
Returns:
A LFS MSG code.

Referenced by LFS_FileDumpSSR().

void LFS_freeTelem ( ITC_QueueItem *  qitem,
unsigned int  status,
LFS_Control ctl,
void *  prm1,
void *  prm2 
)

Free telemetry packet memory.

Free memory after sending ITC telemetry packets. This is also used as a packet send completion callback.

Parameters:
qitem The memory buffer.
status Status of telemetry.
ctl LFS control structure.
prm1 Completion callback paramter 1.
prm2 Completion callback paramter 2.

References _LFS_Control::config, LFS_telemDelay(), _LFS_Control::node_id, _LFS_Control::telem_pool, _LFS_Control::telem_sem, and _LFS_Control::telem_timer.

Referenced by LFS_dirEmpty(), LFS_dumpDir(), LFS_dumpRoot(), LFS_FileDumpCTDB(), and LFS_SysStatus().

void LFS_freeTelemSSR ( ITC_QueueItem *  qitem,
unsigned int  status,
LFS_Control ctl,
void *  prm1,
void *  prm2 
)

Free telemetry packet memory.

Free memory after sending ITC telemetry packets to the SSR. This is also used as a packet send completion callback.

Parameters:
qitem The memory buffer.
status Status of telemetry.
ctl LFS control structure.
prm1 Completion callback paramter 1.
prm2 Completion callback paramter 2.

References _LFS_Control::telem_sem.

Referenced by LFS_FileDumpSSR().


Generated on Wed Nov 21 21:49:08 2012 by  doxygen 1.5.8