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
30 /** Bad base address for DIM2 IP */
31 DIM_INIT_ERR_DIM_ADDR = 0x10,
33 /**< Bad MediaLB clock */
34 DIM_INIT_ERR_MLB_CLOCK,
36 /** Bad channel address */
37 DIM_INIT_ERR_CHANNEL_ADDRESS,
39 /** Out of DBR memory */
40 DIM_INIT_ERR_OUT_OF_MEMORY,
42 /** DIM API is called while DIM is not initialized successfully */
43 DIM_ERR_DRIVER_NOT_INITIALIZED = 0x20,
46 * Configuration does not respect hardware limitations
47 * for isochronous or synchronous channels
52 * Buffer size does not respect hardware limitations
53 * for isochronous or synchronous channels
55 DIM_ERR_BAD_BUFFER_SIZE,
67 #endif /* _MOST_DIM_ERRORS_H */