diff options
author | nicolas.zilio@hotmail.fr <> | 2015-09-11 19:40:33 +0200 |
---|---|---|
committer | nicolas.zilio@hotmail.fr <> | 2015-09-11 19:40:33 +0200 |
commit | 60c6bf9f6916b6ae2c05a499675ff54480256ece (patch) | |
tree | 065426f61514f771fdf2bbaa0dbced13b7ff87a9 /pcilib/views.h | |
parent | 0d460b28c769fd2a1d2efb85f11edd4189fb5713 (diff) | |
download | pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.tar.gz pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.tar.bz2 pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.tar.xz pcitool-60c6bf9f6916b6ae2c05a499675ff54480256ece.zip |
more towards views
Diffstat (limited to 'pcilib/views.h')
-rw-r--r-- | pcilib/views.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pcilib/views.h b/pcilib/views.h index 98e3dcd..dfc9f70 100644 --- a/pcilib/views.h +++ b/pcilib/views.h @@ -24,6 +24,7 @@ struct pcilib_view_enum_s { struct pcilib_view_enum2_s { const char* name; pcilib_view_enum_t* enums_list; + const char* description; }; @@ -35,6 +36,7 @@ struct pcilib_view_formula_s { const char *read_formula; /**< formula to parse to read from a register*/ const char *write_formula; /**<formula to parse to write to a register*/ // **see it later** const char *unit; (?) + const char *description; }; /** @@ -47,9 +49,9 @@ int pcilib_read_view(pcilib_t *ctx, const char *bank, const char *regname, const */ int pcilib_write_view(pcilib_t *ctx, const char *bank, const char *regname, const char *view/*, const char *unit*/, size_t value_size, void *value); -int pcilib_add_views_enum(pcilib_t* ctx,size_t n, pcilib_view_enum2_t* views); +int pcilib_add_views_enum(pcilib_t* ctx,size_t n, const pcilib_view_enum2_t* views); -int pcilib_add_views_formula(pcilib_t* ctx, size_t n, pcilib_view_formula_t* views); +int pcilib_add_views_formula(pcilib_t* ctx, size_t n, const pcilib_view_formula_t* views); #endif |