• Skip to content
  • Skip to link menu
KDE 3.5 API Reference
  • KDE API Reference
  • API Reference
  • Sitemap
  • Contact Us
 

kstars

ApogeeUsbLinux.cpp File Reference

#include <assert.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <sys/ioctl.h>
#include <string.h>
#include <sched.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <usb.h>
#include "ApogeeUsb.h"
#include "ApogeeUsbErr.h"
#include "ApogeeLinux.h"

Include dependency graph for ApogeeUsbLinux.cpp:

Go to the source code of this file.


Defines

#define APOGEE_USB_DEVICE   "/dev/usb/alta"
#define BOOLEAN   unsigned int
#define HANDLE   struct usb_dev_handle;
#define IMAGE_BUFFER_SIZE   126976
#define INVALID_HANDLE_VALUE   -1
#define ULONG   unsigned int
#define USB_ALTA_PRODUCT_ID   0x0010
#define USB_ALTA_VENDOR_ID   0x125c
#define USB_DIR_IN   USB_ENDPOINT_IN
#define USB_DIR_OUT   USB_ENDPOINT_OUT
#define USHORT   unsigned short
#define VND_ANCHOR_LOAD_INTERNAL   0xA0
#define VND_APOGEE_BUFCON_REG   ( VND_APOGEE_CMD_BASE + 0x3 )
#define VND_APOGEE_CAMCON_REG   ( VND_APOGEE_CMD_BASE + 0x2 )
#define VND_APOGEE_CMD_BASE   0xC0
#define VND_APOGEE_EEPROM   ( VND_APOGEE_CMD_BASE + 0x6 )
#define VND_APOGEE_GET_IMAGE   ( VND_APOGEE_CMD_BASE + 0x9 )
#define VND_APOGEE_SERIAL   ( VND_APOGEE_CMD_BASE + 0x5 )
#define VND_APOGEE_SET_SERIAL   ( VND_APOGEE_CMD_BASE + 0x4 )
#define VND_APOGEE_SOFT_RESET   ( VND_APOGEE_CMD_BASE + 0x8 )
#define VND_APOGEE_STATUS   ( VND_APOGEE_CMD_BASE + 0x0 )
#define VND_APOGEE_STOP_IMAGE   ( VND_APOGEE_CMD_BASE + 0xA )

Functions

APN_USB_TYPE ApnUsbClose (void)
APN_USB_TYPE ApnUsbGetImage (unsigned short *pMem)
APN_USB_TYPE ApnUsbOpen (unsigned short)
APN_USB_TYPE ApnUsbReadReg (unsigned short FpgaReg, unsigned short *FpgaData)
APN_USB_TYPE ApnUsbReadStatusRegs (unsigned short *StatusReg, unsigned short *HeatsinkTempReg, unsigned short *CcdTempReg, unsigned short *CoolerDriveReg, unsigned short *VoltageReg, unsigned short *TdiCounter, unsigned short *SequenceCounter)
APN_USB_TYPE ApnUsbReset ()
APN_USB_TYPE ApnUsbStartExp (unsigned short ImageWidth, unsigned short ImageHeight)
APN_USB_TYPE ApnUsbStopExp (bool DigitizeData)
APN_USB_TYPE ApnUsbWriteReg (unsigned short FpgaReg, unsigned short FpgaData)
APN_USB_TYPE ApnUsbWriteRegMulti (unsigned short FpgaReg, unsigned short FpgaData[], unsigned short RegCount)
APN_USB_TYPE ApnUsbWriteRegMultiMRMD (unsigned short FpgaReg[], unsigned short FpgaData[], unsigned short RegCount)

Variables

char controlBuffer [1024]
struct usb_dev_handle * g_hSysDriver
ULONG g_UsbImgSizeBytes

Define Documentation

#define APOGEE_USB_DEVICE   "/dev/usb/alta"

Definition at line 29 of file ApogeeUsbLinux.cpp.

#define BOOLEAN   unsigned int

Definition at line 26 of file ApogeeUsbLinux.cpp.

#define HANDLE   struct usb_dev_handle;

Definition at line 24 of file ApogeeUsbLinux.cpp.

#define IMAGE_BUFFER_SIZE   126976

Definition at line 55 of file ApogeeUsbLinux.cpp.

#define INVALID_HANDLE_VALUE   -1

Definition at line 30 of file ApogeeUsbLinux.cpp.

#define ULONG   unsigned int

Definition at line 25 of file ApogeeUsbLinux.cpp.

#define USB_ALTA_PRODUCT_ID   0x0010

Definition at line 45 of file ApogeeUsbLinux.cpp.

#define USB_ALTA_VENDOR_ID   0x125c

Definition at line 44 of file ApogeeUsbLinux.cpp.

#define USB_DIR_IN   USB_ENDPOINT_IN

Definition at line 46 of file ApogeeUsbLinux.cpp.

#define USB_DIR_OUT   USB_ENDPOINT_OUT

Definition at line 47 of file ApogeeUsbLinux.cpp.

#define USHORT   unsigned short

Definition at line 27 of file ApogeeUsbLinux.cpp.

#define VND_ANCHOR_LOAD_INTERNAL   0xA0

Definition at line 32 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_BUFCON_REG   ( VND_APOGEE_CMD_BASE + 0x3 )

Definition at line 36 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_CAMCON_REG   ( VND_APOGEE_CMD_BASE + 0x2 )

Definition at line 35 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_CMD_BASE   0xC0

Definition at line 33 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_EEPROM   ( VND_APOGEE_CMD_BASE + 0x6 )

Definition at line 39 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_GET_IMAGE   ( VND_APOGEE_CMD_BASE + 0x9 )

Definition at line 41 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_SERIAL   ( VND_APOGEE_CMD_BASE + 0x5 )

Definition at line 38 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_SET_SERIAL   ( VND_APOGEE_CMD_BASE + 0x4 )

Definition at line 37 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_SOFT_RESET   ( VND_APOGEE_CMD_BASE + 0x8 )

Definition at line 40 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_STATUS   ( VND_APOGEE_CMD_BASE + 0x0 )

Definition at line 34 of file ApogeeUsbLinux.cpp.

#define VND_APOGEE_STOP_IMAGE   ( VND_APOGEE_CMD_BASE + 0xA )

Definition at line 42 of file ApogeeUsbLinux.cpp.


Function Documentation

APN_USB_TYPE ApnUsbClose ( void   ) 

Definition at line 110 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbGetImage ( unsigned short *  pMem  ) 

Definition at line 296 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbOpen ( unsigned short   ) 

Definition at line 60 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbReadReg ( unsigned short  FpgaReg,
unsigned short *  FpgaData 
)

Definition at line 125 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbReadStatusRegs ( unsigned short *  StatusReg,
unsigned short *  HeatsinkTempReg,
unsigned short *  CcdTempReg,
unsigned short *  CoolerDriveReg,
unsigned short *  VoltageReg,
unsigned short *  TdiCounter,
unsigned short *  SequenceCounter 
)

Definition at line 195 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbReset (  ) 

Definition at line 354 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbStartExp ( unsigned short  ImageWidth,
unsigned short  ImageHeight 
)

Definition at line 233 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbStopExp ( bool  DigitizeData  ) 

Definition at line 270 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbWriteReg ( unsigned short  FpgaReg,
unsigned short  FpgaData 
)

Definition at line 141 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbWriteRegMulti ( unsigned short  FpgaReg,
unsigned short  FpgaData[],
unsigned short  RegCount 
)

Definition at line 161 of file ApogeeUsbLinux.cpp.

APN_USB_TYPE ApnUsbWriteRegMultiMRMD ( unsigned short  FpgaReg[],
unsigned short  FpgaData[],
unsigned short  RegCount 
)

Definition at line 176 of file ApogeeUsbLinux.cpp.


Variable Documentation

char controlBuffer[1024]

Definition at line 53 of file ApogeeUsbLinux.cpp.

struct usb_dev_handle* g_hSysDriver

Definition at line 51 of file ApogeeUsbLinux.cpp.

ULONG g_UsbImgSizeBytes

Definition at line 52 of file ApogeeUsbLinux.cpp.

kstars

Skip menu "kstars"
  • Main Page
  • Modules
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

API Reference

Skip menu "API Reference"
  • keduca
  • kstars
Generated for API Reference by doxygen 1.5.9
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal