kstars
ApogeeUsbLinuxForKernel.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 "ApogeeUsb.h"
#include "ApogeeUsbErr.h"
#include "ApogeeLinux.h"

Go to the source code of this file.
Defines | |
#define | APOGEE_USB_DEVICE "/dev/usb/alta" |
#define | BOOLEAN unsigned int |
#define | HANDLE unsigned int |
#define | IMAGE_BUFFER_SIZE 126976 |
#define | INVALID_HANDLE_VALUE -1 |
#define | ULONG unsigned int |
#define | USHORT unsigned short |
Functions | |
APN_USB_TYPE | ApnUsbClose (void) |
APN_USB_TYPE | ApnUsbDiscovery (unsigned short *UsbCamCount, APN_USB_CAMINFO UsbCamInfo[]) |
APN_USB_TYPE | ApnUsbGetImage (unsigned short *pMem) |
APN_USB_TYPE | ApnUsbOpen (unsigned short DevNumber) |
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) |
APN_USB_TYPE | OrigApnUsbGetImage (unsigned short *pMem) |
Variables | |
HANDLE | g_hSysDriver |
ULONG | g_UsbImgSizeBytes |
Define Documentation
#define APOGEE_USB_DEVICE "/dev/usb/alta" |
Definition at line 28 of file ApogeeUsbLinuxForKernel.cpp.
#define BOOLEAN unsigned int |
Definition at line 25 of file ApogeeUsbLinuxForKernel.cpp.
#define HANDLE unsigned int |
Definition at line 23 of file ApogeeUsbLinuxForKernel.cpp.
#define IMAGE_BUFFER_SIZE 126976 |
Definition at line 43 of file ApogeeUsbLinuxForKernel.cpp.
#define INVALID_HANDLE_VALUE -1 |
Definition at line 29 of file ApogeeUsbLinuxForKernel.cpp.
#define ULONG unsigned int |
Definition at line 24 of file ApogeeUsbLinuxForKernel.cpp.
#define USHORT unsigned short |
Definition at line 26 of file ApogeeUsbLinuxForKernel.cpp.
Function Documentation
APN_USB_TYPE ApnUsbClose | ( | void | ) |
Definition at line 69 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbDiscovery | ( | unsigned short * | UsbCamCount, | |
APN_USB_CAMINFO | UsbCamInfo[] | |||
) |
Definition at line 81 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbGetImage | ( | unsigned short * | pMem | ) |
Definition at line 387 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbOpen | ( | unsigned short | DevNumber | ) |
Definition at line 48 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbReadReg | ( | unsigned short | FpgaReg, | |
unsigned short * | FpgaData | |||
) |
Definition at line 132 of file ApogeeUsbLinuxForKernel.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 216 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbReset | ( | ) |
Definition at line 445 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbStartExp | ( | unsigned short | ImageWidth, | |
unsigned short | ImageHeight | |||
) |
Definition at line 256 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbStopExp | ( | bool | DigitizeData | ) |
Definition at line 292 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbWriteReg | ( | unsigned short | FpgaReg, | |
unsigned short | FpgaData | |||
) |
Definition at line 162 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbWriteRegMulti | ( | unsigned short | FpgaReg, | |
unsigned short | FpgaData[], | |||
unsigned short | RegCount | |||
) |
Definition at line 183 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE ApnUsbWriteRegMultiMRMD | ( | unsigned short | FpgaReg[], | |
unsigned short | FpgaData[], | |||
unsigned short | RegCount | |||
) |
Definition at line 198 of file ApogeeUsbLinuxForKernel.cpp.
APN_USB_TYPE OrigApnUsbGetImage | ( | unsigned short * | pMem | ) |
Definition at line 321 of file ApogeeUsbLinuxForKernel.cpp.
Variable Documentation
HANDLE g_hSysDriver |
Definition at line 33 of file ApogeeUsbLinuxForKernel.cpp.
ULONG g_UsbImgSizeBytes |
Definition at line 34 of file ApogeeUsbLinuxForKernel.cpp.