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


Interface   Data Structures   File List   Data Fields   Globals  

gdump.h File Reference

Defines methods for dumping the gnat driver control registers. More...


Functions

int gDumpCtrlReg (gnatHandle gh, LOG_level lLevel)
 logs the contents of the control register
int gDumpStatReg (gnatHandle gh, LOG_level lLevel)
 logs the contents of the status register
int gDumpPFReg (gnatHandle gh)
 logs the contents of the play back FIFO register
int gDumpRFReg (gnatHandle gh)
 logs the contents of the record back FIFO register
int gDumpIntReg (gnatHandle gh, LOG_level lLevel)
 logs the contents of the interrupt config register
int gDumpAll (gnatHandle gh)
 dumps the contents of the control and status registers


Detailed Description

Defines methods for dumping the gnat driver control registers.

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

Function Documentation

int gDumpAll ( gnatHandle  gh  ) 

dumps the contents of the control and status registers

Parameters:
gh handle of device
Returns:
OK if successful

References gDumpCtrlReg(), gDumpStatReg(), and VERIFY_HANDLE.

int gDumpCtrlReg ( gnatHandle  gh,
LOG_level  lLevel 
)

int gDumpIntReg ( gnatHandle  gh,
LOG_level  lLevel 
)

logs the contents of the interrupt config register

Parameters:
gh handle of device
lLevel logging level
Returns:
OK if successful

References _LOG1, _regInt::bf, _BFregInt::delay, G_OK, _BFregInt::irq, _gnat::m_baseAddr, _regBlock::m_intReg, OK, _regInt::ui, _BFregInt::vec, and VERIFY_HANDLE.

int gDumpPFReg ( gnatHandle  gh  ) 

logs the contents of the play back FIFO register

Parameters:
gh handle of device
Returns:
OK if successful WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Reading the FIFO is a destructive read

References _LOG1, _regPF::bf, _BFregPF::data, G_OK, _gnat::m_baseAddr, _regBlock::m_pfReg, OK, _regPF::ui, _BFregPF::unused1, and VERIFY_HANDLE.

int gDumpRFReg ( gnatHandle  gh  ) 

logs the contents of the record back FIFO register

Parameters:
gh handle of device
Returns:
OK if successful WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Reading the FIFO is a destructive read

References _LOG1, _regRF::bf, _BFregRF::data, G_OK, _gnat::m_baseAddr, _regBlock::m_rfReg, OK, _regRF::ui, _BFregRF::unused1, and VERIFY_HANDLE.

int gDumpStatReg ( gnatHandle  gh,
LOG_level  lLevel 
)


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