Site Index
   Support Home
   C5000 Home
   EVM5502
   EVM5509
   EVM5509A_PLUS
   DSK5509A
   DSK5510
   DSK5416
   PEP5416
   Ordering Info.
Google

C5000 Site
Support Site
Main Site

EVM5509 LED Module

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

Function Description
EVM5509_LED_init Initialize the LEDs
EVM5509_LED_off Turn specified LED off
EVM5509_LED_on Turn specified LED on
EVM5509_LED_toggle Toggle specified LED

EVM5509_LED_init()

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

Required Headers
evm5509.h
evm5509_led.h

Required Libraries
evm5509bsl.lib

Function Prototype
void EVM5509_LED_init( )

Parameters
None

Return Value
None

Example

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

EVM5509_LED_off()

Description
Turn one of the LEDs off

Required Headers
evm5509.h
evm5509_led.h

Required Libraries
evm5509bsl.lib

Function Prototype
void EVM5509_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 */
    EVM5509_LED_off(3);

EVM5509_LED_on()

Description
Turn one of the LEDs on

Required Headers
evm5509.h
evm5509_led.h

Required Libraries
evm5509bsl.lib

Function Prototype
void EVM5509_LED_on(Uint32 ledNum)

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

Return Value
None

Example

    /* Turn LED #0 on */
    EVM5509_LED_on( 0 );

EVM5509_LED_toggle()

Description
Toggle one of the LEDs.

Required Headers
evm5509.h
evm5509_led.h

Required Libraries
evm5509bsl.lib

Function Prototype
void EVM5509_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 */
    EVM5509_LED_toggle( 2 );
©Copyright 2002-2012 Spectrum Digital, Inc. All Rights Reserved.