User Manual

Table Of Contents
AN706-00040-2v0-E
59
7.2.4.3 LED Control API
Function
void LED_Init (void)
Overview
LED control processing initialization function
Invoked before entering the main loop (see 7.2.8.1 Main Processing
Function).
Parameter
None
Return
value
None
Function
STATUS LED_Set(uint16_t IdCh, uint8_t LEDStatus)
Overview
LED control processing function
Turns specified LED on or off.
Parameter
IdCh Control target LED (defined by bit)
bit0 LED1
bit1 LED2
bit2 LED3
bit3 LED4
bit4 LED5
bit5 LED6
bit6 LED7
bit7 LED8
LEDStatus LED on/off control (corresponding bit=0: off, on when it
is 1)
bit0 LED1
bit1 LED2
bit2 LED3
bit3 LED4
bit4 LED5
bit5 LED6
bit6 LED7
bit7 LED8
Return
value
Processing results
LED_RET_OK Normal completion
LED_RET_INVALID_PARAMETER Parameter error
LED_RET_ILLEGAL_ERROR If invoked without being initialized