2 * dim2_errors.h - Definitions of errors for DIM2 HAL API
3 * (MediaLB, Device Interface Macro IP, OS62420)
5 * Copyright (C) 2015, Microchip Technology Germany II GmbH & Co. KG
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
12 * This file is licensed under GPLv2.
15 #ifndef _MOST_DIM_ERRORS_H
16 #define _MOST_DIM_ERRORS_H
29 /** Bad base address for DIM2 IP */
30 DIM_INIT_ERR_DIM_ADDR = 0x10,
32 /**< Bad MediaLB clock */
33 DIM_INIT_ERR_MLB_CLOCK,
35 /** Bad channel address */
36 DIM_INIT_ERR_CHANNEL_ADDRESS,
38 /** Out of DBR memory */
39 DIM_INIT_ERR_OUT_OF_MEMORY,
41 /** DIM API is called while DIM is not initialized successfully */
42 DIM_ERR_DRIVER_NOT_INITIALIZED = 0x20,
45 * Configuration does not respect hardware limitations
46 * for isochronous or synchronous channels
51 * Buffer size does not respect hardware limitations
52 * for isochronous or synchronous channels
54 DIM_ERR_BAD_BUFFER_SIZE,
65 #endif /* _MOST_DIM_ERRORS_H */