eLooM for STM32 application  v3.3.0
A framework for multitasking low power embedded applications powerd by STM32
Loading...
Searching...
No Matches
SysTimestamp.h
Go to the documentation of this file.
1
82#ifndef ELOOM_INC_SERVICES_SYSTIMESTAMP_H_
83#define ELOOM_INC_SERVICES_SYSTIMESTAMP_H_
84
85#include "drivers/HwTSDriver.h"
87#include "drivers/SwTSDriver.h"
89
90#ifdef __cplusplus
91extern "C" {
92#endif
93
94#ifndef SYS_TS_CFG_ENABLE_SERVICE
95#define SYS_TS_CFG_ENABLE_SERVICE 0
96#endif
97
98#define SYS_TS_USE_SW_TSDRIVER NULL
99
100#ifndef SYS_TS_CFG_TSDRIVER_PARAMS
101#define SYS_TS_CFG_TSDRIVER_PARAMS SYS_TS_USE_SW_TSDRIVER
102#endif
103
104#if (SYS_TS_CFG_ENABLE_SERVICE == 1) && !defined(SYS_TS_CFG_TSDRIVER_FREQ_HZ)
105#error "Please define SYS_TS_CFG_TSDRIVER_FREQ equal to the hardware timer clock frequency in Hz"
106#endif
107
112
117{
122};
123
124
126/***************************/
127
138
146
155
164
171
172#ifdef __cplusplus
173}
174#endif
175
176#endif /* ELOOM_INC_SERVICES_SYSTIMESTAMP_H_ */
Driver for the timestamp service that use an hardware timer.
Software driver for the timestamp service.
Virtual functions implemented by the driver.
SysTimestamp_t * SysGetTimestampSrv(void)
uint64_t SysTsGetTimestampN(SysTimestamp_t *_this)
sys_error_code_t SysTsStart(SysTimestamp_t *_this, bool bReset)
sys_error_code_t SysTsStop(SysTimestamp_t *_this)
double SysTsGetTimestampF(SysTimestamp_t *_this)
Definition ITSDriver_vtbl.h:55
Definition SysTimestamp.h:117
ITSDriver_t * m_pxDriver
Definition SysTimestamp.h:121
uint16_t sys_error_code_t
Definition syserror.h:41