edtinc.h

Go to the documentation of this file.
00001 
00002 #ifndef _EDTINC_H_
00003 #define _EDTINC_H_
00004 
00005 
00012 #ifdef __cplusplus
00013 
00014 extern "C" {
00015 
00016 #endif
00017 
00018 #include "edtdef.h"
00019 
00020 /* Include non-edt device stuff */
00021 
00022 #include "edt_utils.h"
00023 
00024 
00025 #ifdef P53B
00026 
00027 #include "p53b_dependent.h"
00028 
00029 typedef P53BDependent Dependent;
00030 
00031 #elif defined(PDV)
00032 
00033 #include "pdv_dependent.h"
00034 
00035 typedef PdvDependent Dependent;
00036 
00037 #else
00038 
00039 typedef void * Dependent;
00040 
00041 #endif
00042 
00043 #include "edtreg.h"
00044 
00045 #include "libedt.h"
00046 
00047 
00048 #ifdef P53B
00049 #include "p53b.h"
00050 #include "p53bio.h"
00051 #ifdef _KERNEL
00052 #include "p53b_reg.h"
00053 #endif
00054 #endif
00055 
00056 
00057 #ifdef P16D
00058 #include "p16d.h"
00059 #endif
00060 
00061 #include "edt_ocm.h"
00062 
00063 #ifndef _KERNEL
00064 
00065 #include <time.h> 
00066 
00067 #include "edt_error.h"
00068 
00069 #ifdef PDV
00070 #include "libpdv.h"
00071 #include "libdvu.h"
00072 #include "initcam.h"
00073 #include "edt_bitload.h"
00074 #include "libedt_timing.h"
00075 #include "pdv_irig.h"
00076 #endif /* PDV */
00077 
00078 #ifdef PCD
00079 #include "edt_vco.h"
00080 #include "edt_ocx.h"
00081 #include "edt_optstring.h"
00082 #include "libedt_timing.h"
00083 #endif
00084 
00085 #ifdef UCD
00086 #include "edtusb.h"
00087 #endif
00088 
00089 
00090 /* System time functions */
00091 EDTAPI double          edt_dtime(void);
00092 EDTAPI double          edt_timestamp(void);
00093 EDTAPI double          edt_elapsed(u_char reset);
00094 
00095 EDTAPI void            edt_msleep(int  msecs) ;
00096 EDTAPI void            edt_usleep(int  usecs) ;
00097 EDTAPI void             edt_usec_busywait(u_int usec);
00098 
00099 EDTAPI uchar_t *       edt_alloc(int size) ;
00100 EDTAPI void            edt_free(uchar_t *ptr) ;
00101 
00102 EDTAPI DIRHANDLE edt_opendir(const char *dirname);
00103 EDTAPI int edt_readdir(DIRHANDLE h, char *name);
00104 EDTAPI void edt_closedir(DIRHANDLE h);
00105 
00106 EDTAPI int64_t edt_disk_free(const char *path);
00107 
00108 EDTAPI double edt_dtime();
00109 
00110 EDTAPI double edt_timestamp();
00111 
00112 EDTAPI HANDLE edt_open_datafile(const char *path,
00113                     const char *name,
00114                     u_char writing,
00115                     u_char direct,
00116                     u_char truncate);
00117 
00118 
00119 EDTAPI void edt_close_datafile(HANDLE f);
00120 
00121 EDTAPI int edt_write_datafile(HANDLE f, void *p, int bufsize);
00122 
00123 EDTAPI int edt_read_datafile(HANDLE f, void *p, int bufsize);
00124 
00125 EDTAPI void *edt_alloc_aligned(int size);
00126 
00127 EDTAPI void edt_msleep(int msecs);
00128 
00129 EDTAPI int             edt_access(char *fname, int perm);
00130 EDTAPI void            edt_correct_slashes(char *str);
00131 EDTAPI void            edt_fwd_to_back(char *str);
00132 EDTAPI void            edt_back_to_fwd(char *str);
00133 
00134 EDTAPI u_char edt_wait_for_console_input(char *line,
00135                                 const int input_timeout,  
00136                                 const int maxlen);
00137 
00138 
00139 EDTAPI int edt_get_datestr(char *s, int maxlen);
00140 
00141 EDTAPI uint64_t edt_get_file_position(HANDLE f);
00142 
00143 EDTAPI uint64_t edt_get_file_size(HANDLE f);
00144 
00145 EDTAPI uint64_t edt_file_seek(HANDLE f, uint64_t pos);
00146 
00147 EDTAPI void edt_free_aligned(void *p);
00148 
00149 
00150 #endif /* _KERNEL */
00151 
00152 
00153 
00154 #ifdef __cplusplus
00155 
00156 }
00157 
00158 #endif
00159 
00160 #endif /* _EDTINC_H_ */
00161 

Generated on 19 Jun 2015 by  doxygen 1.4.7