| 1 | #include "dsthallocal.h" |
|---|
| 2 | |
|---|
| 3 | #ifndef _IIC_COM_H |
|---|
| 4 | #define _IIC_COM_H |
|---|
| 5 | |
|---|
| 6 | #define IIC_COM_SUCCESS 0 |
|---|
| 7 | #define IIC_COM_UNDEFINED_RECEIVE_NUMBER 1 |
|---|
| 8 | #define IIC_COM_MEMORY_ALLOCATION_FAILIUR 2 |
|---|
| 9 | #define IIC_COM_NULL_PARAMETER 3 |
|---|
| 10 | #define IIC_COM_RECEIVE_INDEX_FROM_REG_23_FAILED_FOR_10_TIMES 4 |
|---|
| 11 | #define IN_EPROM_MEMORY_DEVICES_THE_ADDRESS_MUST_BE_AT_START_OF_A_PAGE 5 |
|---|
| 12 | #define IIC_COM_UNABLE_TO_OPEN_FILE_FOR_READING 6 |
|---|
| 13 | #define IIC_COM_UNABLE_TO_READ_FROM_THE_FILE 7 |
|---|
| 14 | #define UNDEFINED_TRANSMIT_REGISTER_NUMBER 8 |
|---|
| 15 | #define SEND_HOST_CONTROL_FUNCTION_FAILED 9 |
|---|
| 16 | #define RECEIVE_WORD_OF_DATA_FUNCTION_FAILED 10 |
|---|
| 17 | #define RECEIVE_TRANSMIT_REGISTER_VALUE_FUNCTION_FAILED 11 |
|---|
| 18 | #define UNDIFINED_ARGUMENT_TYPE 12 |
|---|
| 19 | #define RECEIVED_ZERO_SNR_VALUE_FROM_THE_CASCADE 13 |
|---|
| 20 | #define IIC_COM_FAILURE 14 |
|---|
| 21 | |
|---|
| 22 | #define CODE_BUFFER_SIZE_IN_BYTES 16384 //4k * 4 bYTES |
|---|
| 23 | //------------------------------------------------------------- |
|---|
| 24 | //Error constant definitions |
|---|
| 25 | #define IIC_COM_UNDEFINED_RECEIVE_NUMBER 1 |
|---|
| 26 | #define IIC_COM_MEMORY_ALLOCATION_FAILIUR 2 |
|---|
| 27 | #define IIC_COM_NULL_PARAMETER 3 |
|---|
| 28 | |
|---|
| 29 | #define DTT7611_SLAVE_ADDRESS 0x86 |
|---|
| 30 | |
|---|
| 31 | //#define I2C_HIGH_SPEED 0x140//0x100 |
|---|
| 32 | //#define I2C_NORMAL_SPEED 0x500//0x1D0 |
|---|
| 33 | |
|---|
| 34 | #ifndef NULL |
|---|
| 35 | #define NULL ((void*) 0) |
|---|
| 36 | #endif |
|---|
| 37 | |
|---|
| 38 | //------------------------------------------------------------- |
|---|
| 39 | //dummy functions |
|---|
| 40 | UINT16 S5H_IicReadOneRegister(UINT8 chipaddr, UINT8 regaddr); |
|---|
| 41 | UINT16 S5H_IicWriteOneRegister(UINT8 chipaddr, UINT8 regaddr, UINT16 data); |
|---|
| 42 | UINT8 S5H_IicReadTunerByte(UINT8 TunerAddr); |
|---|
| 43 | |
|---|
| 44 | #endif |
|---|