DocID025866 Rev 1 13/31
UM1728 Function description
31
void check_interface_failure(void)
This function:
• Checks the DALI bus idle voltage presence (500 ms disconnection from the DALI bus)
• Calls error callback function if an error occurs
u8 get_timer_count(void)
This function:
• Returns the current systick timer content
• Is used for general purpose use, for example, random number generation
u8 get_flag(void)
This function:
• Returns the current DALI I/O driver state (receiving, transmitting)
void check_interface_failure(void)
This function:
• Checks the DALI bus idle voltage presence (500 ms disconnection from the DALI bus)
• Calls error callback function if an error occurs
u8 get_timer_count(void)
This function:
• Returns the current systick timer content
• Is used for general purpose use, for example, random number generation
u8 get_flag(void)
This function:
• Returns the current DALI I/O driver state (receiving, transmitting)
3.2 DALI stack layer functions
The DALI stack layer implements all DALI commands processed on the logical level
according to the DALI specification.
3.2.1 dali.c
These main files contain the most commonly used functions that are called from the user
application. They contain initialization of the entire DALI slave library, DALI slave library
event flag signaling, command execution calls, and reporting of user hardware error.