| Electronic Components Datasheet Search |
|
UM1632 Datasheet(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM1632 Datasheet(HTML) 11 Page - STMicroelectronics |
|
11 / 32 page ![]() DocID024513 Rev 1 11/32 UM1632 Function description 3.1.2 DALIslave.c These files contain the reception and transmission routines for building the DALI packet from received bits according to the DALI specification. They also contain the initialization functions for the DALI I/O pin driver layer. The functions of these routines are given below in bold. bool get_DALIIN(), bool get_DALIOUT(), void set_DALIOUT(pin_value) This set of functions: • Obtains/sets the logical level from/to the DALI pin (DALI Rx and DALI Tx) • Accepts the hardware implementation of the driver (its eventual inversion) Table 3. Void init_DALI (port_out, pin_out, invert_out, port_in, pin_in, invert_in, DataReceivedFunction, ErrorFunction, RTC_1ms_Function) Function name Init_DALI Description • Initializes the DALI I/O pin driver layer • Defines the DALI RX and DALI TX pins and their inversion. This depends on the physical connection to the DALI bus (i.e. the converter between the DALI bus and the I/O pins). • Defines the callback functions: – if the complete DALI packet is received (address, command/data) – if an error occurs on the DALI bus (loss of idle voltage) – if 1 ms callback timer ticks are generated for the DALI stack layer • After this function is called, the I/O pin driver is able to receive DALI packets and call upper layer callbacks. This function should be called as the last initialization function (after DALI stack initialization). Input Parameter GPIO_TypeDef* port_out U16 pin_out U8 invert_out GPIO_TypeDef* port_in U16 pin_in U8 invert_in TDataReceivedCallback DataReceivedFunction TErrorCallback ErrorFunction TRTC_1ms_Callback RTC_1ms_Function Output Parameter None Return None |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |