Function description
void DALI_Init(LightControlFunction)
This function:
•
Initializes the entire DALI slave library (both I/O pin driver layer and DALI stack layer
and is called from the user application as the main initialization function
•
Initializes all necessary modules of the DALI slave library
•
Starts execution of receiving commands from the DALI bus, timing management,
callback calls, and setting of event flags.
void DALI_InterruptConfig (void)
This function:
•
Configures the used IRQ Channels and sets their priority.
u8 DALI_CheckAndExecuteReceivedCommand(void)
This function should be cyclically called from the main user application in the main program
loop. It:
•
Checks if there is a pending received DALI packet. If so, the given DALI command from
the packet is executed.
•
Returns the execution status
–
–
–
u8 DALI_CheckAndExecuteReceivedCommand(void)
This function should be cyclically called from the main user application in the main program
loop. It:
•
Checks if there is a pending received DALI packet. If so, the given DALI command from
the packet is executed.
•
Returns the execution status
–
–
–
14/31
0 = no pending command
1 = pending DALI command executed
2 = DALI bus error present and processed
0 = no pending command
1 = pending DALI command executed
2 = DALI bus error present and processed
DocID025866 Rev 1
UM1728
Need help?
Do you have a question about the STM32F1 Series and is the answer not in the manual?
Questions and answers