no-OS
api_errors.h
Go to the documentation of this file.
1 // SPDX-License-Identifier: GPL-2.0
16 #ifndef __API_ERRORS_H__
17 #define __API_ERRORS_H__
18 
19 
20 
25 #include <errno.h>
26 
28 #define API_ERROR_OK 0
29 
30 #define API_ERROR_SPI_SDO (-EINVAL)
31 
32 #define API_ERROR_INVALID_HANDLE_PTR (-EINVAL)
33 
34 #define API_ERROR_INVALID_XFER_PTR (-EINVAL)
35 
36 #define API_ERROR_INVALID_DELAYUS_PTR (-EINVAL)
37 
38 #define API_ERROR_INVALID_PARAM (-EINVAL)
39 
40 #define API_ERROR_NOT_SUPPORTED (-ENOTSUP)
41 
42 #define API_ERROR_VCO_OUT_OF_RANGE (-EINVAL)
43 
44 #define API_ERROR_FTW_LOAD_ACK (-EFAULT)
45 
46 #define API_ERROR_NCO_NOT_ENABLED (-ENODEV)
47 
48 #define API_ERROR_INIT_SEQ_FAIL (-EFAULT)
49 
50 #define API_ERROR_TEST_FAILED -(ENODEV)
51 
52 #define API_ERROR_SPI_XFER -(ENODEV)
53 
54 #define API_ERROR_US_DELAY -(ENODEV)
55 
56 #define API_ERROR_TX_EN_PIN_CTRL -(ENODEV)
57 
58 #define API_ERROR_RESET_PIN_CTRL -(ENODEV)
59 
60 #define API_ERROR_EVENT_HNDL -(ENODEV)
61 
62 #define API_ERROR_HW_OPEN -(ENODEV)
63 
64 #define API_ERROR_HW_CLOSE -(ENODEV)
65 
73 char *adi_api_get_error_string(int error_code);
74 
76 #endif /* !__API_ERRORS_H__ */
adi_api_get_error_string
char * adi_api_get_error_string(int error_code)
Return string representation of the error code.
errno.h
Error macro definition for ARM Compiler.