TwiceAsNice  2019-02-18
Public Member Functions | Protected Member Functions | List of all members
DSI::DsiColorII Class Reference

#include <DsiColorII.h>

Inheritance diagram for DSI::DsiColorII:
Inheritance graph
Collaboration diagram for DSI::DsiColorII:
Collaboration graph

Public Member Functions

 DsiColorII (const char *devname=0)
 
 ~DsiColorII ()
 
- Public Member Functions inherited from DSI::Device
 Device (const char *devname=0)
 Initialize a generic (base class) DSI device. More...
 
virtual ~Device ()
 
virtual unsigned int getReadWidth ()
 
virtual unsigned int getReadHeightEven ()
 
virtual unsigned int getReadHeightOdd ()
 
virtual unsigned int getReadHeight ()
 
virtual unsigned int getReadBpp ()
 
virtual unsigned int getImageWidth ()
 
virtual unsigned int getImageHeight ()
 
virtual unsigned int getImageOffsetX ()
 
virtual unsigned int getImageOffsetY ()
 
virtual float getPixelSizeX ()
 
virtual float getPixelSizeY ()
 
virtual bool isColor ()
 
virtual bool isBinnable ()
 
virtual bool hasTempSensor ()
 
virtual float ccdTemp ()
 
virtual void abortExposure ()
 Set the device state to "abort exposure requested." The exposure will not be aborted as soon as possible. More...
 
virtual unsigned int getAdRegister (DSI::AdRegister reg)
 Return the value of the specified A-D register. More...
 
virtual void setAdRegister (DSI::AdRegister reg, unsigned int newval)
 Set the value of the specified A-D register. More...
 
virtual std::string getCcdChipName ()
 Return the CCD chip name for this device. More...
 
virtual std::string getCameraName ()
 
virtual void setCameraName (std::string &)
 
virtual unsigned char * getTestPattern ()
 
virtual unsigned char * getImage ()
 
virtual void setExposureTime (double exptime)
 
virtual double getExposureTime ()
 
virtual unsigned char * downloadImage ()
 
virtual int startExposure (int howlong, int gain=0, int offs=0x0ff)
 
virtual int ExposureInProgress ()
 
virtual unsigned char * ccdFramebuffer ()
 
virtual void set1x1Binning ()
 
virtual void set2x2Binning ()
 
virtual void enable2x2Binning ()
 
virtual void disable2x2Binning ()
 
virtual int getGain ()
 
virtual int setGain (int gain)
 
virtual void setVddOn (bool s)
 
void setDebug (bool turnOn)
 
bool isDebug ()
 

Protected Member Functions

void initImager (const char *devname=0)
 
- Protected Member Functions inherited from DSI::Device
void print_data (std::string command, unsigned char buffer[], size_t length)
 
void loadSerialNumber ()
 Initialize the DSI serial number by reading the EEPROM data. More...
 
void loadCcdChipName ()
 Initialize the CCD chip name by reading the EEPROM data where it is stored. More...
 
void loadStatus ()
 Initialize the internal state to reflect the USB bus speed and whether or not the DSI device has firmware debugging(?) enabled. More...
 
void loadVersion ()
 Initialized DSI device version information. More...
 
void loadEepromLength ()
 
void loadCameraName ()
 
virtual ReadoutMode getReadoutMode ()
 Retrieve the DSI device current readout mode. More...
 
virtual void setReadoutMode (DSI::ReadoutMode rm)
 Set the DSI device readout mode. More...
 
unsigned int command (DeviceCommand __command)
 Internal helper for sending a command to the DSI device. More...
 
unsigned int command (DeviceCommand __command, int __option)
 Internal helper for sending a command to the DSI device. More...
 
unsigned int command (DeviceCommand __command, int __option, int __length)
 Internal helper for sending a command to the DSI device. More...
 
unsigned int command (DeviceCommand __command, int __option, int __length, int __expected)
 Internal helper for sending a command to the DSI device. More...
 
std::string * getString (int __offset, int __length)
 Retrieve a string value from the specified EEPROM region. More...
 
void setString (std::string __value, int __offset, int __length)
 
unsigned int getEepromLength ()
 Retrieve the EEPROM length. More...
 
unsigned char getEepromByte (int __offset)
 Read one byte value from the EEPROM. More...
 
unsigned char * getEepromData (int ___offset, int __length)
 Retrieve a segment of the EEPROM data as a sequence of bytes. More...
 
unsigned char setEepromByte (unsigned char __byte, int __offset)
 
void setEepromData (unsigned char *__buffer, int ___offset, int __length)
 
unsigned int command (unsigned char *__buffer, int __length, int __expected)
 Write a command buffer to the DSI device and decode the return buffer. More...
 
unsigned int getByteResult (unsigned char *__buffer)
 Decode byte 4 of the buffer as an 8-bit unsigned integer. More...
 
unsigned int getShortResult (unsigned char *__buffer)
 Decode bytes 4-5 of the buffer as a 16-bit big-endian unsigned integer. More...
 
unsigned int getIntResult (unsigned char *__buffer)
 Decode bytes 4-7 of the buffer as a 32-bit big-endian unsigned integer. More...
 
virtual unsigned char * getImage (int howlong)
 
virtual unsigned char * getImage (DeviceCommand __command, int howlong)
 
void sendRegister (AdRegister adr, unsigned int arg)
 

Additional Inherited Members

- Protected Attributes inherited from DSI::Device
unsigned char * framebuffer
 
unsigned int read_width
 
unsigned int read_height_even
 
unsigned int read_height_odd
 
unsigned int read_height
 
unsigned int read_bpp
 
unsigned int image_width
 
unsigned int image_height
 
unsigned int image_offset_x
 
unsigned int image_offset_y
 
float pixel_size_x
 
float pixel_size_y
 
unsigned int exposure_time
 
float ccd_temp
 
bool test_pattern
 
bool is_color
 
bool is_high_gain
 
bool is_binnable
 
bool has_tempsensor
 
bool vdd_on
 
double aspect_ratio
 
libusb_device * dev
 
libusb_device_handlehandle
 
unsigned char command_sequence_number
 
ReadoutMode readout_mode
 
UsbSpeed usb_speed
 
bool firmware_debug
 
bool binning2x2
 
unsigned int dsi_family
 
unsigned int dsi_model
 
unsigned int dsi_firmware_version
 
unsigned int dsi_firmware_revision
 
unsigned long long serial_number
 
std::string ccd_chip_name
 
bool abort_requested
 
unsigned int timeout_response
 
unsigned int timeout_request
 
unsigned int timeout_image
 
- Static Protected Attributes inherited from DSI::Device
static const unsigned int TIMEOUT_FULL_MAX_IMAGE = 0x1770
 
static const unsigned int TIMEOUT_HIGH_MAX_IMAGE = 0x0fa0
 
static const unsigned int TIMEOUT_FULL_MAX_RESPONSE = 0x03e8
 
static const unsigned int TIMEOUT_HIGH_MAX_RESPONSE = 0x03e8
 
static const unsigned int TIMEOUT_FULL_MAX_REQUEST = 0x03e8
 
static const unsigned int TIMEOUT_HIGH_MAX_REQUEST = 0x03e8
 

Constructor & Destructor Documentation

◆ DsiColorII()

DsiColorII::DsiColorII ( const char *  devname = 0)

◆ ~DsiColorII()

DsiColorII::~DsiColorII ( )

Member Function Documentation

◆ initImager()

void DsiColorII::initImager ( const char *  devname = 0)
protectedvirtual

Reimplemented from DSI::Device.


The documentation for this class was generated from the following files: