Texas Instruments TMS320C6000 manual DIP API Reference, DIPget, Compile time constant

Page 40

DIP_SUPPORT

5.2 DIP API Reference

DIP_get

Returns current value of specified DIP switch

Function

 

Uint32 DIP_get(

 

 

Uint32 dipNum

 

);

 

Arguments

 

dipNum

Specifies which DIP switch to be read, can be one of

 

 

 

the following:

 

 

 

- DIP_1

 

 

 

- DIP_2

 

 

 

- DIP_3

 

 

 

-

Return Value

 

Uint32

Current value of the specified DIP switch.

 

 

 

- 0 = DIP switch position is off.

 

 

 

- 1 = DIP switch position is on.

Description

 

Returns the current value of the specified DIP switch.

 

 

C6711 DSK

 

-DIP_1 = USER_SW1

-DIP_2 = USER_SW2

-DIP_3 = USER_SW3

Example

Uint32 val;

 

val = DIP_get(DIP_1);

DIP_SUPPORT

Compile time constant

Constant

 

DIP_SUPPORT

Description

 

Compile time constant that has a value of 1 if the board supports the DIP

 

 

module and 0 otherwise. You are not required to use this constant.

 

 

Currently, all devices support this module.

Example

 

#if (DIP_SUPPORT)

 

 

/* do DIP operations */

 

 

#endif

DIP API Module

5-3

Image 40
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 Modules and Include Files BSL API ModulesBSL API Module Support Using BSL Handles BSL Support Library Name and Symbol ConventionsBSL API Module Support for 6711 DSK BSL Project Settings User’s Program SettingCompiler Options Linker OptionsAD535 API Module AD535 API Module Description AD535 API SummaryAD535 API Module AD535Config AD535ConfigAD535 API Reference AD535closeSets the Free bit of an McBSP serial port to Sets up AD535 using configuration structureAD553freeMcbsp AD553freeMcbsp AD535Id Returns McBSP HandleAllocates codec channel AD535Id Codec of C6711DSK use the predfined pointerAD535inGain AD535inGainSets AD535’s input gain AD535micGainAD535modifyReg AD535modifyReg Modifies specified control registerAD535open AD535openOpens codec channel AD535outGain AD535powerDown Enables AD535’s power-down modeSets AD535’s output gain AD535read AD535readAD535readHwi AD535readRegAD535readReg AD535reset AD535resetAD535write AD535writeReg AD535writeHwiWrites value to specified control register 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 Function BSLinit BSL API Reference BSLinit DIP API Module DIP API Module Description DIP API SummaryReturns current value of specified DIP switch DIP API ReferenceDIPget Compile time constantFlash API Module Flash API Module Description Flash API SummaryFLASHchecksum Flash API ReferenceFLASHchecksum Returns checksum of specified Flash data FLASHerase FLASHerase Erases specified segment of Flash memoryFLASHread FLASHreadReads data from Flash address FLASHwrite Flashsupport Compile time constantWrites data to Flash address FLASHwrite To write from writeBuffer to pages 1LED API Module LED API Module Description LED API SummaryLED API Reference LEDonLEDoff 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