Apply .gitattributes normalization to convert all CRLF line endings inherited from Windows-origin source files to Unix LF. 175 files, zero content changes.
127 lines
4.6 KiB
C
127 lines
4.6 KiB
C
/*****************************************************************************
|
|
Company : Shree Ganesha Inc.
|
|
File Name : SkyWalker1Control.cpp
|
|
Author :
|
|
Date :
|
|
Purpose : This File Holds the Device Control related declarations
|
|
|
|
Revision History:
|
|
===============================================================================
|
|
DATE VERSION AUTHOR REMARK
|
|
===============================================================================
|
|
|
|
XXth April,2009 01 Initial Version
|
|
|
|
*****************************************************************************/
|
|
|
|
#ifndef __SKYWALKER1_CONTROL_H
|
|
#define __SKYWALKER1_CONTROL_H
|
|
|
|
/* Include the Library and Other header file */
|
|
/* End of Inclusion the Library and Other header file */
|
|
|
|
/* Macro Definitions */
|
|
|
|
/* gp8psk commands */
|
|
|
|
/* Twinhan Vendor requests */
|
|
#define TH_COMMAND_IN 0xC0
|
|
#define TH_COMMAND_OUT 0xC1
|
|
|
|
/* gp8psk commands */
|
|
|
|
#define GET_8PSK_CONFIG 0x80 /* in */
|
|
#define SET_8PSK_CONFIG 0x81
|
|
#define I2C_WRITE 0x83
|
|
#define I2C_READ 0x84
|
|
#define ARM_TRANSFER 0x85
|
|
#define TUNE_8PSK 0x86
|
|
#define GET_SIGNAL_STRENGTH 0x87 /* in */
|
|
#define LOAD_BCM4500 0x88
|
|
#define BOOT_8PSK 0x89 /* in */
|
|
#define START_INTERSIL 0x8A /* in */
|
|
#define SET_LNB_VOLTAGE 0x8B
|
|
#define SET_22KHZ_TONE 0x8C
|
|
#define SEND_DISEQC_COMMAND 0x8D
|
|
#define SET_DVB_MODE 0x8E
|
|
#define SET_DN_SWITCH 0x8F
|
|
#define GET_SIGNAL_LOCK 0x90 /* in */
|
|
#define GET_SERIAL_NUMBER 0x93 /* in */
|
|
#define USE_EXTRA_VOLT 0x94
|
|
#define CW3K_INIT 0x9d
|
|
|
|
/* PSK_configuration bits */
|
|
#define bm8pskStarted 0x01
|
|
#define bm8pskFW_Loaded 0x02
|
|
#define bmIntersilOn 0x04
|
|
#define bmDVBmode 0x08
|
|
#define bm22kHz 0x10
|
|
#define bmSEL18V 0x20
|
|
#define bmDCtuned 0x40
|
|
#define bmArmed 0x80
|
|
|
|
/* Satellite modulation modes */
|
|
#define ADV_MOD_DVB_QPSK 0 /* DVB-S QPSK */
|
|
#define ADV_MOD_TURBO_QPSK 1 /* Turbo QPSK */
|
|
#define ADV_MOD_TURBO_8PSK 2 /* Turbo 8PSK (also used for Trellis 8PSK) */
|
|
#define ADV_MOD_TURBO_16QAM 3 /* Turbo 16QAM (also used for Trellis 8PSK) */
|
|
|
|
#define ADV_MOD_DCII_C_QPSK 4 /* Digicipher II Combo */
|
|
#define ADV_MOD_DCII_I_QPSK 5 /* Digicipher II I-stream */
|
|
#define ADV_MOD_DCII_Q_QPSK 6 /* Digicipher II Q-stream */
|
|
#define ADV_MOD_DCII_C_OQPSK 7 /* Digicipher II offset QPSK */
|
|
#define ADV_MOD_DSS_QPSK 8 /* DSS (DIRECTV) QPSK */
|
|
#define ADV_MOD_DVB_BPSK 9 /* DVB-S BPSK */
|
|
|
|
#define GET_USB_SPEED 0x07
|
|
#define USB_SPEED_LOW 0
|
|
#define USB_SPEED_FULL 1
|
|
#define USB_SPEED_HIGH 2
|
|
|
|
#define RESET_FX2 0x13
|
|
|
|
#define FW_VERSION_READ 0x0B
|
|
#define VENDOR_STRING_READ 0x0C
|
|
#define PRODUCT_STRING_READ 0x0D
|
|
#define FW_BCD_VERSION_READ 0x14
|
|
|
|
#define SEC_VOLTAGE_13 0
|
|
#define SEC_VOLTAGE_18 1
|
|
|
|
#define SEC_TONE_ON 0
|
|
#define SEC_TONE_OFF 1
|
|
|
|
#define SWITCH_ON_TUNER 1
|
|
#define SWITCH_OFF_TUNER 0
|
|
/* End of Macro Definitions */
|
|
|
|
/* Global & Static variables Declaration */
|
|
/* End of Global & Static variables Declaration */
|
|
|
|
/* External Variable Declaration */
|
|
/* End of External Variable Declaration */
|
|
|
|
/* Function Prototypes */
|
|
NTSTATUS GetSignalStatus( IN PKSDEVICE pKSDeviceObject,
|
|
OUT PBOOLEAN pbSignalLockStatus
|
|
);
|
|
NTSTATUS ReadTunerSignalStrength( IN PKSDEVICE pKSDeviceObject,
|
|
OUT PULONG pulSigStrength
|
|
);
|
|
NTSTATUS SetLnbVoltage(IN PKSDEVICE pKSDeviceObject,
|
|
IN UCHAR ucVoltage);
|
|
NTSTATUS TuneDevice(IN PKSDEVICE pKSDeviceObject,
|
|
IN PBDATUNER_DEVICE_PARAMETER pDeviceParameter);
|
|
NTSTATUS SetupTunerPower( IN PKSDEVICE pKSDeviceObject,
|
|
IN BOOLEAN bOnOff);
|
|
NTSTATUS SetStreamingControl( IN PKSDEVICE pKSDeviceObject,
|
|
IN UCHAR ucOnOff);
|
|
NTSTATUS SetTunerTone( IN PKSDEVICE pKSDeviceObject,
|
|
IN UCHAR ucTone);
|
|
NTSTATUS ConfigureTuner(IN PKSDEVICE pKSDeviceObject,
|
|
IN PBDATUNER_DEVICE_PARAMETER pNewConfiguration);
|
|
NTSTATUS DiseqcCommand( IN PKSDEVICE pKSDeviceObject,
|
|
IN PDISEQC_COMMAND pCommand);
|
|
/* End of Function prototype definitions */
|
|
|
|
#endif /*__SKYWALKER1_CONTROL_H*/ |