/alps/pcitool

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/pcitool

« back to all changes in this revision

Viewing changes to views/transform.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-09-24 02:28:45 UTC
  • mfrom: (305.1.19 views)
  • Revision ID: csa@suren.me-20150924022845-p7hc8lh8v0q48g0r
Finalyze XML support and provide initial support for views (only descriptions so far)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _PCILIB_VIEW_TRANSFORM_H
 
2
#define _PCILIB_VIEW_TRANSFORM_H
 
3
 
 
4
#include <pcilib.h>
 
5
#include <pcilib/view.h>
 
6
 
 
7
typedef struct {
 
8
    pcilib_view_description_t base;
 
9
    const char *read_from_reg;                  /**< Formula explaining how to convert the register value to the view value */
 
10
    const char *write_to_reg;                   /**< Formula explaining how to convert from the view value to the register value */
 
11
} pcilib_transform_view_description_t;
 
12
 
 
13
#ifndef _PCILIB_VIEW_TRANSFORM_C
 
14
const pcilib_view_api_description_t pcilib_transform_view_api;
 
15
#endif /* _PCILIB_VIEW_TRANSFORM_C */
 
16
 
 
17
#endif /* _PCILIB_VIEW_TRANSFORM_H */