summaryrefslogtreecommitdiffstats
path: root/views/transform.h
blob: 8c9321dc03c81683fbdf833ce24925c9f93ae5cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef _PCILIB_VIEW_TRANSFORM_H
#define _PCILIB_VIEW_TRANSFORM_H

#include <pcilib.h>
#include <pcilib/view.h>
#include <py.h>

typedef struct {
    pcilib_view_description_t base;
    const char *read_from_reg;			/**< Formula explaining how to convert the register value to the view value */
    const char *write_to_reg;			/**< Formula explaining how to convert from the view value to the register value */
	const char *module; /**< Python script module name (without extension) */
} pcilib_transform_view_description_t;

#ifndef _PCILIB_VIEW_TRANSFORM_C
const pcilib_view_api_description_t pcilib_transform_view_api;
#endif /* _PCILIB_VIEW_TRANSFORM_C */

#endif /* _PCILIB_VIEW_TRANSFORM_H */