no-OS
Toggle main menu visibility
Main Page
Related Pages
Structures
Structure List
Structure Index
Files
File List
•
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
drivers
dac
ad917x
ad917x_api
api_errors.h
Go to the documentation of this file.
1
14
15
#ifndef __API_ERRORS_H__
16
#define __API_ERRORS_H__
17
18
19
23
24
#include <
errno.h
>
25
27
#define API_ERROR_OK 0
29
#define API_ERROR_SPI_SDO (-EINVAL)
31
#define API_ERROR_INVALID_HANDLE_PTR (-EINVAL)
33
#define API_ERROR_INVALID_XFER_PTR (-EINVAL)
35
#define API_ERROR_INVALID_DELAYUS_PTR (-EINVAL)
37
#define API_ERROR_INVALID_PARAM (-EINVAL)
39
#define API_ERROR_NOT_SUPPORTED (-ENOTSUP)
41
#define API_ERROR_VCO_OUT_OF_RANGE (-EINVAL)
43
#define API_ERROR_FTW_LOAD_ACK (-EFAULT)
45
#define API_ERROR_NCO_NOT_ENABLED (-ENODEV)
47
#define API_ERROR_INIT_SEQ_FAIL (-EFAULT)
49
#define API_ERROR_TEST_FAILED -(ENODEV)
51
#define API_ERROR_SPI_XFER -(ENODEV)
53
#define API_ERROR_US_DELAY -(ENODEV)
55
#define API_ERROR_TX_EN_PIN_CTRL -(ENODEV)
57
#define API_ERROR_RESET_PIN_CTRL -(ENODEV)
59
#define API_ERROR_EVENT_HNDL -(ENODEV)
61
#define API_ERROR_HW_OPEN -(ENODEV)
63
#define API_ERROR_HW_CLOSE -(ENODEV)
64
72
char
*
adi_api_get_error_string
(
int
error_code);
73
75
#endif
/* !__API_ERRORS_H__ */
errno.h
Error macro definition for ARM Compiler.
adi_api_get_error_string
char * adi_api_get_error_string(int error_code)
Return string representation of the error code.
Generated by
1.13.2