Site Index
   Support Home
   C6000 Home
   DaVinci EVM
   EVMDM6437
   EVM6424
   EVMDM642
   XEVM642
   DSKTCI6482
   EVMTCI6482
   DSK6455
   EVM6455
   EVM6418
   DSK6713
   DSK6416
   Ordering Info.
Google

C6000 Site
Support Site
Main Site

EVM6418 LED Module

The following list summarizes the LED API in terms of its function calls:

Function Description
EVM6418_LED_init Initialize the LEDs
EVM6418_LED_off Turn specified LED off
EVM6418_LED_on Turn specified LED on
EVM6418_LED_toggle Toggle specified LED

EVM6418_LED_init()

Description
Initialize the LED module. Must be called before any LED functions.

Required Headers
evm6418.h
evm6418_led.h

Required Libraries
evm6418bsl.lib

Function Prototype
void EVM6418_LED_init( )

Parameters
None

Return Value
None

Example

    /* Initialize the LED module */
    EVM6418_LED_init( );

EVM6418_LED_off()

Description
Turn one of the LEDs off

Required Headers
evm6418.h
evm6418_led.h

Required Libraries
evm6418bsl.lib

Function Prototype
void EVM6418_LED_off(Uint32 ledNum)

Parameters
ledNum - indicates which led to turn off. ledNum ranges from 0 to 3.

Return Value
None

Example

    /* Turn LED #3 off */
    EVM6418_LED_off(3);

EVM6418_LED_on()

Description
Turn one of the LEDs on

Required Headers
evm6418.h
evm6418_led.h

Required Libraries
evm6418bsl.lib

Function Prototype
void EVM6418_LED_on(Uint32 ledNum)

Parameters
ledNum – indicates which led to turn on. ledNum ranges from 0 to 3.

Return Value
None

Example

    /* Turn LED #1 on */
    EVM6418_LED_on( 0 );

EVM6418_LED_toggle()

Description
Toggle one of the LEDs.

Required Headers
evm6418.h
evm6418_led.h

Required Libraries
evm6418bsl.lib

Function Prototype
void EVM6418_LED_toggle(Uint32 ledNum)

Parameters
ledNum – indicates which led to turn on. ledNum ranges from 0 to 3

Return Value
None

Example

    /* Toggle LED #2 */
    EVM6418_LED_toggle( 2 );
©Copyright 2002-2012 Spectrum Digital, Inc. All Rights Reserved.