API
ocam2_pvt.h
Go to the documentation of this file.
1 /** -- FIRSTLIGHT --
2  \file ocam2_pvt.h
3 
4  \brief Private definition for libocam2sdk
5 
6  \author FIRSTLIGHT
7 
8 */
9 
10 
11 #ifndef OCAM2_PVT_H
12 #define OCAM2_PVT_H
13 
14 #define BIASFLAT_BUFFER_SIZE (128*1024) /* 128KBytes */
15 #define BIASFLAT_TRANSMISSION_BUFFER_SIZE (BIASFLAT_BUFFER_SIZE+4) /* bias/flat buffer + checksum(4) */
16 /* The buffer size for transmitting the Bias/Flat image, 16-bit pixels (=65538) */
17 #define BIASFLAT_TRANSMISSION_BUFFER_SIZE_USHORT (BIASFLAT_TRANSMISSION_BUFFER_SIZE/sizeof(unsigned short))
18 
19 #define NB_AMPLIFIER 8
20 /* Pixels per amplifier, including overscan. (==7986=66*121) */
21 #define PIXELS_PER_AMPLIFIER_NORMAL (OCAM2_PIXELS_RAW_NORMAL/NB_AMPLIFIER)
22 /* Pixels per amplifier, including overscan. (==4092=66*62) */
23 #define PIXELS_PER_AMPLIFIER_BINNING (OCAM2_PIXELS_RAW_BINNING/NB_AMPLIFIER)
24 
25 typedef enum
26 {
30 
32 
33 typedef enum
34 {
36  OCAM2_FLAT=1
37 
39 
40 /* SDK per camera information */
41 typedef void (*ocam2_descramble_func_t)(unsigned int *number, short *image, const short *imageRaw);
42 
43 typedef struct ocam2_camInfo {
47  short *imgBiasFlat;
49  unsigned short *biasFlatBufferTx;
51  void *p; /* User private data */
52 
53 
55 
56 
57 
58 void ocam2_printf(ocam2_printf_sev severity, const char * format, ...);
60 int ocam2_fsize(FILE *fp);
61 
62 #endif // OCAM2_PVT_H
void(* ocam2_descramble_func_t)(unsigned int *number, short *image, const short *imageRaw)
Definition: ocam2_pvt.h:41
short * imgBiasFlat
Definition: ocam2_pvt.h:47
int ocam2_isIdValid(ocam2_id id)
Definition: ocam2_sdk.c:60
short * imgBiasFlatRaw
Definition: ocam2_pvt.h:48
ocam2_printf_sev
Definition: ocam2_pvt.h:26
@ OCAM2_SEV_INFO
Definition: ocam2_pvt.h:27
@ OCAM2_SEV_ERROR
Definition: ocam2_pvt.h:29
@ OCAM2_SEV_WARNING
Definition: ocam2_pvt.h:28
ocam2_descramble_func_t pfuncDescrbl
Definition: ocam2_pvt.h:46
ocam2_serialOut_func_t cbSerialOut
Definition: ocam2_pvt.h:50
struct ocam2_camInfo ocam2_camInfo
int ocam2_fsize(FILE *fp)
Definition: ocam2_sdk.c:122
void ocam2_printf(ocam2_printf_sev severity, const char *format,...)
Definition: ocam2_sdk.c:44
ocam2_mode mode
Definition: ocam2_pvt.h:45
unsigned short * biasFlatBufferTx
Definition: ocam2_pvt.h:49
ocam2_ImgType
Definition: ocam2_pvt.h:34
@ OCAM2_FLAT
Definition: ocam2_pvt.h:36
@ OCAM2_BIAS
Definition: ocam2_pvt.h:35
ocam2_camFirmVer camVer
Definition: ocam2_pvt.h:44
void * p
Definition: ocam2_pvt.h:51
int ocam2_id
Library camera identifier.
Definition: ocam2_sdk.h:268
ocam2_camFirmVer
Camera firmware release For firmware build date before 18/03/2015, use OCAM2_FIRM_V1 else OCAM2_FIRM_...
Definition: ocam2_sdk.h:279
enum workMode ocam2_mode
typedef of ocam2 camera mode
void(* ocam2_serialOut_func_t)(void *p, const char *buffer, int number)
Callback used to send characters to the serial port.
Definition: ocam2_sdk.h:365