GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> LATC / dev > latc_cmn / rhel4-32


Interface   Data Structures   File List   Data Fields   Globals  

imm.c File Reference

Provides the LATC in-memory-model functionatlity. More...

#include <LATC/LATC_msgs.h>
#include <imm.h>
#include <data.h>
#include <descriptions.ic>
#include <AG_regEnums_s.h>
#include <PBS/MBA.h>
#include <PBI/Endianness.h>
#include <MSG/MSG_pubdefs.h>
#include <string.h>

Enumerations

enum  {
  TRC_CSR_ZERO_H = 0x00000003,
  TRC_CSR_ZERO_L = 0xa0000000
}

Functions

size_t roundUp (size_t size)
 Round up a buffer size to be 64 bit aligned.
char * align (char *next)
 Align a pointer to the next 64-bit aligned block.
LATC_imm * LATC_newIMM (void)
 Allocates and initialises a new in-memory-model structure.
void LATC_deleteIMM (LATC_imm *imm)
 Frees the allocated memory associated with the LATC structure.
void LATC_clearIMM (LATC_imm *imm)
 Clear out the map and data portions of the IMM structure.


Detailed Description

Provides the LATC in-memory-model functionatlity.

Author:
James Swain -- jswain@slac.stanford.edu

Function Documentation

char * align ( char *  next  ) 

Align a pointer to the next 64-bit aligned block.

Parameters:
next Ptr to the next data block
Returns:
Pointer to the next 64-bit aligned block

Referenced by LATC_newIMM().

void LATC_clearIMM ( LATC_imm *  imm  ) 

Clear out the map and data portions of the IMM structure.

Parameters:
imm Pointer to the IMM structure to clear

References LATC_clearMap(), and LATC_setReg().

void LATC_deleteIMM ( LATC_imm *  imm  ) 

Frees the allocated memory associated with the LATC structure.

Parameters:
imm Pointer to an IMM structure created using LATC_newIMM()

References LATC_deleteMap().

LATC_imm * LATC_newIMM ( void   ) 

Allocates and initialises a new in-memory-model structure.

Returns:
Pointer to an intialised LATC

References align(), LATC_newMap(), LATC_setReg(), roundUp(), and sizeofCpt().

size_t roundUp ( size_t  size  ) 

Round up a buffer size to be 64 bit aligned.

Parameters:
size Unrounded size
Returns:
Rounded size

Referenced by LATC_newIMM().


Generated on Thu Apr 7 17:31:28 2011 by  doxygen 1.5.8