English
Language : 

UM1632 Datasheet, PDF (12/32 Pages) STMicroelectronics – STM8L DALI slave interface
Function description
UM1632
Function name
Description
Input Parameter
Output Parameter
Return
Table 4. Void receive_data()
Receive_data
This function is called from the interrupt routine when the first start bit of a
DALI packet occurs. It:
• Starts the receiving process
None
None
None
Function name
Description
Input Parameter
Output Parameter
Return
Table 5. Void send_data(byteToSend)
Send_data
This function:
• Starts the transmitting process
U8 byteToSend
None
None
Function name
Description
Input Parameter
Output Parameter
Return
Table 6. Void receive_tick()
Receive_tick
This function is called from timer 4 interrupt service routine after receiving
begins. It:
• Performs bit receiving from the DALI RX pin for DALI packet building
• Checks the packet errors on the DALI bus
None
None
None
Function name
Description
Input Parameter
Output Parameter
Return
Table 7. Void send_tick(void)
Send_tick
This function is called from timer 4 interrupt servi ce routine after
transmitting begins. It:
• Performs transmission of DALI packet to DALI bus (bit coding to
physical layer)
None
None
None
12/32
DocID024513 Rev 1