STLUX library
UM1753
10/21
DocID026248 Rev 1
3.3 STLUX385A
SMEDs
(stlux_smed)
Table 3. STLUX385A SMEDs
Header
Input parameters
Output parameters
Functionality
SMED_Start
SMEDx is the SMED to be started.
This function makes the
SMEDx start running.
SMED_Stop
SMEDx is the SMED to be
stopped.
This function makes the
SMEDx stop running.
SMED_SetTime
SMEDx is the SMED which time
must be set.
TimeRegister is the status for which
the time must be set. The status
can be T0, T1, T2 or T3.
Value is the time value to be set.
It returns zero in case
of unsuccessful
operation due to
pending time
validation, one
otherwise.
Sets the time value to
the status TimeRegister
for the selected SMEDx.
SMED_ValidateTimeValues
SMEDx is the SMED.
TimeVal is the timer (or the timers)
to be validated.
It returns zero in case
of unsuccessful
operation due to
pending time
validation, one
otherwise.
Validates the settings
previously set with
SMED_SetTime for the
desired SMEDx timers.
SMED_TrigSWEvent
X can assume values ranging from
0 to 7 and corresponds to the SW
event trigger.
This function enables the
SW event triggers for the
SMED FSM.
SMED_Init
This function is defined
as void function by
default and can be
manually generated or
by using the SMED
configurator.