MityDSP Documentation Index

MityDSP::tcDspAdc7844 Class Reference

Instances of this class create an interface to an ADS7844 12-bit analog to digital converter. More...

#include <core/DspAdc7844.h>

List of all members.

Classes

union  tuControlWord
union  tuDataWord

Public Member Functions

 tcDspAdc7844 (int mnMcBSPDevNum, bool abSingleEnded=true, bool abPowerDown=false)
 This constructor is used to open a tcDspAdc7844 interface with the the specified settings (optional).
 ~tcDspAdc7844 ()
 Default destructor.
unsigned short GetSample (unsigned int anChannel)
 Get a sample from the ADC.

Protected Attributes

int mnDevNum
MCBSP_Handle mhMcBSPHandle
bool mbSingleEnded

Detailed Description

Instances of this class create an interface to an ADS7844 12-bit analog to digital converter.

See also:
tcDspAdc7844 Page

Constructor & Destructor Documentation

tcDspAdc7844::tcDspAdc7844 ( int  mnMcBSPDevNum,
bool  abSingleEnded = true,
bool  abPowerDown = false 
)

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

Parameters:
[in] mnMcBSPDevNum McBDSP Number as defined by CSL (MCBSP_DEV0 or MCBSP_DEV1 for MityDSP/XM) (CSL_MCBSP_0 or CSL_MCBSP_1 for MityDSP-PRO)
[in] abSingleEnded Set to true (default) when used in singled ended mode.
[in] abPowerDown Set to true to power down between samples (default false).
Returns:
None.
See also:
DspAdc7844.h
tcDspAdc7844::~tcDspAdc7844 (  ) 

Default destructor.

Returns:
None.

Member Function Documentation

unsigned short tcDspAdc7844::GetSample ( unsigned int  channel  ) 

Get a sample from the ADC.

Parameters:
[in] channel channel number to acquire sample from
Returns:
the value read from the ADC
See also:
DspAdc7844.h

Member Data Documentation

MCBSP_Handle MityDSP::tcDspAdc7844::mhMcBSPHandle [protected]

  
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.