flinklib
flinklib: flink C library for Linux
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
subdevtypes.c File Reference

flink userspace library, strings for subdevice functions. More...

#include <stdint.h>
Include dependency graph for subdevtypes.c:

Go to the source code of this file.

Macros

#define NOF_KNOWNSUBDEVIDS   (sizeof(flink_subdev_function_strings) / sizeof(char*))
 

Functions

const char * flink_subdevice_id2str (uint16_t id)
 

Variables

const char * flink_subdev_function_strings []
 

Detailed Description

flink userspace library, strings for subdevice functions.

This header file contains string definitions for subdevice function id's.

Author
Martin Züger

Definition in file subdevtypes.c.

Macro Definition Documentation

#define NOF_KNOWNSUBDEVIDS   (sizeof(flink_subdev_function_strings) / sizeof(char*))

Definition at line 52 of file subdevtypes.c.

Function Documentation

const char* flink_subdevice_id2str ( uint16_t  id)

Definition at line 55 of file subdevtypes.c.

Variable Documentation

const char* flink_subdev_function_strings[]
Initial value:
= {
"Info",
"Analog input",
"Analog output",
"reserved",
"reserved",
"Digital I/O",
"Counter",
"Timer",
"Memory",
"reserved",
"reserved",
"reserved",
"PWM",
"PPWA",
"unknown",
"Watch dog",
"unknown",
"unknown",
"unknown",
"unknown",
"unknown",
"unknown",
"unknown",
"unknown",
"unknown",
}

Definition at line 25 of file subdevtypes.c.