Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
vp7045.h File Reference
#include "dvb-usb.h"

Go to the source code of this file.

Macros

#define DVB_USB_LOG_PREFIX   "vp7045"
 
#define TH_COMMAND_IN   0xC0
 
#define TH_COMMAND_OUT   0xC1
 
#define TUNER_REG_READ   0x03
 
#define TUNER_REG_WRITE   0x04
 
#define RC_VAL_READ   0x05
 
#define RC_NO_KEY   0x44
 
#define SET_TUNER_POWER   0x06
 
#define CHECK_TUNER_POWER   0x12
 
#define Tuner_Power_ON   1
 
#define Tuner_Power_OFF   0
 
#define GET_USB_SPEED   0x07
 
#define LOCK_TUNER_COMMAND   0x09
 
#define TUNER_SIGNAL_READ   0x0A
 
#define SET_EE_VALUE   0x10
 
#define GET_EE_VALUE   0x11
 
#define FX2_ID_ADDR   0x00
 
#define VID_MSB_ADDR   0x02
 
#define VID_LSB_ADDR   0x01
 
#define PID_MSB_ADDR   0x04
 
#define PID_LSB_ADDR   0x03
 
#define MAC_0_ADDR   0x07
 
#define MAC_1_ADDR   0x08
 
#define MAC_2_ADDR   0x09
 
#define MAC_3_ADDR   0x0a
 
#define MAC_4_ADDR   0x0b
 
#define MAC_5_ADDR   0x0c
 
#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
 

Functions

struct dvb_frontendvp7045_fe_attach (struct dvb_usb_device *d)
 
int vp7045_usb_op (struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int msec)
 
u8 vp7045_read_reg (struct dvb_usb_device *d, u8 reg)
 

Macro Definition Documentation

#define CHECK_TUNER_POWER   0x12

Definition at line 34 of file vp7045.h.

#define DVB_USB_LOG_PREFIX   "vp7045"

Definition at line 17 of file vp7045.h.

#define FW_BCD_VERSION_READ   0x14

Definition at line 64 of file vp7045.h.

#define FW_VERSION_READ   0x0B

Definition at line 61 of file vp7045.h.

#define FX2_ID_ADDR   0x00

Definition at line 47 of file vp7045.h.

#define GET_EE_VALUE   0x11

Definition at line 46 of file vp7045.h.

#define GET_USB_SPEED   0x07

Definition at line 38 of file vp7045.h.

#define LOCK_TUNER_COMMAND   0x09

Definition at line 40 of file vp7045.h.

#define MAC_0_ADDR   0x07

Definition at line 52 of file vp7045.h.

#define MAC_1_ADDR   0x08

Definition at line 53 of file vp7045.h.

#define MAC_2_ADDR   0x09

Definition at line 54 of file vp7045.h.

#define MAC_3_ADDR   0x0a

Definition at line 55 of file vp7045.h.

#define MAC_4_ADDR   0x0b

Definition at line 56 of file vp7045.h.

#define MAC_5_ADDR   0x0c

Definition at line 57 of file vp7045.h.

#define PID_LSB_ADDR   0x03

Definition at line 51 of file vp7045.h.

#define PID_MSB_ADDR   0x04

Definition at line 50 of file vp7045.h.

#define PRODUCT_STRING_READ   0x0D

Definition at line 63 of file vp7045.h.

#define RC_NO_KEY   0x44

Definition at line 31 of file vp7045.h.

#define RC_VAL_READ   0x05

Definition at line 30 of file vp7045.h.

#define RESET_FX2   0x13

Definition at line 59 of file vp7045.h.

#define SET_EE_VALUE   0x10

Definition at line 45 of file vp7045.h.

#define SET_TUNER_POWER   0x06

Definition at line 33 of file vp7045.h.

#define TH_COMMAND_IN   0xC0

Definition at line 23 of file vp7045.h.

#define TH_COMMAND_OUT   0xC1

Definition at line 24 of file vp7045.h.

#define Tuner_Power_OFF   0

Definition at line 36 of file vp7045.h.

#define Tuner_Power_ON   1

Definition at line 35 of file vp7045.h.

#define TUNER_REG_READ   0x03

Definition at line 27 of file vp7045.h.

#define TUNER_REG_WRITE   0x04

Definition at line 28 of file vp7045.h.

#define TUNER_SIGNAL_READ   0x0A

Definition at line 42 of file vp7045.h.

#define VENDOR_STRING_READ   0x0C

Definition at line 62 of file vp7045.h.

#define VID_LSB_ADDR   0x01

Definition at line 49 of file vp7045.h.

#define VID_MSB_ADDR   0x02

Definition at line 48 of file vp7045.h.

Function Documentation

struct dvb_frontend* vp7045_fe_attach ( struct dvb_usb_device d)
read

Definition at line 144 of file vp7045-fe.c.

u8 vp7045_read_reg ( struct dvb_usb_device d,
u8  reg 
)

Definition at line 84 of file vp7045.c.

int vp7045_usb_op ( struct dvb_usb_device d,
u8  cmd,
u8 out,
int  outlen,
u8 in,
int  inlen,
int  msec 
)

Definition at line 28 of file vp7045.c.