GLAST/LAT > DAQ and FSW > FSW > Doxygen Index > GNAT / V2-0-0

Constituent: gnat_cio     Tag: mv2304


Interface   Data Structures   File List   Data Fields   Globals  

latp_p.h File Reference

Defines private structs, unions and methods of the LATp protocol. More...

#include "GNAT/gnat.h"
#include "GNAT/log.h"
#include "GNAT/latp.h"

Include dependency graph for latp_p.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Data Structures

struct  _LATp_Interface
 Structure that defines a LATp interface. More...


Defines

#define CELL_WORDS   (9)
 Number of words in a cell as it comes off the FIFO.

#define LAST_CELL   (1)
 Flag to indicate last cell of a packet.

#define MORE_CELLS   (0)
 Flag to indicate more cells remaining in packet.

#define CELL_SIZE   (sizeof(union _generic_Cell)/4)
 Length of a cell counted as 32-bit words.

#define CELL_ANNOUNCE_MASK   ((unsigned int)(1 << 17))
 Bit mask for the CELL ANNOUNCE bit during cell tx/rx.

#define CELL_TYPE_MASK   ((unsigned int)(1 << 16))
 Bit mask for the CELL TYPE bit during cell tx/rx.

#define PACKET_COMPLETE_MASK   ((unsigned int) (CELL_ANNOUNCE_MASK | CELL_TYPE_MASK) )
 Bit mask for the PACKET COMPLETE bits during cell tx/rx.

#define CELL_HEADER_PARITY_MASK   ((unsigned int)(1))
 Bit mask for the CELL HEADER PARITY bit during cell tx/rx.

#define CELL_TRUNCATE_MASK   ((unsigned int)(1 << 17))
 Bit mask for the CELL TRUNCATE bit during cell tx/rx.

#define CELL_PARITY_MASK   ((unsigned int)(1 << 16))
 Bit mask for the CELL PARITY bit during cell tx/rx.

#define LATP_COUNTER_MAX   ((unsigned int)(1<<14) - 1)
 Max unsigned value of the saturating LATp statistics counters.


Typedefs

typedef _LATp_Cell LATp_Cell
 typedef for struct _LATp_Cell

typedef _LATp_Interface LATp_Interface
 typedef for struct _LATp_Interface


Functions

void srvIntr (gnatHandle gh)
 ISR that gives the m_syncSem semaphore when the record FIFO has a packet ready.


Detailed Description

Defines private structs, unions and methods of the LATp protocol.

Author:
Curt Brune -- curt@slac.stanford.edu

Define Documentation

#define LAST_CELL   (1)
 

Flag to indicate last cell of a packet.

See also:
MORE_CELLS, sendLATpCell

#define MORE_CELLS   (0)
 

Flag to indicate more cells remaining in packet.

See also:
LAST_CELLS, sendLATpCell


Function Documentation

void srvIntr gnatHandle  gh  ) 
 

ISR that gives the m_syncSem semaphore when the record FIFO has a packet ready.

Parameters:
gh gnat driver handle previously allocated
Returns:
void


Generated on Thu Oct 21 08:27:23 2004 by doxygen 1.3.3