versadac  1
versadac - Scalable Recorder Firmware
uhh_nav_functions.h
1 
4 #ifndef _UHH_FUNCTIONS_C
5 #define _UHH_FUNCTIONS_C
6 
7 #include "uhh_nav_function_typedefs.h"
8 
9 struct uhhnav;
10 
11 struct uhhnav * GetNewUhhNav(char* z_sHost);
12 
13 int GetUhhErrorCond(struct uhhnav * nav);
14 
15 void KillUhhNav(struct uhhnav * nav);
16 
17 HeaderData * AllocHeaderData();
18 
19 void KillHeaderData(HeaderData * remove);
20 
21 int GetHeaderData(struct uhhnav * nav, int groupNum, int nPoints, HeaderData * target, uint8 direction, long interval);
22 
23 DrawData* AllocDrawData(int max_msgs, int max_nav_msgs);
24 
25 void KillDrawData(DrawData* remove);
26 
27 int GetDrawData(struct uhhnav * nav,
28  double duration,
29  double startTime,
30  int groupnum,
31  int nSamples,
32  int nPoints,
33  DrawData* target,
34  uint8 direction,
35  long interval,
36  int * configChanges,
37  bool latest,
38  int msg_filter);
39 
40 MessageData * AllocMessageData(int max_msgs, int max_nav_msgs);
41 
42 void KillMessageData(MessageData * remove);
43 
44 int GetMessageData(struct uhhnav * nav, MessageData * target, int groupNum, double startPTime,
45  int * configChanges, bool latest);
46 
47 void cleanOldMessages(MessageData * remove);
48 
49 void EnableSampleMessages(struct uhhnav * nav);
50 
51 void DisableSampleMessages(struct uhhnav * nav);
52 
53 double convertRealToPseudoTime(struct uhhnav * nav, double dTime);
54 
55 double convertPseudoToRealTime(struct uhhnav * nav, double dTime);
56 
57 double getLatestAvailablePseudoTime(struct uhhnav * nav);
58 
59 bool checkPtimeEarlierThanSameNumPoints(struct uhhnav * nav, double z_pTime);
60 
61 int WebGetDrawData(struct uhhnav * nav,
62  double duration,
63  double startTime,
64  int groupnum,
65  int nSamples,
66  int nPoints,
67  DrawData* target,
68  uint8 direction,
69  long interval,
70  bool latest,
71  int msg_filter);
72 
73 #endif
Definition: uhh_nav_function_typedefs.h:68
Definition: uhh_nav_function_typedefs.h:83
Definition: uhh_nav_function_typedefs.h:74