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.
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