clsim_lib.h File Reference


Detailed Description

Camera Link Simulator Library header file, for use with PCI DV CLS and PCIe DV C-Link with Simulator FPGA loaded.

Definition in file clsim_lib.h.

Go to the source code of this file.

Defines

#define PDV_CLS_DEFAULT_HGAP   300
#define PDV_CLS_DEFAULT_VGAP   400
#define PDV_CLS_DEFAULT_FREQ   20.0
#define PDV_CLS_DEFAULT_HGAP   300
#define PDV_CLS_DEFAULT_VGAP   400

Functions

void pdv_cls_dump_state (PdvDev *pdv_p)
 Prints the board state to stdout.
void pdv_cls_dump_geometry (PdvDev *pdv_p)
 Prints board geometry only to stdout.
int pdv_cls_set_dep (PdvDev *pdv_p)
 Initializes simulator values based on PdvDependent structure in pdv_p.
int pdv_cls_dep_sanity_check (PdvDev *pdv_p)
 Checks for inconsistencies in the configuration (stub).
void pdv_cls_set_size (PdvDev *pdv_p, int taps, int depth, int width, int height, int hblank, int totalwidth, int vblank, int totalheight)
 Set the width and height of the simulator frame.
void pdv_cls_set_line_timing (PdvDev *pdv_p, int width, int taps, int Hfvstart, int Hfvend, int Hlvstart, int Hlvend, int Hrvstart, int Hrvend)
 Set the values for frame valid (FVAL), line valid (LVAL), and read valid (RVAL) timing.
void pdv_cls_set_linescan (PdvDev *pdv_p, int state)
 When set, once the start-of-frame conditions are met, the simulator runs forever, emulating a linescan camera (as if the total vertical active and total vertical count maximum were set to infinity.
void pdv_cls_set_lvcont (PdvDev *pdv_p, int state)
 Enables / disables line valid timing during vertical blanking.
void pdv_cls_set_rven (PdvDev *pdv_p, int state)
 Enables or disables ReadValid Enable (RVEN).
void pdv_cls_set_uartloop (PdvDev *pdv_p, int state)
 Enables or disables UART looping (echo) of serial data.
void pdv_cls_set_smallok (PdvDev *pdv_p, int state)
 Sets simulator FIFO for small (less than 16KB) images.
void pdv_cls_set_intlven (PdvDev *pdv_p, int state)
 Enables or disables four-tap interleaving.
void pdv_cls_set_firstfc (PdvDev *pdv_p, int state)
 Enables / disables frame count in the first word of each frame.
void pdv_cls_set_datacnt (PdvDev *pdv_p, int state)
 Enables / disables internal image data generation.
void pdv_cls_set_led (PdvDev *pdv_p, int state)
 Controls state of the board's green LED.
void pdv_cls_set_trigsrc (PdvDev *pdv_p, int state)
 Sets XXX state bit.
void pdv_cls_set_trigpol (PdvDev *pdv_p, int state)
 Sets the trigger polariry.
void pdv_cls_set_trigframe (PdvDev *pdv_p, int state)
 Sets XXX state bit.
void pdv_cls_set_trigline (PdvDev *pdv_p, int state)
 Sets XXX state bit.
void pdv_cls_sim_start (PdvDev *pdv_p)
 Sets XXX state bit.
void pdv_cls_sim_stop (PdvDev *pdv_p)
 Sets XXX state bit.
void pdv_cls_init_serial (PdvDev *pdv_p)
void pdv_cls_set_height (PdvDev *pdv_p, int rasterlines, int vblank)
void pdv_cls_set_width (PdvDev *pdv_p, int width, int hblank)
void pdv_cls_set_clock (EdtDev *edt_p, double freq)
 Set MPC9230 PLL on PCI CD-CLSIM to 3.5 times the requested pixclk freq.
void pdv_cls_set_fill (PdvDev *pdv_p, u_char left, u_char right)
 Sets the left and right fill values when READVAL is set.
void pdv_cls_set_readvalid (PdvDev *pdv_p, u_short HrvStart, u_short HrvEnd)
 Sets the horizontal start and end positions of the ReadValid signal.
void pdv_cls_setup_interleave (PdvDev *pdv_p, short tap0start, short tap0delta, short tap1start, short tap1delta, short tap2start, short tap2delta, short tap3start, short tap3delta)
 Sets the start address and delta for each tap.
int pdv_cls_get_vgap (PdvDev *pdv_p)
 Computes the vertical gap value based on the difference between active lines(vblank) and the total lines.
int pdv_cls_get_hgap (PdvDev *pdv_p)
 Computes the horizontal gap value based on the difference between active clocks (hblank) and the total clocks.
double pdv_cls_frame_time (PdvDev *pdv_p)
 Computes and returns the frame time in milliseconds.


Generated on Mon Mar 21 14:14:57 2011 by  doxygen 1.4.7