-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpcousb.h
More file actions
68 lines (57 loc) · 2 KB
/
pcousb.h
File metadata and controls
68 lines (57 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ifndef _PCOUSB_H_
#define _PCOUSB_H_
#ifdef __cplusplus
extern "C"
{
#endif
#include "pco.h"
#include "pco/include/usb/defs.h"
#include "pco/include/usb/sc2_defs.h"
#include "pco/include/usb/PCO_err.h"
/**
* Get the number of ADCs in the camera sensor.
* @param pco handle
* @param nr_adcs output the number of ADCs
* @return 0 on success, otherwise less than 0
*/
unsigned int pco_get_nr_adcs(pco_handle *pco, uint16_t *nr_adcs);
/**
* Get the number of ADCs in use.
* @param pco handle
* @param mode output the number of ADCs
* @return 0 on success, otherwise less than 0
*/
unsigned int pco_get_adc_mode(pco_handle *pco, uint16_t *mode);
/**
* Set the number of ADCs to use.
* @param pco handle
* @param mode the number of ADCs
* @return 0 on success, otherwise less than 0
*/
unsigned int pco_set_adc_mode(pco_handle *pco, uint16_t mode);
/**
* Get the number of triggered frames. This function may not be reliably fast for some applications.
* @param pco handle
* @param count output the number of triggered frames
* @return 0 on success, otherwise less than 0
*/
unsigned int pco_get_trigger_count(pco_handle *pco, uint32_t *count);
/**
* Non-blocking image acquisition call to the pco.camera SDK with grabber-configured timeout.
* @param pco handle
* @param adr external buffer to write image data
* @return 0 on success, otherwise less than 0
*/
uint32_t pco_acquire_image_async(pco_handle *pco, void *adr);
/**
* Non-blocking image acquisition call to the pco.camera SDK.
* @param pco handle
* @param adr external buffer to write image data
* @param timeout the number of milliseconds to wait before an error is produced
* @return 0 on success, otherwise less than 0
*/
uint32_t pco_acquire_image_async_ex(pco_handle *pco, void *adr, int timeout);
#ifdef __cplusplus
}
#endif /*__cplusplus*/
#endif /* _PCOUSB_H_ */