STLUX library
UM1753
14/21
DocID026248 Rev 1
STMR_GenerateEvent
STMR_EventSource enables the
event to be generated.
This function configures
the STMR event to be
generated by SW. The
register is automatically
cleared by HW.
STMR_SetCounter
Counter specifies the counter new
value to be set in the range 0x0000
to 0xFFFF.
Sets the STMR counter
register value.
STMR_SetAutoreload
Auto-reload specifies the auto-reload
new value to be set in the range
0x0000 to 0xFFFF.
Sets the STMR auto-
reload value.
STMR_GetCounter
The returned
value is the
current STMR
counter.
Gets the current STMR
counter value.
STMR_GetPrescaler
The returned
value is the
current STMR
prescaler.
Gets the current STMR
prescaler value.
STMR_GetFlagStatus
STMR_FLAG specifies the STMR
status register value.
The returned
value is the
current flag
status. It can be
SET or RESET.
Checks whether the
specified STMR flag is set
or not.
STMR_ClearFlag
STMR_FLAG specifies the STMR
status register value.
Clears the STMR status
flag.
STMR_GetITStatus
STMR_IT specifies the STMR
interrupt status register value.
The returned
value is the
STMR interrupt
status register.
This function checks
whether an interrupt has
occurred or not.
STMR_ClearITPendingBit
STMR_IT specifies the STMR
interrupt status register value.
This function clear the
interrupt pending flag.
Table 6. STLUX385A system timer (continued)
Header
Input parameters
Output
parameters
Functionality