GLAST / LAT > DAQ and FSW > FSW > Doxygen Index> GNAT / V2-0-1 > gnat_xbrd / sun-gcc


Interface   Data Structures   File List   Data Fields   Globals  

xbrd_init.h File Reference

Defines the creation and initialization methods for the transition board interface. More...

#include "GNAT/xbrd_hw.h"
#include "GNAT/info.h"

Functions

unsigned int xbrd_SizeOf (void)
 Hides the private implemenation of the xbrd registers. Allows user to allocate memory.
int xbrd_Open (xbrdHandle gx, unsigned int physAddr)
 Initializes a xbrd handle.
int xbrd_Init (xbrdHandle gx)
 Initializes transition board hardware.
int xbrd_Close (xbrdHandle gx)
 shuts down the device attached to handle
int xbrd_GetLogicalAddr (xbrdHandle gx, unsigned int *addr)
 returns the logical address attached to handle
int xbrd_GetPhysAddr (xbrdHandle gx, unsigned int *addr)
 returns the physical address attached to handle
int xbrd_PrintDriverInfo (xbrdHandle gx)
 prints XBRD driver info to stdout
int xbrd_GetDriverInfo (DriverInfo *di)
 fills in driver info struct


Detailed Description

Defines the creation and initialization methods for the transition board interface.

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

Function Documentation

int xbrd_Close ( xbrdHandle  gx  ) 

shuts down the device attached to handle

Parameters:
gx xbrd device handle
Returns:
OK if close successful
See also:
gOpen()

References G_OK, _xbrd::m_baseAddr, _xbrd::m_localAddr, _xbrd::m_physAddr, and XBRD_ERR_BAD_HANDLE.

int xbrd_GetDriverInfo ( DriverInfo di  ) 

int xbrd_GetLogicalAddr ( xbrdHandle  gx,
unsigned int *  addr 
)

returns the logical address attached to handle

Parameters:
gx xbrd device handle
addr pointer to storage for holding logical address
Returns:
G_OK on successs
See also:
gOpen()

References G_OK, _xbrd::m_localAddr, XBRD_ERR_BAD_HANDLE, and XBRD_ERR_BAD_PARAM.

int xbrd_GetPhysAddr ( xbrdHandle  gx,
unsigned int *  addr 
)

returns the physical address attached to handle

Parameters:
gx xbrd device handle
addr pointer to storage for holding physical address
Returns:
G_OK on successs
See also:
gOpen()

References G_OK, _xbrd::m_physAddr, XBRD_ERR_BAD_HANDLE, and XBRD_ERR_BAD_PARAM.

int xbrd_Init ( xbrdHandle  gx  ) 

Initializes transition board hardware.

Parameters:
gx xbrd handle
Returns:
G_OK on success See source code for laundry list of initiailizations.

References _LOG, G_OK, GX_VERIFY_HANDLE, XBRD_ERR_BOARD_VERSION, and xbrd_Version().

int xbrd_Open ( xbrdHandle  gx,
unsigned int  physAddr 
)

Initializes a xbrd handle.

Parameters:
gx xbrd handle previously allocated
physAddr physical address of transition board
Returns:
OK for success
See also:
xbrd_Close()

References __xbrd_Open(), _CHECK, G_OK, and XBRD_ERR_BAD_HANDLE.

int xbrd_PrintDriverInfo ( xbrdHandle  gx  ) 

unsigned int xbrd_SizeOf ( void   ) 

Hides the private implemenation of the xbrd registers. Allows user to allocate memory.

Returns:
the size of struct _xbrd
See also:
xbrd_Open()


Generated on Wed Nov 21 22:06:20 2012 by  doxygen 1.5.8