STMicroelectronics STLUX385A User Manual page 14

Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STLUX385A and is the answer not in the manual?

Questions and answers

Table of Contents