⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tvperror.h

📁 ti的数字电视芯片 tvp9000的源码
💻 H
字号:
#ifndef  TVPERROR_DOT_H_IS_DEFINED
#define  TVPERROR_DOT_H_IS_DEFINED

/***************************************************************************** 
*    Property of Texas Instruments Incorporated, Copyright 2004
*    All rights reserved
******************************************************************************/
/*****************************************************************************
*
* Description:
*  TvpError.h contains all error code defines.
*
******************************************************************************
* $Revision: $   
*
* $History: TvpError.h $    
* 
******************************************************************************/

typedef unsigned long  TVP_FERROR;

/* Error codes 0 - 01F are reserved for general purpose  error codes          */
#define  TVP_E_NONE         0          /* no error, good return               */

/* Generic Error codes */
#define TVP_E_ERROR                       0xFF  /* general purpose error return for BAD   */
#define TVP_E_INVALID_PARAMETER           0x1  /* Invalid parameter                       */
#define TVP_E_NULL_POINTER                0x2

/* GPIO Error Codes */
#define TVP_E_GPIO_DISABLED               0x10
#define TVP_E_GPIO_INVALID_CONFIG         0x11

/* Error codes 0x30 - 0x3F are reserved for Video error codes              */
#define TVP_E_VIDEO_CONTROLLER_BUSY       0x30  /* Video Controller - No IRQ Done */
#define TVP_E_VID_VC_HANG                 0x31
#define TVP_E_VID_INVALID_SIZE            0x32 
#define TVP_E_VID_VC_PROGRAM_IN_PROGRESS  0x33
#define TVP_E_VID_COMPRESSION_NOT_VALID   0x34

/* Error codes 40 - 47 are reserved for Encoder related error codes           */
#define TVP_E_MV_HW_DISABLED              0x40
#define TVP_E_ENC_NTSC_INVALID_ADDRESS    0x41
#define TVP_E_ENC_READ_TIMEOUT            0x42
#define TVP_E_ENC_WRITE_TIMEOUT           0x43
#define TVP_E_ENC_CC_BUSY                 0x44
#define TVP_E_ENC_INVALID_COMBINATION     0x45
#define TVP_E_ENC_HDREG_INVALID_ADDRESS   0x46  // v01.01.HdReg

/* Error codes 60 - 06F are reserved for smart card related errors           */
#define TVP_E_SMCSTATE                    0x60
#define TVP_E_RANGE                       0x61
#define TVP_E_RESETINPROG                 0x62
#define TVP_E_SMCCLK                      0x63
#define TVP_E_SMCWWT                      0x64
#define TVP_E_SMCPARMS                    0x65
#define TVP_E_SMCPOWER                    0x66
#define TVP_E_POWERED_ON                  0x67

/* Error codes 0x70 - 0x09F are reserved for OSD-BITBLIT related error codes             */

/* Defines used by the OSD APIs */
#define TVP_E_HDM_HDISPLAY_BUSY                 0x70  /* Display already exists */
#define TVP_E_HDM_INVALID_MODE                  0x71  /* Invalid mode */
#define TVP_E_HDM_LAYER_NOT_SUPPORTED           0x72  /* Layer not supported */
#define TVP_E_HDM_INVALID_DTYPE                 0x73  /* Invalid display type */
#define TVP_E_HDM_INVALID_ID                    0x74  /* Invalid display id */
#define TVP_E_HDM_INVALID_HDISPLAY              0x75  /* Invalid display handler */
#define TVP_E_HDM_INVALID_BLENDING_TYPE         0x76  /* Invalid blending type */
#define TVP_E_HDM_REGION_OVERLAPPING            0x77  /* Overlapping between two regions */
#define TVP_E_HDM_ADJUSTED_COORDINATES          0x78  /* Coordinated modified */
#define TVP_E_HDM_VISIBLE_DISPLAY               0x79  /* Wrong visibility */
#define TVP_E_HDM_TILING_ON                     0x80  /* Tiling ON_TI when setting the anti-flickering */  
#define TVP_E_HDM_INVALID_Z_ORDER               0x81  /* Invalid Z-order */
#define TVP_E_HDM_INVALID_SUB_LAYER             0x82  /* Invalid sub-layer */
#define TVP_E_HDM_LAYER_IN_USE                  0x83  /* Anti-flicker vs AUX layer */
#define TVP_E_HDM_ANTIFLICKERING_ON             0x84  /* Anti-flicker active */
#define TVP_E_HDM_BUFFER_ALIGN                  0x85  /* Buffer for TvpOsdDisplay not Quad word boundary */

/* Bitblit */
#define TVP_E_BLT_WRONG_API               0x86  /* The API is not intended to be use in that case */
#define TVP_E_BLT_INVALID_POSITION        0x87  /* Pixel outside the buffer */
#define TVP_E_BLT_INVALID_SIZE            0x88  /* Invalid size */
#define TVP_E_BLT_INVALID_FORMAT          0x89  /* Invalid pixel color format */
#define TVP_E_BLT_BITMAP_ALIGN            0x8A  /* Bitmap not on a 4 byte boundary */
#define TVP_E_BLT_INSUFFICIENT_MEMORY     0x8B  /* Internal working buffer is too small */

/* Fonts */
#define TVP_E_FNT_GLYPH_SIZE              0x90  /* Glyph table size exceeded */
#define TVP_E_FNT_INVALID_CHARACTER       0x91  /* Invalid character for this font */
#define TVP_E_FNT_INVALID_CONVERSION      0x92  /* Invalid font to bitmap format conversion */

/* CLUT */
#define TVP_E_CLT_INVALID_HPALETTE        0x9B  /* Invalid palette handler               */
#define TVP_E_CLT_HPALETTE_STILL_USED     0x9C  /* Palette still in use                  */
#define TVP_E_CLT_NO_PALETTE              0x9D  /* No palette associated to the display  */
#define TVP_E_CLT_INVALID_PAL_TYPE        0x9E  /* Invalid palette type                  */
#define TVP_E_CLT_INVALID_OFFSET          0x9F  /* Invalid palette offset                */ 

/* Error codes A0 - 0AF are reserved for TPP related error codes              */

#define TVP_E_TPP_ABORT                   0xA0  /* general TPP data transfer abort           */
#define TVP_E_TPP_TIMEOUT                 0xA1  /* timeout occurred in tpp function          */
#define TVP_E_CHANNEL                     0xA2  /* logical channel out of range              */
#define TVP_E_DATATBL_BUSY                0xA3  /* no entries available in the tpp data table*/
#define TVP_E_TPP_BUF_FULL                0xA4  /* User buffer for Get data transfer is full */
#define TVP_E_TPP_BUF_OVFL                0xA5  /* overflow circular pool of buffers         */
#define TVP_E_CHAN_IN_USE                 0xA6  /* invalid channel type                      */
#define TVP_E_CHANNEL_TYPE                0xA7  /* channel already in use                    */
#define TVP_E_CLK_CHANNEL                 0xA8  /* clock channel (PCR) not available         */
#define TVP_E_KEY_INDEX                   0xA9  /* invalid key index                         */

#define TVP_E_TPP_TRANSFER_END            0xAD  /* data transfer error flags */
#define TVP_E_TPP_UNIT_START              0xAE
#define TVP_E_TPP_UNIT_END                0xAF

#define TVP_E_TPP_INVALID_INPUT           0xA0A0

/* Error codes B0 - BF reserved for Cache/Filtering related error codes       */
#define TVP_E_INVALID_FILTER              0xB0
#define TVP_E_FILTER_OVERFLOW             0xB1
#define TVP_E_INVALID_MEMORY_RANGE        0xB2
#define TVP_E_INSUFFICIENT_MEMORY         0xB3
#define TVP_E_PID_BUFFER_OVERFLOW         0xB4
#define TVP_E_PID_ARRAY_OVERFLOW          0xB5
#define TVP_E_LINK_LIST_CORRUPT           0xB6
#define TVP_E_SECT_COUNT_OVERFLOW         0xB7
#define TVP_E_FILT_INVALID_MODE           0xB8
#define TVP_E_FILT_INVALID_VERSION        0xB9
#define TVP_E_FILT_SIZE                   0xBA
#define TVP_E_INVALID_PID                 0xBF

/* Error codes C0 - 0CF are reserved for Decryption  and IR error codes                */
#define TVP_E_IRE_INBUSY                  0xC0  /* IR encoder busy                     */
#define TVP_E_IRE_RELAY_MODE              0xC1  /* IR encoder error (relay mode)       */
#define TVP_E_IRE_NOTSTART                0xC2 
#define TVP_E_IRE_RPT_POS_START           0xC3
#define TVP_E_IRE_RPT_POS_END             0xC4

#define TVP_E_MV_ACCESS                   0x0C  /* MACRO VISION access error           */

/* Error codes D0 - 0DF are reserved for DMA related error codes            */

#define TVP_E_DMA_FULL                    0xD0  /* DMA slots all occupied              */
#define TVP_E_DMA_RANGE                   0xD3  /* error code for range error          */  

/* Error codes E0 - 0EF are reserved for I2C error codes                   */

#define TVP_E_I2C_CMD_IN_PROG             0xE0  /* command issued while in progress */
#define TVP_E_I2C_IRQ_RANGE               0xE1  /* invalid irq number for i2c       */
#define TVP_E_I2C_UNSUPPORTED_MODE        0xE2  /* Slave Mode currently unsupported */
#define TVP_E_I2C_MEMORY_RANGE            0xE3  /*The memory out of SDRAM range     */
#define TVP_E_I2C_MEMORY_LENGTH           0xE4  /*The length big than 0xFFFF        */

/* Error codes F0 - 0Fe are reserved for xxxx error codes                  */
#define TVP_E_CHARSIZE                    0xF1  /* Character size out of range         */
#define TVP_E_PARITY                      0xF2  /* Parity out of range                 */
#define TVP_E_STOPBIT                     0xF3  /* Stop bits out of range              */
#define TVP_E_BAUDRGN                     0xF4  /* Baud rate out of range              */
#define TVP_E_BAUDINVLD                   0xF5  /* Baud rate invalid for requested Uart*/
#define TVP_E_PARCHRSZ                    0xF6  /* Character size is 8 bits with parity*/
#define TVP_E_PARSELECT                   0xF7  /* Parity select is not valid          */
#define TVP_E_INTLEV                      0xF8  /* Interrupt level is not valid        */
#define TVP_E_HWHSHAKE                    0xF9  /* Hardware handshaking value invalid  */
#define TVP_E_XON_XOFF_DISABLE            0xFA  /* Xon/Xoff protocol is not enabled    */

#define TVP_E_UADR                        0xFB  /* UART address is out of range        */
#define TVP_E_XOFF                        0xFC  /* State of the link is XOFF           */ 
#define TVP_E_NODATA                      0xFD  /* No data in buffer       */
#define TVP_E_BUFEMPTY                    E_NODATA /* Old name for this error */
#define TVP_E_RECVCHAR                    0xFE  /* parity, overrun or framing error    */
/* Error value 0xFF is already used for general error return               */
#define TVP_E_FLWCTRL                     0x100 /* Flow control selection error        */
#define TVP_E_STICKPARITY                 0x101 /* Wrong value for stick parity or char size*/
#define TVP_E_FIFOTMOUT                   0x102 /* Wrong value passed for FIFO timeout */                      
#define TVP_E_XMIT_IN_PROGRESS            0x103 /* Transmission already on-going       */
#define TVP_E_UART_FIFO_FULL              0x104 /* Transmit fifo full */
#define TVP_E_UART_BREAK                  0x105 /* Break received */
#define TVP_E_UART_FRAME                  0x106 /* UART Framing error occurred */
#define TVP_E_UART_PARITY                 0x107 /* UART Parity error occurred */

/* interrupt controller errors 110 - 11F */

#define TVP_E_INT_RANGE                   0x111 // int number passed is not in range allowed
#define TVP_E_MASK_RANGE                  0x112 // mask value passed is out of range
#define TVP_E_FIQ_RANGE                   0x113 // FIQ number passed in not in range allowed

/* Audio error messages 0x130 - 0x13f */
#define TVP_E_AUD_INVALID_FORMAT          0x130 // audio                                  
#define TVP_E_AUDPARAMS                   0x131
#define TVP_E_AUD_WRONG_ALGORITHM         0x132
#define TVP_E_AUD_IN_USE                  0x133

/* Extension Bus messages and errors */
#define TVP_E_EBI_RANGE                   0x140 // extension bus parameter passed is too large

/* Timer errors */
#define TVP_E_TIMER_RANGE                 0x150 // extension bus parameter passed is too large

// event errors
#define TVP_E_SYS_EVENT_RANGE             0x160 // error

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -