/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 pcilib/view.h

  • Committer: Suren A. Chilingaryan
  • Date: 2015-10-19 13:58:46 UTC
  • Revision ID: csa@suren.me-20151019135846-nz3f6iobifx06xvq
Support computed (property-based) registers

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
typedef struct pcilib_view_description_s pcilib_view_description_t;
13
13
 
14
14
typedef enum {
15
 
    PCILIB_VIEW_FLAG_PROPERTY = 1                                               /**< Indicates that view does not depend on a value and is independent property */
 
15
    PCILIB_VIEW_FLAG_PROPERTY = 1,                                              /**< Indicates that view does not depend on a value and is independent property */
 
16
    PCILIB_VIEW_FLAG_REGISTER = 2                                               /**< Indicates that view does not depend on a value and should be mapped to the register space */
16
17
} pcilib_view_flags_t;
17
18
 
18
19
typedef struct {
32
33
    pcilib_access_mode_t mode;                                                  /**< Specifies if the view is read/write-only */
33
34
    const char *unit;                                                           /**< Returned unit (if any) */
34
35
    const char *name;                                                           /**< Name of the view */
 
36
    const char *regname;                                                        /**< Specifies the register name if the view should be mapped to register space */
35
37
    const char *description;                                                    /**< Short description */
36
38
};
37
39