MityDSP::tcDspTlv254x Class Reference
The tcDspTlv254x class is used to set up and receive data from a TI TLV254X family A-to-D converter.
More...
#include <core/DspTlv254x.h>
List of all members.
Detailed Description
The tcDspTlv254x class is used to set up and receive data from a TI TLV254X family A-to-D converter.
The converter is accessed via a McBSP interface.
- See also:
- tcDspTlv254x Page
Constructor & Destructor Documentation
This constructor is used to initialize a TLV254x A-to-D converter over a specified McBSP interface.
- Parameters:
-
[in] | apMcbsp | Pointer to a McBSP interface object. |
[in] | auCfg | A tuCfrReg structure for the desired configuration |
[in] | apLatch | A pointer to a tcDspOutputLatch interface that contains control of the chip select line. This can be NULL. |
[in] | anCSID | The ID for the ADC chip select in apLatch. |
- Note:
- if NULL is provided as the apLatch, then the managing application must configure the chip select lines appropriately prior to constructing and accessing the read methods. Otherwise, the tcDspTlv254x class will request CS strobes appropriately.
- Returns:
- None.
tcDspTlv254x::~tcDspTlv254x |
( |
|
) |
|
Member Function Documentation
void tcDspTlv254x::write_config_reg |
( |
tuCfrReg |
auCfg |
) |
|
This routine writes a new value to the TLV524X config register.
- Parameters:
-
[in] | auCfg | The desired new configuration for the TLV524X. |
- Returns:
- None.
tuCfrReg tcDspTlv254x::read_config_reg |
( |
void |
|
) |
|
This routine reads the current TLV254X config register settings.
- Returns:
- A tuCfrReg structure containing the current configuration.
void tcDspTlv254x::request_data |
( |
unsigned short |
anChannel |
) |
|
This routine issues a single-shot conversion request from the specified channel of the TLV254x.
- Parameters:
-
[in] | anChannel | The TLV254X channel to use. |
- Returns:
- None.
unsigned short tcDspTlv254x::read_data |
( |
void |
|
) |
|
This routine writes a FIFO read request to the TLV254x in order to retrieve data back from a previous request.
Note that the application code must wait long enough to issue this read to ensure that the request has been completed.
- Returns:
- The contents of the Results Register
Member Data Documentation