GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LCM / V1-4-4

Constituent: lcm_siu     Tag: rad750


Interface   Data Structures   File List   Data Fields   Globals  

LCM_message.c File Reference

CPU generic functions for message (MSG) telemetering. More...

#include <string.h>
#include "PBI/Endianness.h"
#include "CCSDS/CCSDS_pkt.h"
#include "LSF/LSF_ids.h"
#include "MDB/MDB_pubdefs.h"
#include "PBS/MBA.h"
#include "PBS/SEM.h"
#include "PBS/WUT.h"
#include "LCM/LCM_msgs.h"
#include "LCM/LCM_tlmdefs.h"
#include "LCM/LCM_pubdefs.h"
#include "LCM_prvdefs.h"

Include dependency graph for LCM_message.c:


Functions

static void LCM_msgOutputCTDB (MSG_OutputModes mode, void *prm, MSG_Message *msg)
static void LCM_msgOutputSSR (MSG_OutputModes mode, void *prm, MSG_Message *msg)
static WUT_cb_status LCM_msgDelay (SEM sem, WUT_tmr *timer)
static void LCM_freeMsg (ITC_QueueItem *qitem, unsigned int status, LCM_Control *ctl, void *prm1, void *prm2)
static void LCM_freeMsgSSR (ITC_QueueItem *qitem, unsigned int status, LCM_Control *ctl, void *prm1, void *prm2)
unsigned int LCM_messageInitialize (LCM_Control *ctl)
 Initialize the LCM message handling subsystem.
void LCM_msgAttachCTDB (void)
 Setup MSG output callback for CTDB diagnostic telemetry.
void LCM_msgAttachSSR (void)
 Setup MSG output callback for SSR science data telemetry.

Variables

static const unsigned short apidMap []
static const int LCM_severityXlat [4]

Detailed Description

CPU generic functions for message (MSG) telemetering.

CVS $Id: LCM_message.c,v 1.1 2007/10/29 00:29:04 apw Exp $
Author:
A.P.Waite
LCM_message.c provides CPU generic support for LCM's telemetering of MSG messages.

Function Documentation

static void LCM_freeMsg ITC_QueueItem *  qitem,
unsigned int  status,
LCM_Control ctl,
void *  prm1,
void *  prm2
[static]
 

Free memory after sending MSG CTDB telemetry packets.

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

static void LCM_freeMsgSSR ITC_QueueItem *  qitem,
unsigned int  status,
LCM_Control ctl,
void *  prm1,
void *  prm2
[static]
 

Free memory after sending MSG SSR telemetry packets.

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

unsigned int LCM_messageInitialize LCM_Control ctl  ) 
 

Initialize the LCM message handling subsystem.

Parameters:
ctl (in) LCM control block
LCM_messageInitialize() builds up the CPU common facilities for sending messages to CTDB/SSR.

void LCM_msgAttachCTDB void   ) 
 

Setup MSG output callback for CTDB diagnostic telemetry.

Attach LCM CTDB output callback.

void LCM_msgAttachSSR void   ) 
 

Setup MSG output callback for SSR science data telemetry.

Attach LCM SSR science data output callback.

static WUT_cb_status LCM_msgDelay SEM  sem,
WUT_tmr *  timer
[static]
 

Timer callback for MSG send delay.

Parameters:
sem The semaphore to release to indicate delay done.
timer The WUT handle for the timer.
Returns:
WUT_K_STATE_CHANGE_NO.

static void LCM_msgOutputCTDB MSG_OutputModes  mode,
void *  prm,
MSG_Message *  msg
[static]
 

Output callback which packages each MSG record as a single CTDB diagnostic CCSDS telemetry packet.

Parameters:
mode Current MSG control mode.
prm User parameter.
msg MSG output record to send.

static void LCM_msgOutputSSR MSG_OutputModes  mode,
void *  prm,
MSG_Message *  msg
[static]
 

Output callback which packages each MSG record as a single LCM datagram wrapped by a CCSDS science data telemetry packet.

Parameters:
mode Current MSG control mode.
prm User parameter.
msg MSG output record to send.


Variable Documentation

apidMap [static]
 

Initial value:

Array mapping ITC node ID's to SSR telemetry packet APID's.

LCM_severityXlat [static]
 

Initial value:

{
        0, 2, 1, 3
}
Array mapping MSG severity codes into increasing levels.


Generated on Mon Nov 5 02:23:50 2007 by  doxygen 1.4.4