API
ocam2_pvt.h File Reference

Private definition for libocam2sdk. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ocam2_camInfo
 

Macros

#define BIASFLAT_BUFFER_SIZE   (128*1024) /* 128KBytes */
 
#define BIASFLAT_TRANSMISSION_BUFFER_SIZE   (BIASFLAT_BUFFER_SIZE+4) /* bias/flat buffer + checksum(4) */
 
#define BIASFLAT_TRANSMISSION_BUFFER_SIZE_USHORT   (BIASFLAT_TRANSMISSION_BUFFER_SIZE/sizeof(unsigned short))
 
#define NB_AMPLIFIER   8
 
#define PIXELS_PER_AMPLIFIER_NORMAL   (OCAM2_PIXELS_RAW_NORMAL/NB_AMPLIFIER)
 
#define PIXELS_PER_AMPLIFIER_BINNING   (OCAM2_PIXELS_RAW_BINNING/NB_AMPLIFIER)
 

Typedefs

typedef void(* ocam2_descramble_func_t) (unsigned int *number, short *image, const short *imageRaw)
 
typedef struct ocam2_camInfo ocam2_camInfo
 

Enumerations

enum  ocam2_printf_sev { OCAM2_SEV_INFO =0 , OCAM2_SEV_WARNING =1 , OCAM2_SEV_ERROR =2 }
 
enum  ocam2_ImgType { OCAM2_BIAS =0 , OCAM2_FLAT =1 }
 

Functions

void ocam2_printf (ocam2_printf_sev severity, const char *format,...)
 
int ocam2_isIdValid (ocam2_id id)
 
int ocam2_fsize (FILE *fp)
 

Detailed Description

Private definition for libocam2sdk.

– FIRSTLIGHT –

Author
FIRSTLIGHT

Definition in file ocam2_pvt.h.


Class Documentation

◆ ocam2_camInfo

struct ocam2_camInfo

Definition at line 43 of file ocam2_pvt.h.

Collaboration diagram for ocam2_camInfo:
Collaboration graph
Class Members
unsigned short * biasFlatBufferTx
ocam2_camFirmVer camVer
ocam2_serialOut_func_t cbSerialOut
short * imgBiasFlat
short * imgBiasFlatRaw
ocam2_mode mode
void * p
ocam2_descramble_func_t pfuncDescrbl

Macro Definition Documentation

◆ BIASFLAT_BUFFER_SIZE

#define BIASFLAT_BUFFER_SIZE   (128*1024) /* 128KBytes */

Definition at line 14 of file ocam2_pvt.h.

◆ BIASFLAT_TRANSMISSION_BUFFER_SIZE

#define BIASFLAT_TRANSMISSION_BUFFER_SIZE   (BIASFLAT_BUFFER_SIZE+4) /* bias/flat buffer + checksum(4) */

Definition at line 15 of file ocam2_pvt.h.

◆ BIASFLAT_TRANSMISSION_BUFFER_SIZE_USHORT

#define BIASFLAT_TRANSMISSION_BUFFER_SIZE_USHORT   (BIASFLAT_TRANSMISSION_BUFFER_SIZE/sizeof(unsigned short))

Definition at line 17 of file ocam2_pvt.h.

◆ NB_AMPLIFIER

#define NB_AMPLIFIER   8

Definition at line 19 of file ocam2_pvt.h.

◆ PIXELS_PER_AMPLIFIER_BINNING

#define PIXELS_PER_AMPLIFIER_BINNING   (OCAM2_PIXELS_RAW_BINNING/NB_AMPLIFIER)

Definition at line 23 of file ocam2_pvt.h.

◆ PIXELS_PER_AMPLIFIER_NORMAL

#define PIXELS_PER_AMPLIFIER_NORMAL   (OCAM2_PIXELS_RAW_NORMAL/NB_AMPLIFIER)

Definition at line 21 of file ocam2_pvt.h.

Typedef Documentation

◆ ocam2_camInfo

typedef struct ocam2_camInfo ocam2_camInfo

◆ ocam2_descramble_func_t

typedef void(* ocam2_descramble_func_t) (unsigned int *number, short *image, const short *imageRaw)

Definition at line 41 of file ocam2_pvt.h.

Enumeration Type Documentation

◆ ocam2_ImgType

Enumerator
OCAM2_BIAS 
OCAM2_FLAT 

Definition at line 33 of file ocam2_pvt.h.

◆ ocam2_printf_sev

Enumerator
OCAM2_SEV_INFO 
OCAM2_SEV_WARNING 
OCAM2_SEV_ERROR 

Definition at line 25 of file ocam2_pvt.h.

Function Documentation

◆ ocam2_fsize()

int ocam2_fsize ( FILE *  fp)

Definition at line 122 of file ocam2_sdk.c.

Referenced by ocam2_fillDescrblTab().

◆ ocam2_isIdValid()

int ocam2_isIdValid ( ocam2_id  id)

Definition at line 60 of file ocam2_sdk.c.

Referenced by ocam2_descramble(), ocam2_exit(), and ocam2_getMode().

◆ ocam2_printf()

void ocam2_printf ( ocam2_printf_sev  severity,
const char *  format,
  ... 
)

Definition at line 44 of file ocam2_sdk.c.

Referenced by ocam2_fillDescrblTab().