MityDSP Documentation Index

MityDSP::tcDspAdc776XBase Class Reference

#include <DspAdc776XBase.h>

Inheritance diagram for MityDSP::tcDspAdc776XBase:
MityDSP::tcDspAdcBase MityDSP::tcDspAdc776X

List of all members.

Public Member Functions

 tcDspAdc776XBase (void *apAddress, int anLevel=gnAutoLevel)
 This constructor is used to open a DspAdc interface with the specified settings (optional).
 ~tcDspAdc776XBase ()
 This destructor is used to close up and free the resources tied to the associated ADC interface.
virtual int WaitWrite (int RegOff)
 This function is used to either enable or bypass Filter 1.
virtual void SetFilt1 (bool abFilter1)
 This function is used to either enable or bypass Filter 1.
virtual void SetFilt2 (int abFilter2)
 This function is used to set Filter 2 decimation rate.
virtual void SetFilt3 (bool abFilter3)
 This function is used to either enable or bypass Filter 3.
virtual void SetnCDIV (bool abnCDIV)
 This function is used to set CDIV.
virtual void SetPowDown (bool abPowDown)
 This function is used to set power down bit.
virtual void SetOffset (short val)
 This function is used to set the offset register.
virtual void SetGain (short val)
 This function is used to set the ADC gain register.
virtual void SetOvrRange (unsigned short val)
 This function is used to set overange register.

Protected Attributes

unsigned short mnContrReg1Shadow
unsigned short mnContrReg2Shadow
short mnOffsetRegShadow
short mnGainRegShadow
unsigned short mnOverRangeRegShadow

Constructor & Destructor Documentation

tcDspAdc776XBase::tcDspAdc776XBase ( void *  apAddress,
int  anLevel = gnAutoLevel 
)

This constructor is used to open a DspAdc interface with the specified settings (optional).

The interface is not yet enabled for capture following construction.

Parameters:
[in] apAddress Base Address of ADC core
[in] anLevel The interrupt vector used by the core (default: gnAutoLevel).
Returns:
None.
See also:
DspAdcBase.h
tcDspAdc776XBase::~tcDspAdc776XBase (  ) 

This destructor is used to close up and free the resources tied to the associated ADC interface.

Returns:
None.
See also:
DspAdcBase.h

Member Function Documentation

int tcDspAdc776XBase::WaitWrite ( int  RegOff  )  [virtual]

This function is used to either enable or bypass Filter 1.

Returns:
Error if return value is zero bit is clear
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetFilt1 ( bool  abFilter1  )  [virtual]

This function is used to either enable or bypass Filter 1.

Parameters:
[in] abFilter1 When false, filter 1 is bypassed
Returns:
None.
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetFilt2 ( int  abFilter2  )  [virtual]

This function is used to set Filter 2 decimation rate.

Parameters:
[in] abFilter2 1 == 2x, 2 == 4x, ... 5 == 32x
Returns:
None.
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetFilt3 ( bool  abFilter3  )  [virtual]

This function is used to either enable or bypass Filter 3.

Parameters:
[in] abFilter3 When false, filter 3 is bypassed
Returns:
None.
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetnCDIV ( bool  abnCDIV  )  [virtual]

This function is used to set CDIV.

Parameters:
[in] abnCDIV When false, filter 1 is divided
Returns:
None.
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetPowDown ( bool  abPowDown  )  [virtual]

This function is used to set power down bit.

Parameters:
[in] abPowDown When true, the ADC is powered down
Returns:
None.
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetOffset ( short  offset  )  [virtual]

This function is used to set the offset register.

Parameters:
[in] offset value for the offset register
Returns:
None.
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetGain ( short  gain  )  [virtual]

This function is used to set the ADC gain register.

Parameters:
[in] gain 0x8000 is gain of 1.0, default is A000 (1.25)
Returns:
None.
See also:
DspAdc776XBase.h
void tcDspAdc776XBase::SetOvrRange ( unsigned short  OvrRng  )  [virtual]

This function is used to set overange register.

Parameters:
[in] OvrRng Compared with output of first decimation.
Returns:
None.
See also:
DspAdc776XBase.h

Member Data Documentation


  
Generated on Fri Sep 23 16:33:46 2011 for MityDSP Core by  Doxygen Version 1.6.1
Copyright © 2009, Critical Link LLC, All rights reserved.