MityDSP Documentation Index
Public Member Functions | Protected Attributes
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.
- Public Member Functions inherited from MityDSP::tcDspAdcBase
 tcDspAdcBase (void *apAddress, int anLevel=gnAutoLevel)
 This constructor is used to open a DspAdc interface with the specified settings (optional).
 ~tcDspAdcBase ()
 This destructor is used to close up and free the resources tied to the associated ADC interface.
virtual void SetPack (bool abPackFIFO)
 Sets whether the ADC data should be packed two samples per 32 bit FIFO word.
virtual void SetFlipBit (bool abFlipBit)
 Sets whether the ADC data should flip the most significant bit.
virtual void SetUDClear (bool abABClear)
 Sets whether the user data sent to the ADC should be masked with zeros.
virtual void SetExtTrigger (bool abTrigger)
 Sets trigger mode of device.
virtual void SetBurstCapture (bool abBurstCapture)
 Sets capture mode of device.
virtual void SetCaptureDelay (unsigned short Delay)
 Sets burst capture delay of device.
virtual void SetCaptureLength (unsigned short Length)
 Sets burst capture quantity.
virtual void SetSaturationMode (bool abEnable)
 Sets saturation mode.
virtual void SetDifferentialMode (bool abEnable)
 Sets differential mode.
virtual void SetChannelMask (unsigned int anMask)
 Sets the channel mask bits.
virtual bool GetPack (void)
 Gets packing mode.
virtual bool GetFlipBit (void)
 Gets Flip Bit Mode.
virtual bool GetUDClear (void)
 Gets User Data Clearing Mode.
virtual bool GetExtTrigger (void)
 Gets External Trigger Mode.
virtual bool GetBurstCapture (void)
 Gets Capture Mode.
virtual unsigned short GetCaptureDelay (void)
 Gets Capture Delay Length (minus 1).
virtual unsigned short GetCaptureLength (void)
 Gets Capture Length.
virtual bool GetSaturationMode (void)
 Returns the saturation mode.
virtual bool GetDifferentialMode (void)
 Returns the differential mode.
virtual unsigned int GetChannelMask (void)
 Returns the channel mask.
virtual void Enable (bool abEnable)
 Enables the capture enginer for the ADC.
virtual bool IsEnabled (void)
 Returns the enabled state of the capture engine.
virtual bool GetFIFOLevel (teFIFOLevel level)
 Gets FIFO Level flag.
virtual unsigned short GetFIFOLevel (void)
 Gets FIFO Level.
virtual bool IsBurstComplete (void)
 Gets Burst Complete flag.
virtual void ClearBurstComplete (void)
 Clears Burst Complete flag.
virtual void DisableFIFOInterrupts (void)
 Clears Any Set FIFO Interrupt Enables.
virtual void SetFIFOInterruptLevel (teFIFOLevel aeLevel)
 Sets the FIFO interrupt based on the level specified.
virtual void SetBCInterrupt (bool Enable)
 Sets the Burst Complete Interrupt Enable Flag based on the Enable Flag.
virtual void RegisterFIFOHandler (teFIFOLevel aeLevel, tfIsrCallback afCallback)
 Registers the specified ISR callback for the given FIFO level interrupt.
virtual void RegisterFIFOHandler (teFIFOLevel aeLevel, tfIsrCallbackWithArg afCallback, void *apUserArg=NULL)
 Registers the specified ISR callback for the given FIFO level interrupt.
virtual void RegisterBCHandler (tfIsrCallback afCallback)
 Registers the specified ISR callback for the burst complete interrupt.
virtual void RegisterBCHandler (tfIsrCallbackWithArg afCallback, void *apUserArg=NULL)
 Registers the specified ISR callback for the burst complete interrupt.
virtual unsigned int * GetFIFODataPtr (void)
 Returns the pointer to the FIFO containing captured ADC data.
virtual unsigned int GetFIFODepth (void)
 Returns the depth (in 32 bit words) of the FIFO.
virtual bool DrainFIFO (void)
 This routine will drain the FIFO on the engine.

Protected Attributes

unsigned short mnContrReg1Shadow
unsigned short mnContrReg2Shadow
short mnOffsetRegShadow
short mnGainRegShadow
unsigned short mnOverRangeRegShadow
- Protected Attributes inherited from MityDSP::tcDspAdcBase
tfIsrCallback mfOneQCallback
tfIsrCallbackWithArg mfOneQCallbackWithArg
void * mpOneQUserArg
tfIsrCallback mfHalfCallback
tfIsrCallbackWithArg mfHalfCallbackWithArg
void * mpHalfUserArg
tfIsrCallback mfThreeQCallback
tfIsrCallbackWithArg mfThreeQCallbackWithArg
void * mpThreeQUserArg
tfIsrCallback mfFullCallback
tfIsrCallbackWithArg mfFullCallbackWithArg
void * mpFullUserArg
tfIsrCallback mfBurstCallback
tfIsrCallbackWithArg mfBurstCallbackWithArg
void * mpBurstUserArg
bool mbHasUDClear
bool mbHasFlipBit
bool mbHasSaturationMode
bool mbHasDifferentialMode
bool mbHasChannelMask
bool mbHasPackFIFO
bool mbHasExtTrigger
bool mbHasBurstCapture
bool mbHasCaptureDelay
bool mbHasCaptureLength
volatile unsigned int * mpBaseAddr
unsigned short mnMyIntMask
 core interrupt mask.
int mnMyIntLevel
 core interrupt level.
int mnMyIntVector
 core interrupt vector.

Additional Inherited Members

- Public Types inherited from MityDSP::tcDspAdcBase
typedef void(* tfIsrCallback )(tcDspAdcBase *)
 prototype for the ISR callbacks.
typedef void(* tfIsrCallbackWithArg )(tcDspAdcBase *, void *)
- Static Public Member Functions inherited from MityDSP::tcDspAdcBase
static int interrupt_dispatch (Arg arMyObject)
 Static interrupt dispatch routine.
- Public Attributes inherited from MityDSP::tcDspAdcBase
unsigned int mnInterruptCount
 ISR counter (debug).
- Protected Member Functions inherited from MityDSP::tcDspAdcBase
virtual void adcInterrupt (void)
 Interrupt service routine for the ADC cores.

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]apAddressBase Address of ADC core
[in]anLevelThe 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]abFilter1When 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]abFilter21 == 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]abFilter3When 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]abnCDIVWhen 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]abPowDownWhen 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]offsetvalue 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]gain0x8000 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]OvrRngCompared with output of first decimation.
Returns:
None.
See also:
DspAdc776XBase.h

Member Data Documentation

unsigned short MityDSP::tcDspAdc776XBase::mnContrReg1Shadow
protected
unsigned short MityDSP::tcDspAdc776XBase::mnContrReg2Shadow
protected
short MityDSP::tcDspAdc776XBase::mnOffsetRegShadow
protected
short MityDSP::tcDspAdc776XBase::mnGainRegShadow
protected
unsigned short MityDSP::tcDspAdc776XBase::mnOverRangeRegShadow
protected

  
Generated on Mon Apr 22 2013 11:33:02 for MityDSP Core by  Doxygen Version 1.8.1.1
Copyright © 2009, Critical Link LLC, All rights reserved.