areaDetector  3-13
EPICS areaDetector framework
Macros | Enumerations | Functions
ADSpinnaker.cpp File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <set>
#include <string>
#include <epicsEvent.h>
#include <epicsTime.h>
#include <epicsThread.h>
#include <epicsMessageQueue.h>
#include <iocsh.h>
#include <cantProceed.h>
#include <epicsString.h>
#include <epicsExit.h>
#include "Spinnaker.h"
#include "SpinGenApi/SpinnakerGenApi.h"
#include <ADGenICam.h>
#include <epicsExport.h>
#include "SPFeature.h"
#include "ADSpinnaker.h"

Macros

#define DRIVER_VERSION   3
 
#define DRIVER_REVISION   5
 
#define DRIVER_MODIFICATION   0
 
#define CALLBACK_MESSAGE_QUEUE_SIZE   100
 

Enumerations

enum  SPPixelConvert_t {
  SPPixelConvertNone , SPPixelConvertMono8 , SPPixelConvertMono16 , SPPixelConvertRaw16 ,
  SPPixelConvertRGB8 , SPPixelConvertRGB16
}
 
enum  SPTimeStamp_t { TimeStampCamera , TimeStampEPICS }
 
enum  SPUniqueId_t { UniqueIdCamera , UniqueIdDriver }
 

Functions

int ADSpinnakerConfig (const char *portName, int cameraId, int numSPBuffers, size_t maxMemory, int priority, int stackSize)
 Configuration function to configure one camera. More...
 
 epicsExportRegistrar (ADSpinnakerRegister)
 

Macro Definition Documentation

◆ CALLBACK_MESSAGE_QUEUE_SIZE

#define CALLBACK_MESSAGE_QUEUE_SIZE   100

◆ DRIVER_MODIFICATION

#define DRIVER_MODIFICATION   0

◆ DRIVER_REVISION

#define DRIVER_REVISION   5

◆ DRIVER_VERSION

#define DRIVER_VERSION   3

Enumeration Type Documentation

◆ SPPixelConvert_t

Enumerator
SPPixelConvertNone 
SPPixelConvertMono8 
SPPixelConvertMono16 
SPPixelConvertRaw16 
SPPixelConvertRGB8 
SPPixelConvertRGB16 

◆ SPTimeStamp_t

Enumerator
TimeStampCamera 
TimeStampEPICS 

◆ SPUniqueId_t

Enumerator
UniqueIdCamera 
UniqueIdDriver 

Function Documentation

◆ ADSpinnakerConfig()

int ADSpinnakerConfig ( const char *  portName,
int  cameraId,
int  numSPBuffers,
size_t  maxMemory,
int  priority,
int  stackSize 
)

Configuration function to configure one camera.

This function need to be called once for each camera to be used by the IOC. A call to this function instantiates one object from the ADSpinnaker class.

Parameters
[in]portNameasyn port name to assign to the camera.
[in]cameraIdThe camera index or serial number; <1000 is assumed to be index, >=1000 is assumed to be serial number.
[in]numSPBuffersThe number of TransportLayer buffers to allocate in Spinnaker. If set to 0 or omitted the default of 100 will be used.
[in]maxMemoryMaximum memory (in bytes) that this driver is allowed to allocate. 0=unlimited.
[in]priorityThe EPICS thread priority for this driver. 0=use asyn default.
[in]stackSizeThe size of the stack for the EPICS port thread. 0=use asyn default.

◆ epicsExportRegistrar()

epicsExportRegistrar ( ADSpinnakerRegister  )