/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to ipecamera/model.h

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-08 02:47:23 UTC
  • Revision ID: csa@dside.dyndns.org-20111208024723-ym9uf3uoll6ym2a9
new event architecture, first trial

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 
11
11
#define IPECAMERA_DMA_R3
12
12
#define IPECAMERA_DMA_ADDRESS 1
13
 
#define IPECAMERA_DMA_PACKET_LENGTH 4096 
 
13
#define IPECAMERA_DMA_PACKET_LENGTH 4096
14
14
 
15
15
//#define IPECAMERA_REGISTER_SPACE 0xfeaffc00
16
16
#define IPECAMERA_REGISTER_SPACE 0x9000
96
96
};
97
97
 
98
98
pcilib_event_description_t ipecamera_events[] = {
99
 
    {"new_frame", ""},
100
 
    {NULL, NULL}
 
99
    {PCILIB_EVENT0, "new_frame", ""},
 
100
    {0, NULL, NULL}
 
101
};
 
102
 
 
103
pcilib_event_data_type_description_t ipecamera_data_types[] = {
 
104
    {IPECAMERA_IMAGE_DATA, PCILIB_EVENT0, "image", "16 bit pixel data" },
 
105
    {IPECAMERA_RAW_DATA, PCILIB_EVENT0, "raw", "raw data from camera" },
 
106
    {0, 0, NULL, NULL}
101
107
};
102
108
 
103
109
#else
105
111
extern pcilib_register_bank_description_t ipecamera_register_banks[];
106
112
extern pcilib_register_range_t ipecamera_register_ranges[];
107
113
extern pcilib_event_description_t ipecamera_events[];
 
114
extern pcilib_event_data_type_description_t ipecamera_data_types[];
108
115
#endif 
109
116
 
110
117
#ifdef _IPECAMERA_IMAGE_C
117
124
    ipecamera_stop,
118
125
    ipecamera_trigger,
119
126
    
120
 
    ipecamera_next_event,
 
127
    ipecamera_stream,
 
128
    NULL, //ipecamera_next_event,
121
129
    ipecamera_get,
122
130
    ipecamera_return,
123
131
    ipecamera_init_dma