Site Index
   Home
   File Upload
Google

Transfer Site
Main Site

EVM5502 LED Module

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

Function Description
EVM5502_LED_init Initialize the LEDs
EVM5502_LED_off Turn specified LED off
EVM5502_LED_on Turn specified LED on
EVM5502_LED_toggle Toggle specified LED

EVM5502_LED_init()

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

Required Headers
evm5502.h
evm5502_led.h

Required Libraries
evm5502bsl.lib

Function Prototype
void EVM5502_LED_init( )

Parameters
None

Return Value
None

Example

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

EVM5502_LED_off()

Description
Turn one of the LEDs off

Required Headers
evm5502.h
evm5502_led.h

Required Libraries
evm5502bsl.lib

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

EVM5502_LED_on()

Description
Turn one of the LEDs on

Required Headers
evm5502.h
evm5502_led.h

Required Libraries
evm5502bsl.lib

Function Prototype
void EVM5502_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 */
    EVM5502_LED_on( 0 );

EVM5502_LED_toggle()

Description
Toggle one of the LEDs.

Required Headers
evm5502.h
evm5502_led.h

Required Libraries
evm5502bsl.lib

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