MityDSP Documentation Index
Classes | Public Member Functions | Protected Attributes
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]mnMcBSPDevNumMcBDSP Number as defined by CSL (MCBSP_DEV0 or MCBSP_DEV1 for MityDSP/XM) (CSL_MCBSP_0 or CSL_MCBSP_1 for MityDSP-PRO)
[in]abSingleEndedSet to true (default) when used in singled ended mode.
[in]abPowerDownSet 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]channelchannel number to acquire sample from
Returns:
the value read from the ADC
See also:
DspAdc7844.h

Member Data Documentation

int MityDSP::tcDspAdc7844::mnDevNum
protected
MCBSP_Handle MityDSP::tcDspAdc7844::mhMcBSPHandle
protected
bool MityDSP::tcDspAdc7844::mbSingleEnded
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.