flinklib
flinklib: flink C library for Linux
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
subdevtypes.c
Go to the documentation of this file.
1 /*******************************************************************
2  * _________ _____ _____ ____ _____ ___ ____ *
3  * |_ ___ | |_ _| |_ _| |_ \|_ _| |_ ||_ _| *
4  * | |_ \_| | | | | | \ | | | |_/ / *
5  * | _| | | _ | | | |\ \| | | __'. *
6  * _| |_ _| |__/ | _| |_ _| |_\ |_ _| | \ \_ *
7  * |_____| |________| |_____| |_____|\____| |____||____| *
8  * *
9  *******************************************************************
10  * *
11  * fLink userspace library, subdevice types *
12  * *
13  *******************************************************************/
14 
23 #include <stdint.h>
24 
26  "Info", // 0x00
27  "Analog input", // 0x01
28  "Analog output", // 0x02
29  "reserved", // 0x03
30  "reserved", // 0x04
31  "Digital I/O", // 0x05
32  "Counter", // 0x06
33  "Timer", // 0x07
34  "Memory", // 0x08
35  "reserved", // 0x09
36  "reserved", // 0x0A
37  "reserved", // 0x0B
38  "PWM", // 0x0C
39  "PPWA", // 0x0D
40  "unknown", // 0x0E
41  "Watch dog", // 0x10
42  "unknown", // 0x11
43  "unknown", // 0x12
44  "unknown", // 0x13
45  "unknown", // 0x14
46  "unknown", // 0x15
47  "unknown", // 0x16
48  "unknown", // 0x17
49  "unknown", // 0x18
50  "unknown", // 0x19
51 };
52 #define NOF_KNOWNSUBDEVIDS (sizeof(flink_subdev_function_strings) / sizeof(char*))
53 
54 
55 const char* flink_subdevice_id2str(uint16_t id) {
56  if(id > NOF_KNOWNSUBDEVIDS - 1) { // unknown subdevice id
57  return "unknown";
58  }
60 }
const char * flink_subdev_function_strings[]
Definition: subdevtypes.c:25
#define NOF_KNOWNSUBDEVIDS
Definition: subdevtypes.c:52
const char * flink_subdevice_id2str(uint16_t id)
Definition: subdevtypes.c:55