📄 dib3000mb_priv.h
字号:
#define DIB3000MB_REG_UNK_106 ( 106)#define DIB3000MB_UNK_106 (0x0080)#define DIB3000MB_REG_UNK_107 ( 107)#define DIB3000MB_UNK_107 (0x0080)#define DIB3000MB_REG_UNK_108 ( 108)#define DIB3000MB_UNK_108 (0x0080)/* fft */#define DIB3000MB_REG_UNK_121 ( 121)#define DIB3000MB_UNK_121_2K ( 7)#define DIB3000MB_UNK_121_DEFAULT ( 5)#define DIB3000MB_REG_UNK_122 ( 122)#define DIB3000MB_UNK_122 ( 2867)/* QAM for mobile mode */#define DIB3000MB_REG_MOBILE_MODE_QAM ( 126)#define DIB3000MB_MOBILE_MODE_QAM_64 ( 3)#define DIB3000MB_MOBILE_MODE_QAM_QPSK_16 ( 1)#define DIB3000MB_MOBILE_MODE_QAM_OFF ( 0)/* * data diversity when having more than one chip on-board * see also DIB3000MB_OUTPUT_MODE_DATA_DIVERSITY */#define DIB3000MB_REG_DATA_IN_DIVERSITY ( 127)#define DIB3000MB_DATA_DIVERSITY_IN_OFF ( 0)#define DIB3000MB_DATA_DIVERSITY_IN_ON ( 2)/* vit hrch */#define DIB3000MB_REG_VIT_HRCH ( 128)/* vit code rate */#define DIB3000MB_REG_VIT_CODE_RATE ( 129)/* vit select hp */#define DIB3000MB_REG_VIT_HP ( 130)/* time frame for Bit-Error-Rate calculation */#define DIB3000MB_REG_BERLEN ( 135)#define DIB3000MB_BERLEN_LONG ( 0)#define DIB3000MB_BERLEN_DEFAULT ( 1)#define DIB3000MB_BERLEN_MEDIUM ( 2)#define DIB3000MB_BERLEN_SHORT ( 3)/* 142 - 152 FIFO parameters * which is what ? */#define DIB3000MB_REG_FIFO_142 ( 142)#define DIB3000MB_FIFO_142 ( 0)/* MPEG2 TS output mode */#define DIB3000MB_REG_MPEG2_OUT_MODE ( 143)#define DIB3000MB_MPEG2_OUT_MODE_204 ( 0)#define DIB3000MB_MPEG2_OUT_MODE_188 ( 1)#define DIB3000MB_REG_PID_PARSE ( 144)#define DIB3000MB_PID_PARSE_INHIBIT ( 0)#define DIB3000MB_PID_PARSE_ACTIVATE ( 1)#define DIB3000MB_REG_FIFO ( 145)#define DIB3000MB_FIFO_INHIBIT ( 1)#define DIB3000MB_FIFO_ACTIVATE ( 0)#define DIB3000MB_REG_FIFO_146 ( 146)#define DIB3000MB_FIFO_146 ( 3)#define DIB3000MB_REG_FIFO_147 ( 147)#define DIB3000MB_FIFO_147 (0x0100)/* * pidfilter * it is not a hardware pidfilter but a filter which drops all pids * except the ones set. Necessary because of the limited USB1.1 bandwidth. * regs 153-168 */#define DIB3000MB_REG_FIRST_PID ( 153)#define DIB3000MB_NUM_PIDS ( 16)/* * output mode * USB devices have to use 'slave'-mode * see also DIB3000MB_REG_ELECT_OUT_MODE */#define DIB3000MB_REG_OUTPUT_MODE ( 169)#define DIB3000MB_OUTPUT_MODE_GATED_CLK ( 0)#define DIB3000MB_OUTPUT_MODE_CONT_CLK ( 1)#define DIB3000MB_OUTPUT_MODE_SERIAL ( 2)#define DIB3000MB_OUTPUT_MODE_DATA_DIVERSITY ( 5)#define DIB3000MB_OUTPUT_MODE_SLAVE ( 6)/* irq event mask */#define DIB3000MB_REG_IRQ_EVENT_MASK ( 170)#define DIB3000MB_IRQ_EVENT_MASK ( 0)/* filter coefficients */static u16 dib3000mb_reg_filter_coeffs[] = { 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 188, 189, 190, 191, 192, 194};static u16 dib3000mb_filter_coeffs[] = { 226, 160, 29, 979, 998, 19, 22, 1019, 1006, 1022, 12, 6, 1017, 1017, 3, 6, 1019, 1021, 2, 3, 1, 0,};/* * mobile algorithm (when you are moving with your device) * but not faster than 90 km/h */#define DIB3000MB_REG_MOBILE_ALGO ( 195)#define DIB3000MB_MOBILE_ALGO_ON ( 0)#define DIB3000MB_MOBILE_ALGO_OFF ( 1)/* multiple demodulators algorithm */#define DIB3000MB_REG_MULTI_DEMOD_MSB ( 206)#define DIB3000MB_REG_MULTI_DEMOD_LSB ( 207)/* terminator, no more demods */#define DIB3000MB_MULTI_DEMOD_MSB ( 32767)#define DIB3000MB_MULTI_DEMOD_LSB ( 4095)/* bring the device into a known */#define DIB3000MB_REG_RESET_DEVICE ( 1024)#define DIB3000MB_RESET_DEVICE (0x812c)#define DIB3000MB_RESET_DEVICE_RST ( 0)/* hardware clock configuration */#define DIB3000MB_REG_CLOCK ( 1027)#define DIB3000MB_CLOCK_DEFAULT (0x9000)#define DIB3000MB_CLOCK_DIVERSITY (0x92b0)/* power down config */#define DIB3000MB_REG_POWER_CONTROL ( 1028)#define DIB3000MB_POWER_DOWN ( 1)#define DIB3000MB_POWER_UP ( 0)/* electrical output mode */#define DIB3000MB_REG_ELECT_OUT_MODE ( 1029)#define DIB3000MB_ELECT_OUT_MODE_OFF ( 0)#define DIB3000MB_ELECT_OUT_MODE_ON ( 1)/* set the tuner i2c address */#define DIB3000MB_REG_TUNER ( 1089)/* monitoring registers (read only) *//* agc loop locked (size: 1) */#define DIB3000MB_REG_AGC_LOCK ( 324)/* agc power (size: 16) */#define DIB3000MB_REG_AGC_POWER ( 325)/* agc1 value (16) */#define DIB3000MB_REG_AGC1_VALUE ( 326)/* agc2 value (16) */#define DIB3000MB_REG_AGC2_VALUE ( 327)/* total RF power (16), can be used for signal strength */#define DIB3000MB_REG_RF_POWER ( 328)/* dds_frequency with offset (24) */#define DIB3000MB_REG_DDS_VALUE_MSB ( 339)#define DIB3000MB_REG_DDS_VALUE_LSB ( 340)/* timing offset signed (24) */#define DIB3000MB_REG_TIMING_OFFSET_MSB ( 341)#define DIB3000MB_REG_TIMING_OFFSET_LSB ( 342)/* fft start position (13) */#define DIB3000MB_REG_FFT_WINDOW_POS ( 353)/* carriers locked (1) */#define DIB3000MB_REG_CARRIER_LOCK ( 355)/* noise power (24) */#define DIB3000MB_REG_NOISE_POWER_MSB ( 372)#define DIB3000MB_REG_NOISE_POWER_LSB ( 373)#define DIB3000MB_REG_MOBILE_NOISE_MSB ( 374)#define DIB3000MB_REG_MOBILE_NOISE_LSB ( 375)/* * signal power (16), this and the above can be * used to calculate the signal/noise - ratio */#define DIB3000MB_REG_SIGNAL_POWER ( 380)/* mer (24) */#define DIB3000MB_REG_MER_MSB ( 381)#define DIB3000MB_REG_MER_LSB ( 382)/* * Transmission Parameter Signalling (TPS) * the following registers can be used to get TPS-information. * The values are according to the DVB-T standard. *//* TPS locked (1) */#define DIB3000MB_REG_TPS_LOCK ( 394)/* QAM from TPS (2) (values according to DIB3000MB_REG_QAM) */#define DIB3000MB_REG_TPS_QAM ( 398)/* hierarchy from TPS (1) */#define DIB3000MB_REG_TPS_HRCH ( 399)/* alpha from TPS (3) (values according to DIB3000MB_REG_VIT_ALPHA) */#define DIB3000MB_REG_TPS_VIT_ALPHA ( 400)/* code rate high priority from TPS (3) (values according to DIB3000MB_FEC_*) */#define DIB3000MB_REG_TPS_CODE_RATE_HP ( 401)/* code rate low priority from TPS (3) if DIB3000MB_REG_TPS_VIT_ALPHA */#define DIB3000MB_REG_TPS_CODE_RATE_LP ( 402)/* guard time from TPS (2) (values according to DIB3000MB_REG_GUARD_TIME */#define DIB3000MB_REG_TPS_GUARD_TIME ( 403)/* fft size from TPS (2) (values according to DIB3000MB_REG_FFT) */#define DIB3000MB_REG_TPS_FFT ( 404)/* cell id from TPS (16) */#define DIB3000MB_REG_TPS_CELL_ID ( 406)/* TPS (68) */#define DIB3000MB_REG_TPS_1 ( 408)#define DIB3000MB_REG_TPS_2 ( 409)#define DIB3000MB_REG_TPS_3 ( 410)#define DIB3000MB_REG_TPS_4 ( 411)#define DIB3000MB_REG_TPS_5 ( 412)/* bit error rate (before RS correction) (21) */#define DIB3000MB_REG_BER_MSB ( 414)#define DIB3000MB_REG_BER_LSB ( 415)/* packet error rate (uncorrected TS packets) (16) */#define DIB3000MB_REG_PACKET_ERROR_RATE ( 417)/* uncorrected packet count (16) */#define DIB3000MB_REG_UNC ( 420)/* viterbi locked (1) */#define DIB3000MB_REG_VIT_LCK ( 421)/* viterbi inidcator (16) */#define DIB3000MB_REG_VIT_INDICATOR ( 422)/* transport stream sync lock (1) */#define DIB3000MB_REG_TS_SYNC_LOCK ( 423)/* transport stream RS lock (1) */#define DIB3000MB_REG_TS_RS_LOCK ( 424)/* lock mask 0 value (1) */#define DIB3000MB_REG_LOCK0_VALUE ( 425)/* lock mask 1 value (1) */#define DIB3000MB_REG_LOCK1_VALUE ( 426)/* lock mask 2 value (1) */#define DIB3000MB_REG_LOCK2_VALUE ( 427)/* interrupt pending for auto search */#define DIB3000MB_REG_AS_IRQ_PENDING ( 434)#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -