EasyManua.ls Logo

ST STM32F1 Series - dali_pub.c

ST STM32F1 Series
31 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Function description UM1728
16/31 DocID025866 Rev 1
u8 DALIC_isTalkingToMe(void)
This function:
Detects if the received DALI packet is addressed to the device
void DALIC_ProcessCommand(void)
This function:
Selects the correct command execution according to received data
void DALIC_Direct_Arc(val),
void DALIC_Direct_Arc_NoFade(val)
This function is called from many DALI commands as a request for light intensity change. It:
Executes the light intensity control
3.2.3 dali_pub.c
These files contain the lower level DALI stack layer functions. The user can modify some
functions if required. All functions of these files are called from other DALI stack modules
(mainly from the “dali_cmd.c”) as requests to execute lower level commands.
The most important functions of these files are given below in bold.
void DALIP_Init(LightControlFunction)
This function:
Initializes the public module
Contains as an input parameter a user callback function for light control:
it is called if there is a need to change the light level
the user implements it (implementation is user hardware dependent)
it has only one input parameter (unsigned int) which is the requested light level
(see header file “dali_pub.h” for this function type definition).
void DALIP_Direct_Arc(u8 val)
This function is called from the “dali_cmd.c”. It:
Executes the light intensity control using a logarithmic curve
u8 DALIP_Getxxx(void),
void DALIP_Setxxx(u8 val)
This set of functions:
Reads or sets a given “xxx” DALI parameter (usually a DALI register or flag in RAM)