5 #include "IT9510Type.h"
19 #define Command_REG_DEMOD_READ 0x0000
20 #define Command_REG_DEMOD_WRITE 0x0001
21 #define Command_REG_TUNER_READ 0x0002
22 #define Command_REG_TUNER_WRITE 0x0003
23 #define Command_REG_EEPROM_READ 0x0004
24 #define Command_REG_EEPROM_WRITE 0x0005
25 #define Command_VAR_READ 0x0008
26 #define Command_VAR_WRITE 0x0009
28 #define Command_DATA_READ 0x0006
30 #define Command_PLATFORM_GET 0x000A
31 #define Command_PLATFORM_SET 0x000B
32 #define Command_IP_CACHE 0x000D
33 #define Command_IP_ADD 0x000E
34 #define Command_IP_REMOVE 0x000F
35 #define Command_PID_ADD 0x0010
36 #define Command_PID_REMOVE 0x0011
37 #define Command_SIPSI_GET 0x0012 /** Get SI/PSI table for specific PID "once". */
38 #define Command_SIPSI_MPE_RESET 0x0013
39 #define Command_H_PID_ADD 0x0015
40 #define Command_H_PID_REMOVE 0x0016
41 #define Command_ABORT 0x0017
42 #define Command_IR_GET 0x0018
43 #define Command_IR_SET 0x0019
44 #define Command_FW_DOWNLOAD_BEGIN 0x0024
45 #define Command_FW_DOWNLOAD 0x0021
46 #define Command_FW_DOWNLOAD_END 0x0025
47 #define Command_QUERYINFO 0x0022
48 #define Command_BOOT 0x0023
49 #define Command_REBOOT 0x0023
50 #define Command_RUN_CODE 0x0026
51 #define Command_SCATTER_READ 0x0028
52 #define Command_SCATTER_WRITE 0x0029
53 #define Command_GENERIC_READ 0x002A
54 #define Command_GENERIC_WRITE 0x002B
55 #define Command_SHORT_REG_DEMOD_READ 0x02
56 #define Command_SHORT_REG_DEMOD_WRITE 0X03
57 #define Command_SHORT_REG_TUNER_READ 0x04
58 #define Command_SHORT_REG_TUNER_WRITE 0X05
60 #define Command_SERVICES_GET 0x0083
61 #define Command_COMPONENT_ADD 0x0086
62 #define Command_COMPONENT_REMOVE 0x0087
63 #define Command_FIG_ADD 0x0088
64 #define Command_FIG_REMOVE 0x0089
67 #define Bus_MAX_WRITE_SIZE 254
68 #define Bus_MAX_READ_SIZE 254
71 #define Cmd_buildCommand(command, processor) (command + (Word) (processor << 12))
77 Dword
Cmd_writeRegisters (
78 IN Demodulator
* demodulator
,
79 IN Processor processor
,
80 IN Dword registerAddress
,
81 IN Byte registerAddressLength
,
82 IN Dword writeBufferLength
,
90 Dword
Cmd_readRegisters (
91 IN Demodulator
* demodulator
,
92 IN Processor processor
,
93 IN Dword registerAddress
,
94 IN Byte registerAddressLength
,
95 IN Dword readBufferLength
,
103 Dword
Cmd_loadFirmware (
104 IN Demodulator
* demodulator
,
114 IN Demodulator
* demodulator
121 Dword
Cmd_sendCommand (
122 IN Demodulator
* demodulator
,
124 IN Processor processor
,
125 IN Dword writeBufferLength
,
126 IN Byte
* writeBuffer
,
127 IN Dword readBufferLength
,