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