Component: STM32 Timer (Timing)
From Flowcode Help
(Redirected from Component: ID a871ac1d 7a58 4474 a08b c9c9017cd2ed)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.1 |
Category | Timing |
Contents
STM32 Timer component
Allows you to measure the passage of time via the use of the STM hardware timer. Works like a stopwatch with macros to start, stop and reset the timer counter. Returns time as integer Seconds, Milliseconds and also Floating Point and String.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_TimerComponentSTM32.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_TimerComponentSTM32.fcfx
Detailed description
No detailed description exists yet for this component
Examples
No additional examples
Macro reference
GetCountMilliseconds
GetCountMilliseconds | |
Returns the count value as a number of milliseconds | |
- ULONG | Return |
GetCountReal
GetCountReal | |
Returns the count value as a floating point value in seconds. | |
- FLOAT | Return |
GetCountSeconds
GetCountSeconds | |
Returns the count value as a number of whole seconds, rounded down to the nearest second | |
- ULONG | Return |
GetCountString
GetCountString | |
Returns the count value as a floating point string in seconds. | |
- BYTE | Precision |
Number of decimal places to display in string | |
- STRING | Return |
GetRawCount
GetRawCount | |
Returns the number of milliseconds elapsed since the timer was started. | |
- ULONG | Return |
ResetCounter
ResetCounter | |
- VOID | Return |
StartCounter
StartCounter | |
Starts the timer counting. | |
- BOOL | ResetCounters |
Range: 0-1 where 0=Do Not Reset and 1=Reset | |
- VOID | Return |
StopCounter
StopCounter | |
Stops the timer counting. | |
- VOID | Return |