- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Defines
csl_error.h File Reference

CSL commonn error definition file. More...

Go to the source code of this file.

## Defines
#define | CSL_SOK (0)
#define | CSL_ESYS_FAIL (-1)
#define | CSL_ESYS_INUSE (-2)
#define | CSL_ESYS_XIO (-3)
#define | CSL_ESYS_OVFL (-4)
#define | CSL_ESYS_BADHANDLE (-5)
#define | CSL_ESYS_INVPARAMS (-6)
#define | CSL_ESYS_INVCMD (-7)
#define | CSL_ESYS_INVQUERY (-8)
#define | CSL_ESYS_NOTSUPPORTED (-9)
#define | CSL_EMMCSD_TIMEOUT (-10)
#define | CSL_ESYS_BADMEDIA (-11)
#define | CSL_ESYS_MEDIA_NOTPRESENT (-12)
#define | CSL_EMMCSD_READ_ERROR (-13)
#define | CSL_EMMCSD_WRITE_ERROR (-14)
#define | CSL_EMMCSD_CRCERR (-15)
#define | CSL_ESDIO_TIMEOUT (-16)
#define | CSL_ESDIO_CRCERR (-17)
#define | CSL_DAT_ID (1)
#define | CSL_DMA_ID (2)
#define | CSL_GPIO_ID (3)
#define | CSL_GPT_ID (4)
#define | CSL_I2C_ID (5)
#define | CSL_I2S_ID (6)
#define | CSL_INTC_ID (7)
#define | CSL_LCD_ID (8)
#define | CSL_MMCSD_ID (9)
#define | CSL_NAND_ID (10)
#define | CSL_PLL_ID (11)
#define | CSL_PWR_ID (12)
#define | CSL_RTC_ID (13)
#define | CSL_SAR_ID (14)
#define | CSL_SPI_ID (15)
#define | CSL_UART_ID (16)
#define | CSL_USB_ID (17)
#define | CSL_WDTIM_ID (18)
#define | CSL_EUART_INVALID_INST_ID (CSL_EUART_FIRST -1)
#define | CSL_EUART_INVALID_ISR_MASK (CSL_EUART_FIRST -2)
#define | CSL_EUART_TIMEOUT (CSL_UART_ID -3)
#define | CSL_EUART_INVALID_BUFSIZE (CSL_UART_ID -3)
#define | CSL_EUART_INVALID_WORDLENGTH (CSL_UART_ID -4)
#define | CSL_EUART_INVALID_PARITYSEL (CSL_UART_ID -5)
#define | CSL_EDAT_FIRST -( ((CSL_DAT_ID + 1) << 5 ) + 1 )
#define | CSL_EDAT_LAST -( (CSL_DAT_ID + 1) << 6 )
#define | CSL_EDMA_FIRST -( ((CSL_DMA_ID + 1) << 5 ) + 1 )
#define | CSL_EDMA_LAST -( (CSL_DMA_ID + 1) << 6 )
#define | CSL_EGPIO_FIRST -( ((CSL_GPIO_ID + 1) << 5 ) + 1 )
#define | CSL_EGPIO_LAST -( (CSL_GPIO_ID + 1) << 6 )
#define | CSL_EGPT_FIRST -( ((CSL_GPT_ID + 1) << 5 ) + 1 )
#define | CSL_EGPT_LAST -( (CSL_GPT_ID + 1) << 6 )
#define | CSL_EI2C_FIRST -( ((CSL_I2C_ID + 1) << 5 ) + 1 )
#define | CSL_EI2C_LAST -( (CSL_I2C_ID + 1) << 6 )
#define | CSL_EI2S_FIRST -( ((CSL_I2S_ID + 1) << 5 ) + 1 )
#define | CSL_EI2S_LAST -( (CSL_I2S_ID + 1) << 6 )
#define | CSL_EINTC_FIRST -( ((CSL_INTC_ID + 1) << 5 ) + 1 )
#define | CSL_EINTC_LAST -( (CSL_INTC_ID + 1) << 6 )
#define | CSL_ELCD_FIRST -( ((CSL_LCD_ID + 1) << 5 ) + 1 )
#define | CSL_ELCD_LAST -( (CSL_LCD_ID + 1) << 6 )
#define | CSL_EMMCSD_FIRST -( ((CSL_MMCSD_ID + 1) << 5 ) + 1 )
#define | CSL_EMMCSD_LAST -( (CSL_MMCSD_ID + 1) << 6 )
#define | CSL_ENAND_FIRST -( ((CSL_NAND_ID + 1) << 5 ) + 1 )
#define | CSL_ENAND_LAST -( (CSL_NAND_ID + 1) << 6 )
#define | CSL_EPLL_FIRST -( ((CSL_PLL_ID + 1) << 5 ) + 1 )
#define | CSL_EPLL_LAST -( (CSL_PLL_ID + 1) << 6 )
#define | CSL_EPWR_FIRST -( ((CSL_PWR_ID + 1) << 5 ) + 1 )
#define | CSL_EPWR_LAST -( (CSL_PWR_ID + 1) << 6 )
#define | CSL_ERTC_FIRST -( ((CSL_RTC_ID + 1) << 5 ) + 1 )
#define | CSL_ERTC_LAST -( (CSL_RTC_ID + 1) << 6 )
#define | CSL_ESAR_FIRST -( ((CSL_SAR_ID + 1) << 5 ) + 1 )
#define | CSL_ESAR_LAST -( (CSL_SAR_ID + 1) << 6 )
#define | CSL_ESPI_FIRST -( ((CSL_SPI_ID + 1) << 5 ) + 1 )
#define | CSL_ESPI_LAST -( (CSL_SPI_ID + 1) << 6 )
#define | CSL_EUART_FIRST -( ((CSL_UART_ID + 1) << 5 ) + 1 )
#define | CSL_EUART_LAST -( (CSL_UART_ID + 1) << 6 )
#define | CSL_EUSB_FIRST -( ((CSL_USB_ID + 1) << 5 ) + 1 )
#define | CSL_EUSB_LAST -( (CSL_USB_ID + 1) << 6 )
#define | CSL_EWDTIM_FIRST -( ((CSL_WDTIM_ID + 1) << 5 ) + 1 )
#define | CSL_EWDTIM_LAST -( (CSL_WDTIM_ID + 1) << 6 )

## Detailed Description

CSL commonn error definition file.

Path: \(CSLPATH)

## Define Documentation

#define CSL_EUART_INVALID_BUFSIZE (CSL_UART_ID -3)

Invalid buffer size

Referenced by UART_fgets().

#define CSL_EUART_INVALID_INST_ID (CSL_EUART_FIRST -1)

Instance id of UART is invalid

Referenced by UART_init().

#define CSL_EUART_INVALID_ISR_MASK (CSL_EUART_FIRST -2)

ISR mask is invalid

#define CSL_EUART_INVALID_PARITYSEL (CSL_UART_ID -5)

Invalid parity selection

#define CSL_EUART_INVALID_WORDLENGTH (CSL_UART_ID -4)

Invalid wordlength

Referenced by UART_setup().

#define CSL_EUART_TIMEOUT (CSL_UART_ID -3)

Timed out

Referenced by UART_fgetc(), UART_fgets(), UART_fputc(), UART_fputs(), UART_read(), and UART_write().