![]() |
This is Unofficial EPICS BASE Doxygen Site
|
#include <string.h>
#include <stdlib.h>
#include "epicsTypes.h"
#include "epicsEvent.h"
#include "epicsMutex.h"
#include "epicsMessageQueue.h"
#include "epicsString.h"
#include "epicsStdioRedirect.h"
#include "epicsThread.h"
#include "epicsTime.h"
#include "epicsTimer.h"
#include "epicsInterrupt.h"
#include "osiSock.h"
#include "ellLib.h"
#include "errlog.h"
#include "cantProceed.h"
#include "envDefs.h"
#include "generalTimeSup.h"
#include "epicsGeneralTime.h"
Go to the source code of this file.
Classes | |
struct | gtProvider |
Macros | |
#define | IFDEBUG(n) if(0) /* Compiler will elide the block or statement */ |
Functions | |
int | osdTimeGetCurrent (epicsTimeStamp *pDest) |
void | generalTime_Init (void) |
Initialise the framework. More... | |
int | generalTimeGetExceptPriority (epicsTimeStamp *pDest, int *pPrio, int ignore) |
int epicsStdCall | epicsTimeGetCurrent (epicsTimeStamp *pDest) |
Get current time into *pDest . More... | |
int | epicsTimeGetMonotonic (epicsTimeStamp *pDest) |
Get monotonic time into *pDest . More... | |
int | epicsTimeGetCurrentInt (epicsTimeStamp *pDest) |
Get current time into *pDest (ISR-safe) More... | |
int epicsStdCall | epicsTimeGetEvent (epicsTimeStamp *pDest, int eventNumber) |
Get time of event eventNumber into *pDest . More... | |
int | epicsTimeGetEventInt (epicsTimeStamp *pDest, int eventNumber) |
Get time of event eventNumber into *pDest (ISR-safe) More... | |
int | generalTimeRegisterEventProvider (const char *name, int priority, TIMEEVENTFUN getEvent) |
int | generalTimeAddIntEventProvider (const char *name, int priority, TIMEEVENTFUN getEvent) |
int | generalTimeRegisterCurrentProvider (const char *name, int priority, TIMECURRENTFUN getTime) |
int | generalTimeAddIntCurrentProvider (const char *name, int priority, TIMECURRENTFUN getTime) |
int | installLastResortEventProvider (void) |
Install a Time Event time provider that returns the current time for any Time event number. More... | |
long | generalTimeReport (int level) |
Provide information about the installed providers and their current best times. More... | |
void | generalTimeResetErrorCounts (void) |
Reset the internal counter of the number of times the time returned was earlier than when previously requested. More... | |
int | generalTimeGetErrorCounts (void) |
Return the internal counter of the number of times the time returned was earlier than when previously requested. More... | |
const char * | generalTimeCurrentProviderName (void) |
Return the nume of the provider that last returned a valid current time, or NULL if none. More... | |
const char * | generalTimeEventProviderName (void) |
Return the name of the provider that last returned a valid Time Event time, or NULL of none. More... | |
const char * | generalTimeHighestCurrentName (void) |
Return the name of the registered current time provider that has the highest priority. More... | |
#define IFDEBUG | ( | n | ) | if(0) /* Compiler will elide the block or statement */ |
Definition at line 41 of file epicsGeneralTime.c.
int epicsStdCall epicsTimeGetCurrent | ( | epicsTimeStamp * | pDest | ) |
Get current time into *pDest
.
Definition at line 152 of file epicsGeneralTime.c.
int epicsTimeGetCurrentInt | ( | epicsTimeStamp * | pDest | ) |
Get current time into *pDest
(ISR-safe)
Definition at line 225 of file epicsGeneralTime.c.
int epicsStdCall epicsTimeGetEvent | ( | epicsTimeStamp * | pDest, |
int | eventNumber | ||
) |
Get time of event eventNumber
into *pDest
.
Definition at line 341 of file epicsGeneralTime.c.
int epicsTimeGetEventInt | ( | epicsTimeStamp * | pDest, |
int | eventNumber | ||
) |
Get time of event eventNumber
into *pDest
(ISR-safe)
Definition at line 350 of file epicsGeneralTime.c.
int epicsTimeGetMonotonic | ( | epicsTimeStamp * | pDest | ) |
Get monotonic time into *pDest
.
Definition at line 217 of file epicsGeneralTime.c.
void generalTime_Init | ( | void | ) |
Initialise the framework.
This routine is called automatically by any function that requires the framework. It does not need to be called explicitly.
Definition at line 99 of file epicsGeneralTime.c.
int generalTimeAddIntCurrentProvider | ( | const char * | name, |
int | priority, | ||
TIMECURRENTFUN | getTime | ||
) |
Definition at line 487 of file epicsGeneralTime.c.
int generalTimeAddIntEventProvider | ( | const char * | name, |
int | priority, | ||
TIMEEVENTFUN | getEvent | ||
) |
Definition at line 444 of file epicsGeneralTime.c.
const char* generalTimeCurrentProviderName | ( | void | ) |
Return the nume of the provider that last returned a valid current time, or NULL if none.
Used by stringin device support with:
Definition at line 638 of file epicsGeneralTime.c.
const char* generalTimeEventProviderName | ( | void | ) |
Return the name of the provider that last returned a valid Time Event time, or NULL of none.
Used by stringin device support with:
Definition at line 645 of file epicsGeneralTime.c.
int generalTimeGetErrorCounts | ( | void | ) |
Return the internal counter of the number of times the time returned was earlier than when previously requested.
Used by device support for longin record with:
Definition at line 630 of file epicsGeneralTime.c.
int generalTimeGetExceptPriority | ( | epicsTimeStamp * | pDest, |
int * | pPrio, | ||
int | ignore | ||
) |
Definition at line 105 of file epicsGeneralTime.c.
const char* generalTimeHighestCurrentName | ( | void | ) |
Return the name of the registered current time provider that has the highest priority.
Used by stringin device support with:
Definition at line 652 of file epicsGeneralTime.c.
int generalTimeRegisterCurrentProvider | ( | const char * | name, |
int | priority, | ||
TIMECURRENTFUN | getTime | ||
) |
Definition at line 460 of file epicsGeneralTime.c.
int generalTimeRegisterEventProvider | ( | const char * | name, |
int | priority, | ||
TIMEEVENTFUN | getEvent | ||
) |
Definition at line 417 of file epicsGeneralTime.c.
long generalTimeReport | ( | int | interest | ) |
Provide information about the installed providers and their current best times.
interest | Desired interest level to report |
Definition at line 529 of file epicsGeneralTime.c.
void generalTimeResetErrorCounts | ( | void | ) |
Reset the internal counter of the number of times the time returned was earlier than when previously requested.
Used by device support for binary out record with:
Definition at line 623 of file epicsGeneralTime.c.
int installLastResortEventProvider | ( | void | ) |
Install a Time Event time provider that returns the current time for any Time event number.
Definition at line 520 of file epicsGeneralTime.c.
int osdTimeGetCurrent | ( | epicsTimeStamp * | pDest | ) |
Definition at line 119 of file osdTime.cpp.
int ErrorCounts |
Definition at line 73 of file epicsGeneralTime.c.
epicsMutexId eventListLock |
Definition at line 67 of file epicsGeneralTime.c.
ELLLIST eventProviders |
Definition at line 68 of file epicsGeneralTime.c.
epicsTimeStamp eventTime[NUM_TIME_EVENTS] |
Definition at line 70 of file epicsGeneralTime.c.
gtProvider* lastEventProvider |
Definition at line 69 of file epicsGeneralTime.c.
epicsTimeStamp lastProvidedBestTime |
Definition at line 71 of file epicsGeneralTime.c.
epicsTimeStamp lastProvidedTime |
Definition at line 65 of file epicsGeneralTime.c.
gtProvider* lastTimeProvider |
Definition at line 64 of file epicsGeneralTime.c.
epicsMutexId timeListLock |
Definition at line 62 of file epicsGeneralTime.c.
ELLLIST timeProviders |
Definition at line 63 of file epicsGeneralTime.c.