EVM5509 LED Module
The following list summarizes the LED API in terms of its function calls:
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 );
|