no-OS
drivers
dac
ad917x
ad917x_api
api_errors.h
Go to the documentation of this file.
1
15
#ifndef __API_ERRORS_H__
16
#define __API_ERRORS_H__
17
18
19
24
#include <
errno.h
>
25
27
#define API_ERROR_OK 0
28
29
#define API_ERROR_SPI_SDO (-EINVAL)
30
31
#define API_ERROR_INVALID_HANDLE_PTR (-EINVAL)
32
33
#define API_ERROR_INVALID_XFER_PTR (-EINVAL)
34
35
#define API_ERROR_INVALID_DELAYUS_PTR (-EINVAL)
36
37
#define API_ERROR_INVALID_PARAM (-EINVAL)
38
39
#define API_ERROR_NOT_SUPPORTED (-ENOTSUP)
40
41
#define API_ERROR_VCO_OUT_OF_RANGE (-EINVAL)
42
43
#define API_ERROR_FTW_LOAD_ACK (-EFAULT)
44
45
#define API_ERROR_NCO_NOT_ENABLED (-ENODEV)
46
47
#define API_ERROR_INIT_SEQ_FAIL (-EFAULT)
48
49
#define API_ERROR_TEST_FAILED -(ENODEV)
50
51
#define API_ERROR_SPI_XFER -(ENODEV)
52
53
#define API_ERROR_US_DELAY -(ENODEV)
54
55
#define API_ERROR_TX_EN_PIN_CTRL -(ENODEV)
56
57
#define API_ERROR_RESET_PIN_CTRL -(ENODEV)
58
59
#define API_ERROR_EVENT_HNDL -(ENODEV)
60
61
#define API_ERROR_HW_OPEN -(ENODEV)
62
63
#define API_ERROR_HW_CLOSE -(ENODEV)
64
72
char
*
adi_api_get_error_string
(
int
error_code);
73
75
#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.
Generated by
1.8.17