Function description
3.2.7
dali_config.c
These files contain the DALI stack module configurations. The user can change them
according to his needs, the final ballast hardware/software implementation, the light element
used, the type of light control, the STM32 pinout, and the user/device description
information.
The most important variables and definitions in these files are given below in bold.
const u16 DALIP_ArcTable[]
This variable is the logarithmic table for light control. It:
•
Implements the logarithmic table according to the DALI specification
•
Converts 8-bit linear values to 16-bit logarithmic output for direct light power control
(see the DALI specification).
const u32 DALIP_FadeTimeTable[]
This variable:
•
Implements the fade time table according to the DALI specification
const u16 DALIP_FadeRateTable[]
This variable:
•
Implements the fade rate table according to the DALI specification
const u8 DaliRegDefaults[]
This variable:
•
Implements the default DALI register content according to the DALI specification
#define USE_ARC_TABLE
This definition:
•
Enables the logarithmic table to be used instead of direct light control
#define OUT_DALI_PORT,
#define OUT_DALI_PIN,
#define INVERT_OUT_DALI,
#define IN_DALI_PORT,
#define IN_DALI_PIN,
#define INVERT_IN_DALI
This set of definitions:
•
Contains DALI Rx and DALI Tx signal assignments to given pins according to user
requirements. The Rx pin must have interrupt capability.
•
Define if a pin is inverted or not on the user hardware DALI transceiver board
20/31
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