CubeMon-Vue-Demo-STM32F407VGT6U
utility.h
Go to the documentation of this file.
1
9#ifndef INC_LIB_UTILITY_H_
10#define INC_LIB_UTILITY_H_
11
13typedef enum retStatus {
14 EOK = 0,
15 EPERM = 1,
16 EIO = 5,
17 ENXIO = 6,
18 EACCES = 13,
19 EFAULT = 14,
20 EBUSY = 16,
21 ENODEV = 19,
22 EINVAL = 22,
23 EBADRQC = 56,
24 ENODATA = 61,
25 ECOMM = 70,
26 EOVERFLOW = 76,
27 EMSGSIZE = 90,
29
31typedef enum dioStates {
32 DIO_OFF = 0,
33 DIO_ON = 1,
37
39typedef enum aioData {
44
45typedef uint32_t (*liner_fce)(uint32_t);
46
47void initialization_error_handle(void);
48#endif /* INC_LIB_UTILITY_H_ */
dioStates
digital input/output states
Definition: utility.h:31
@ DIO_NOT_INITIALIZED
no information about the input/output state because it is not initialized
Definition: utility.h:34
@ DIO_OFF
input/output is in logical 0 state
Definition: utility.h:32
@ DIO_ON
input/output is in logical 1 state
Definition: utility.h:33
@ DIO_PROBLEM_OCCURED
no information about the input/output state due to an error
Definition: utility.h:35
aioData
digital input/output module data
Definition: utility.h:39
@ ANA_DIO_VOLTAGE
ADC/DAC value converted to voltage.
Definition: utility.h:42
@ ANA_DIO_RAW_AVERAGED
raw ADC/DAC averaged value (for SMT32 12bit 0-4094)
Definition: utility.h:41
@ ANA_DIO_RAW_CURRENT
raw ADC/DAC value at this moment (for SMT32 12bit 0-4094)
Definition: utility.h:40
retStatus
possible return values
Definition: utility.h:13
@ EMSGSIZE
Message too long.
Definition: utility.h:27
@ EPERM
Operation not permitted.
Definition: utility.h:15
@ ENXIO
No such device or address.
Definition: utility.h:17
@ EOK
operation OK
Definition: utility.h:14
@ ENODATA
No data.
Definition: utility.h:24
@ EACCES
Permission denied.
Definition: utility.h:18
@ EIO
IO error.
Definition: utility.h:16
@ EINVAL
Invalid argument.
Definition: utility.h:22
@ EBUSY
Device busy.
Definition: utility.h:20
@ EOVERFLOW
Value too large for defined data type.
Definition: utility.h:26
@ ENODEV
No such device.
Definition: utility.h:21
@ ECOMM
Communication error on send.
Definition: utility.h:25
@ EFAULT
Bad address (pointer)
Definition: utility.h:19
@ EBADRQC
Invalid request code.
Definition: utility.h:23