/alps/ipecamera

To get this branch, use:
bzr branch http://darksoft.org/webbzr/alps/ipecamera

« back to all changes in this revision

Viewing changes to ipecamera/private.h

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-12 14:27:13 UTC
  • Revision ID: csa@dside.dyndns.org-20111212142713-xwpcvv6j5d3zmnvx
Minor fixes and improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
#define IPECAMERA_BUG_MULTIFRAME_PACKETS
8
8
#define IPECAMERA_BUG_INCOMPLETE_PACKETS
9
9
 
10
 
#define IPECAMERA_DEFAULT_BUFFER_SIZE 64        //**< should be power of 2 */
 
10
#define IPECAMERA_DEFAULT_BUFFER_SIZE 16//64    //**< should be power of 2 */
11
11
#define IPECAMERA_RESERVE_BUFFERS 2             //**< Return Frame is Lost error, if requested frame will be overwritten after specified number of frames
12
12
#define IPECAMERA_SLEEP_TIME 250000             //**< Michele thinks 250 should be enough, but reset failing in this case */
13
13
#define IPECAMERA_NEXT_FRAME_DELAY 1000         //**< Michele requires 30000 to sync between End Of Readout and next Frame Req */
62
62
    pcilib_event_callback_t cb;
63
63
    void *cb_user;
64
64
 
65
 
    pcilib_event_id_t event_id;
 
65
    volatile pcilib_event_id_t event_id;
66
66
    pcilib_event_id_t preproc_id;
67
67
    pcilib_event_id_t reported_id;
68
68
    
70
70
 
71
71
    pcilib_register_t packet_len_reg;
72
72
    pcilib_register_t control_reg, status_reg;
73
 
    pcilib_register_t start_reg, end_reg;
 
73
    pcilib_register_t status3_reg;
74
74
    pcilib_register_t n_lines_reg;
75
75
    uint16_t line_reg;
76
76
    pcilib_register_t exposure_reg;
87
87
    ipecamera_autostop_t autostop;
88
88
 
89
89
    struct timeval autostop_time;
 
90
    struct timeval next_trigger;        /**< The minimal delay between trigger signals is mandatory, this indicates time when next trigger is possible */
90
91
 
91
92
    size_t buffer_size;         /**< How many images to store */
92
93
    size_t buffer_pos;          /**< Current image offset in the buffer, due to synchronization reasons should not be used outside of reader_thread */