EPICS Base  7.0.8.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
epicsGeneralTime.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2008 UChicago Argonne LLC, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2008 Diamond Light Source Ltd
5 * Copyright (c) 2004 Oak Ridge National Laboratory
6 * SPDX-License-Identifier: EPICS
7 * EPICS BASE is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
37 #ifndef INC_epicsGeneralTime_H
38 #define INC_epicsGeneralTime_H
39 
40 #include "libComAPI.h"
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
57 #define NUM_TIME_EVENTS 256
58 
64 LIBCOM_API void generalTime_Init(void);
65 
73 LIBCOM_API int installLastResortEventProvider(void);
74 
85 LIBCOM_API void generalTimeResetErrorCounts(void);
86 
99 LIBCOM_API int generalTimeGetErrorCounts(void);
100 
112 LIBCOM_API const char * generalTimeCurrentProviderName(void);
113 
125 LIBCOM_API const char * generalTimeEventProviderName(void);
126 
138 LIBCOM_API const char * generalTimeHighestCurrentName(void);
139 
141 #define generalTimeCurrentTpName generalTimeCurrentProviderName
142 
143 #define generalTimeEventTpName generalTimeEventProviderName
144 
149 LIBCOM_API long generalTimeReport(int interest);
150 
151 #ifdef __cplusplus
152 }
153 #endif
154 
155 #endif /* INC_epicsGeneralTime_H */
LIBCOM_API int installLastResortEventProvider(void)
Install a Time Event time provider that returns the current time for any Time event number...
LIBCOM_API const char * generalTimeHighestCurrentName(void)
Return the name of the registered current time provider that has the highest priority.
LIBCOM_API int generalTimeGetErrorCounts(void)
Return the internal counter of the number of times the time returned was earlier than when previously...
LIBCOM_API void generalTimeResetErrorCounts(void)
Reset the internal counter of the number of times the time returned was earlier than when previously ...
LIBCOM_API const char * generalTimeEventProviderName(void)
Return the name of the provider that last returned a valid Time Event time, or NULL of none...
LIBCOM_API long generalTimeReport(int interest)
Provide information about the installed providers and their current best times.
LIBCOM_API void generalTime_Init(void)
Initialize the framework.
LIBCOM_API const char * generalTimeCurrentProviderName(void)
Return the nume of the provider that last returned a valid current time, or NULL if none...