Texas Instruments TMS320C6000 manual Sets up AD535 using configuration structure, AD553freeMcbsp

Page 18

AD535_config

Description

This is the AD535 configuration structure used to set up a codec channel.

 

You create and initialize this structure and then pass its address to the

 

AD535_config() function.

Example

AD535_Config myConfig = {

 

AD535_LOOPBACK_DISABLE,

 

AD535_MICGAIN_OFF,

 

AD535_GAIN_0DB,

 

AD535_GAIN_0DB

 

};

 

AD535_config(hAD535,&myConfig);

AD535_config

Sets up AD535 using configuration structure

Function

 

Void AD535_config(

 

 

AD535_Handle hAD535,

 

 

AD535_Config *config

 

);

 

Arguments

 

hAD535

Handle to codec channel, see AD535_open()

 

 

Config

Pointer to an initialized configuration structure, see

 

 

 

AD535_Config

Return Value

 

none

 

Description

 

Sets up the AD535 using the configuration structure. The values of the

 

 

structure are written to the AD535 control registers.

Example

 

AD535_Config myConfig = {

 

 

 

AD535_LOOPBACK_DISABLE,

 

 

 

AD535_MICGAIN_OFF,

 

 

 

AD535_GAIN_0DB,

 

 

 

AD535_GAIN_0DB

 

 

 

};

 

 

AD535_config(hAD535,&myConfig);

 

Sets the FREE bit of an McBSP serial port to 1

AD553_freeMcbsp

Function

 

Void AD535_freeMcbsp(

 

 

int port

 

 

)

 

Arguments

 

port

McBSP port: MCBSP_DEV0, MCBSP_DEV1

Return Value

 

none

 

2-6

Image 18
Contents TMS320C6000 DSK Board Support Library API User’s Guide Important Notice Read This First About This ManualNotational Conventions How to Use This Manual Contents DIP API Module Tables BSL Overview BSL Introduction How The BSL Benefits YouBSL API Modules BSL Modules and Include FilesBSL API Module Support BSL Support Library Name and Symbol Conventions Using BSL HandlesBSL API Module Support for 6711 DSK Compiler Options BSL Project SettingsUser’s Program Setting Linker OptionsAD535 API Module AD535 API Module Description AD535 API SummaryAD535 API Module AD535 API Reference AD535ConfigAD535Config AD535closeSets up AD535 using configuration structure Sets the Free bit of an McBSP serial port toAD553freeMcbsp AD553freeMcbsp Returns McBSP Handle AD535IdAllocates codec channel AD535Id Codec of C6711DSK use the predfined pointerSets AD535’s input gain AD535inGainAD535inGain AD535micGainAD535modifyReg AD535modifyReg Modifies specified control registerAD535open AD535openOpens codec channel AD535powerDown Enables AD535’s power-down mode AD535outGainSets AD535’s output gain AD535readHwi AD535readAD535read AD535readRegAD535readReg AD535reset AD535resetAD535write Writes value to specified control register AD535writeRegAD535writeHwi AD535writeRegAD535writeReg Board API Module Board API Module Description Board API SummaryBoard API Reference Boardsupport Compile time constantBOARDwriteReg BSL API Module BSL API Module Description BSL API FunctionBSL API Reference BSLinitBSLinit DIP API Module DIP API Module Description DIP API SummaryDIPget Returns current value of specified DIP switchDIP API Reference Compile time constantFlash API Module Flash API Module Description Flash API SummaryFlash API Reference FLASHchecksumFLASHchecksum Returns checksum of specified Flash data FLASHerase FLASHerase Erases specified segment of Flash memoryFLASHread FLASHreadReads data from Flash address Flashsupport Compile time constant FLASHwriteWrites data to Flash address FLASHwrite To write from writeBuffer to pages 1LED API Module LED API Module Description LED API SummaryLEDoff LED API ReferenceLEDon LEDonLEDtoggle Toggles specified LEDGlossary Board The BOARD-specific API Module CSL See chip support library DIP The DIP Switches API Module Flash The Flash ROM API Module IRQ Interrupt request see IRQ module ∝ -law companding See compress and expand compand Rtos Real-time operating system Glossary A-9 Index DipsupportLedsupport