Dip api reference, Dip_get, Dip_support – Texas Instruments TMS320C6000 User Manual
Page 40

DIP_SUPPORT
5-3
DIP API Module
5.2
DIP API Reference
Returns current value of specified DIP switch
DIP_get
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);
Compile time constant
DIP_SUPPORT
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
- Digital Signal Processor SM320F2812-HT (153 pages)
- MSP430x1xx (440 pages)
- Laser And Motor Drives DRV8811EVM (13 pages)
- TMS320 DSP (88 pages)
- MSP430x11x1 (45 pages)
- TVP5154EVM (55 pages)
- TMS320DM646X DMSOC (64 pages)
- CC2511 (24 pages)
- SN65HVS880 (4 pages)
- TPS650231EVM (14 pages)
- TMS320TCI648x (256 pages)
- TSC2007EVM-PDK (16 pages)
- UCC38500EVM (16 pages)
- SCAU020 (21 pages)
- TPS40051 (17 pages)
- TNETE2201 (14 pages)
- TMS320C64x DSP (306 pages)
- UCC2891 (21 pages)
- TMS320C3x (757 pages)
- MSP430 (138 pages)
- TMS320C6712D (102 pages)
- MSP430x4xx (512 pages)
- TMS320C6454 (225 pages)
- SPRU938B (48 pages)
- TUSB3210 (22 pages)
- TMS320C6457 (43 pages)
- CC2530ZNP (3 pages)
- TMS320C6455 (50 pages)
- TSB12LV26 (91 pages)
- TMS320C6472 (2 pages)
- VLYNQ Port (49 pages)
- TMS380C26 (92 pages)
- MSP-FET430 (95 pages)
- TMS320TCI6486 (160 pages)
- TPS2330 (22 pages)
- DM648 DSP (47 pages)
- TMS320DM36X (134 pages)
- MSC1211 (35 pages)
- SPRAA56 (29 pages)
- DAC7741EVM (28 pages)
- CDCM7005 (34 pages)
- TMS370 (99 pages)
- Adpater (37 pages)
- TMS320C6452 DSP (46 pages)