1 /**
2  *
3  * Copyright (c) 2019 Microchip Technology Inc. and its subsidiaries.
4  *
5  * \asf_license_start
6  *
7  * \page License
8  *
9  * SPDX-License-Identifier: Apache-2.0
10  *
11  * Licensed under the Apache License, Version 2.0 (the "License"); you may
12  * not use this file except in compliance with the License.
13  * You may obtain a copy of the Licence at
14  *
15  * http://www.apache.org/licenses/LICENSE-2.0
16  *
17  * Unless required by applicable law or agreed to in writing, software
18  * distributed under the License is distributed on an AS IS BASIS, WITHOUT
19  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
20  * See the License for the specific language governing permissions and
21  * limitations under the License.
22  *
23  * \asf_license_stop
24  *
25  */
26 
27 /** @file mec_retval.h
28  *MEC Peripheral library return values
29  */
30 /** @defgroup MEC Peripherals Return values
31  */
32 
33 #ifndef _MEC_RETVAL_H
34 #define _MEC_RETVAL_H
35 
36 #define MCHP_RET_OK              0
37 #define MCHP_RET_ERR             1
38 #define MCHP_RET_ERR_INVAL       2 /* bad parameter */
39 #define MCHP_RET_ERR_BUSY        3
40 #define MCHP_RET_ERR_NOP         4
41 #define MCHP_RET_ERR_XFR         5
42 #define MCHP_RET_ERR_TIMEOUT     6
43 #define MCHP_RET_ERR_NACK        7 /* a device did not respond */
44 #define MCHP_RET_ERR_HW          8
45 
46 #define MCHP_FALSE   0
47 #define MCHP_TRUE    1
48 
49 #define MCHP_OFF     0
50 #define MCHP_ON      1
51 
52 #endif // #ifndef _MEC_RETVAL_H
53 /* end mec_retval.h */
54 /**   @}
55  */
56