HOPS
HOPS class reference
Classes | Macros | Typedefs | Functions
hetetimecode.h File Reference

Go to the source code of this file.

Classes

struct  time_code
 

Macros

#define EPOCH_HUBSYNC   0x2 /* HUB synchronized time, no watch */
 
#define EPOCH_IBEX(N)   (0x30|(N))
 
#define EPOCH_NULL   0 /* no clock available */
 
#define EPOCH_UNIX(N)   (0x20|(N)) /* Unix sys time, N is 4 MSB's */
 
#define EPOCH_UNSYNC   0x1 /* raw unsynchronized processor time */
 
#define EPOCH_WATCH(N)   (0x10|(N)) /* synchronized to watch 0<=N<=15 */
 
#define THIS_IS_IBEX   ((Ht_hete_epoch & 0x30) == 0x30)
 

Typedefs

typedef unsigned short IPP_word
 

Functions

unsigned get_sc_time (time_code *tc)
 
void get_sc_time_array (IPP_word time[4])
 
int has_this_time_passed (time_code *time)
 
int time_cmp (time_code *time1, time_code *time2)
 

Class Documentation

◆ time_code

struct time_code
Class Members
IPP_word time[4]

Macro Definition Documentation

◆ EPOCH_HUBSYNC

#define EPOCH_HUBSYNC   0x2 /* HUB synchronized time, no watch */

◆ EPOCH_IBEX

#define EPOCH_IBEX (   N)    (0x30|(N))

◆ EPOCH_NULL

#define EPOCH_NULL   0 /* no clock available */

◆ EPOCH_UNIX

#define EPOCH_UNIX (   N)    (0x20|(N)) /* Unix sys time, N is 4 MSB's */

◆ EPOCH_UNSYNC

#define EPOCH_UNSYNC   0x1 /* raw unsynchronized processor time */

◆ EPOCH_WATCH

#define EPOCH_WATCH (   N)    (0x10|(N)) /* synchronized to watch 0<=N<=15 */

◆ THIS_IS_IBEX

#define THIS_IS_IBEX   ((Ht_hete_epoch & 0x30) == 0x30)

Typedef Documentation

◆ IPP_word

typedef unsigned short IPP_word

Function Documentation

◆ get_sc_time()

unsigned get_sc_time ( time_code tc)

◆ get_sc_time_array()

void get_sc_time_array ( IPP_word  time[4])

◆ has_this_time_passed()

int has_this_time_passed ( time_code time)

◆ time_cmp()

int time_cmp ( time_code time1,
time_code time2 
)