GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > LHK / V11-4-2

Constituent: lhkt     Tag: linux-gcc


Interface   Data Structures   File List   Data Fields   Globals  

LHK_encode.c File Reference

Implements LHK acquisition encoding. More...

#include <string.h>
#include "PBS/MBA.h"
#include "CCSDS/CCSDS_pkt.h"
#include "LEM/list.h"
#include "LHK_p.h"
#include "LHK/LHK_cmdxtrn.h"
#include "LHK/LHK_msgs.h"

Include dependency graph for LHK_encode.c:


Functions

static unsigned int LHK_encode_temenv (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes tem register enables.
static unsigned int LHK_encode_pduenv (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes pdu env list.
static unsigned int LHK_encode_pdupwr (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes pdu power switch lists.
static unsigned int LHK_encode_aemenv (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes aem register enables.
static unsigned int LHK_encode_gemlrs (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes GEM low-rate science counter list.
static unsigned int LHK_encode_filest (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes FILE statistics list.
static unsigned int LHK_encode_commst (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes communications statistics list.
static unsigned int LHK_encode_itcst (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes communications statistics list.
static unsigned int LHK_encode_cpumet (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes CPU metrics collection.
static unsigned int LHK_encode_rtstat (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes CTDB statistics collection.
static unsigned int LHK_encode_memstat (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes MEM statistics collection.
static unsigned int LHK_encode_ltctlm (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes LTC telmetry collection.
static unsigned int LHK_encode_limtlm (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes LIM telmetry collection.
static unsigned int LHK_encode_ebmstat (LI_head *ccb_list, LHK_CfgDesc *cfg)
 Initializes EBM statistics list.
static LHK_CiLHK_encode_ci (LHK_CiOpcode op, LEM_ci *cmd, LEM_rsp_ri *rsp, LEM_FUNCTION func, LEM_LATP_ADDR addr, unsigned int reg, unsigned int pay)
 Creates a new collection item.
static unsigned int LHK_create_ccb (LHK_Ccb **ccb_ptr, LHK_CcbOpcode op, LI_head *list)
 Creates a new collection table control block.
static unsigned char * LHK_resolve_addr (unsigned int addr)
 Resolves the packet storage location for a register address word.
unsigned int LHK_encode_lists (LHK_CfgDesc *cfg, LI_head *ccb_list)
 Initializes the collection table control block lists.
unsigned int LHK_destroy_ccb (LHK_Ccb *ccb)
 Destroys a ccb.
unsigned int LHK_reset_cl (void *ccb_ptr)
 Resets the ci list.

Detailed Description

Implements LHK acquisition encoding.

Author:
Sergio Maldonado -- smaldona@slac.stanford.edu

Function Documentation

static unsigned int LHK_create_ccb LHK_Ccb **  ccb_ptr,
LHK_CcbOpcode  op,
LI_head *  list
[static]
 

Creates a new collection table control block.

Parameters:
ccb_ptr Address of a ccb pointer
op ccb opcode
list ccb list pointer
Returns:
LHK_SUCCESS on success

unsigned int LHK_destroy_ccb LHK_Ccb ccb  ) 
 

Destroys a ccb.

Parameters:
ccb ccb pointer
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_aemenv LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes aem register enables.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

LHK_Ci * LHK_encode_ci LHK_CiOpcode  op,
LEM_ci *  cmd,
LEM_rsp_ri *  rsp,
LEM_FUNCTION  func,
LEM_LATP_ADDR  addr,
unsigned int  reg,
unsigned int  pay
[static]
 

Creates a new collection item.

Parameters:
op cmd item opcode
cmd LEM cmd item
rsp LEM result item
func LEM function code
addr LEM latp address
reg register code
pay command argument
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_commst LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes communications statistics list.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_cpumet LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes CPU metrics collection.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_ebmstat LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes EBM statistics list.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_filest LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes FILE statistics list.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_gemlrs LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes GEM low-rate science counter list.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_itcst LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes communications statistics list.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_limtlm LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes LIM telmetry collection.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

unsigned int LHK_encode_lists LHK_CfgDesc cfg,
LI_head *  ccb_list
 

Initializes the collection table control block lists.

Parameters:
cfg Configuration descriptor
ccb_list Collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_ltctlm LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes LTC telmetry collection.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_memstat LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes MEM statistics collection.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_pduenv LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes pdu env list.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_pdupwr LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes pdu power switch lists.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_rtstat LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes CTDB statistics collection.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

static unsigned int LHK_encode_temenv LI_head *  ccb_list,
LHK_CfgDesc cfg
[static]
 

Initializes tem register enables.

Parameters:
cfg Pointer to a previously initialized configuration descriptor
ccb_list The collection control block list
Returns:
LHK_SUCCESS on success

unsigned int LHK_reset_cl void *  ccb_ptr  ) 
 

Resets the ci list.

Parameters:
ccb_ptr Pointer to previsouly initialized ccb
Returns:
LHK_SUCCESS on success

static unsigned char * LHK_resolve_addr unsigned int  addr  )  [static]
 

Resolves the packet storage location for a register address word.

Parameters:
addr Register address word to resolve
Returns:
Pointer to packet storage location


Generated on Tue Aug 14 01:51:30 2007 by  doxygen 1.4.4