clsim_lib.h

Go to the documentation of this file.
00001 
00006 #ifndef _CLSIM_H_
00007 #define _CLSIM_H_
00008 
00009 #ifdef __cplusplus
00010 
00011 extern "C" {
00012 
00013 #endif
00014 
00030 #define PDV_CLS_DEFAULT_HGAP    300
00031 #define PDV_CLS_DEFAULT_VGAP    400
00032 #define PDV_CLS_DEFAULT_FREQ    20.0
00033 
00039 EDTAPI void pdv_cls_dump_state(PdvDev *pdv_p);
00040 EDTAPI void pdv_cls_dump_geometry(PdvDev *pdv_p);
00041 EDTAPI int pdv_cls_set_dep(PdvDev *pdv_p);
00042 EDTAPI int pdv_cls_dep_sanity_check(PdvDev *pdv_p);
00043 EDTAPI void pdv_cls_set_size(PdvDev *pdv_p,
00044                 int taps,
00045                 int depth ,
00046                 int width,
00047                 int height,
00048                 int hblank,
00049                 int totalwidth,
00050                 int vblank,
00051                 int totalheight);
00052 
00053 EDTAPI void pdv_cls_set_line_timing(PdvDev *pdv_p,
00054                 int width,
00055                 int taps,
00056                 int Hfvstart,
00057                 int Hfvend,
00058                 int Hlvstart,
00059                 int Hlvend,
00060                 int Hrvstart,
00061                 int Hrvend);
00062 
00063 EDTAPI void pdv_cls_set_linescan(PdvDev *pdv_p, int state);
00064 EDTAPI void pdv_cls_set_lvcont(PdvDev *pdv_p, int state);
00065 EDTAPI void pdv_cls_set_rven(PdvDev *pdv_p, int state);
00066 EDTAPI void pdv_cls_set_uartloop(PdvDev *pdv_p, int state);
00067 EDTAPI void pdv_cls_set_smallok(PdvDev *pdv_p, int state);
00068 EDTAPI void pdv_cls_set_intlven(PdvDev *pdv_p, int state);
00069 EDTAPI void pdv_cls_set_firstfc(PdvDev *pdv_p, int state);
00070 EDTAPI void pdv_cls_set_datacnt(PdvDev *pdv_p, int state);
00071 EDTAPI void pdv_cls_set_led(PdvDev *pdv_p, int state);
00072 EDTAPI void pdv_cls_set_trigsrc(PdvDev *pdv_p, int state);
00073 EDTAPI void pdv_cls_set_trigpol(PdvDev *pdv_p, int state);
00074 EDTAPI void pdv_cls_set_trigframe(PdvDev *pdv_p, int state);
00075 EDTAPI void pdv_cls_set_trigline(PdvDev *pdv_p, int state);
00076 EDTAPI void pdv_cls_sim_start(PdvDev *pdv_p);
00077 EDTAPI void pdv_cls_sim_stop(PdvDev *pdv_p);
00078 EDTAPI void pdv_cls_init_serial(PdvDev *pdv_p);
00079 EDTAPI void pdv_cls_set_height(PdvDev *pdv_p, int rasterlines, int vblank);
00080 EDTAPI void pdv_cls_set_width(PdvDev *pdv_p, int width, int hblank);
00081 EDTAPI void pdv_cls_set_width_lval_rval(PdvDev *pdv_p, int width, int hblank, int hlvstart, int hlvend, int hrvstart, int hrvend);
00082 EDTAPI void pdv_cls_set_depth(PdvDev * pdv_p, int value);
00083 EDTAPI void pdv_cls_set_clock(EdtDev *edt_p, double freq) ;
00084 EDTAPI void pdv_cls_set_fill(PdvDev *pdv_p, u_char left, u_char right);
00085 EDTAPI void pdv_cls_set_readvalid(PdvDev *pdv_p, 
00086                 u_short HrvStart, u_short HrvEnd);
00087 EDTAPI void pdv_cls_set_rven(PdvDev *pdv_p, int enable);
00088 EDTAPI void pdv_cls_set_intlven(PdvDev *pdv_p, int enable);
00089 EDTAPI void pdv_cls_set_led(PdvDev *pdv_p, int power_state);
00090 
00091 EDTAPI void pdv_cls_setup_interleave(PdvDev *pdv_p,
00092                 short tap0start, short tap0delta, 
00093                 short tap1start, short tap1delta,
00094                 short tap2start, short tap2delta,
00095                 short tap3start, short tap3delta);
00096 
00097 EDTAPI int pdv_cls_get_vgap(PdvDev *pdv_p);
00098 EDTAPI int pdv_cls_get_hgap(PdvDev *pdv_p);
00099 
00100 /* These are used by clsiminit if no value for blanking is specified */
00101 #define PDV_CLS_DEFAULT_HGAP    300
00102 #define PDV_CLS_DEFAULT_VGAP    400
00103 
00104 EDTAPI double pdv_cls_frame_time(PdvDev *pdv_p);
00105  /* end cls group */
00107 
00108 /*  private (not in group cls) */
00109 EDTAPI void pe8dvcls_set_clock(EdtDev *pdv_p, double freq) ;
00110 EDTAPI void pe8dvcls_set_clock_nominal(EdtDev *pdv_p, double freq, double nominal) ;
00111 
00112 #ifdef __cplusplus
00113 
00114 }
00115 
00116 #endif
00117 
00118 #endif /* _CLSIM_H_ */
00119 

Generated on 19 Jun 2015 by  doxygen 1.4.7