diff options
author | nicolas.zilio@hotmail.fr <> | 2015-09-14 15:49:46 +0200 |
---|---|---|
committer | nicolas.zilio@hotmail.fr <> | 2015-09-14 15:49:46 +0200 |
commit | a1bf5e300e2345b642d0a13e7e26d22c56156e47 (patch) | |
tree | 35f55b62ab50bfbbb47bd8911aa3ca24c405e0a1 /pcilib/views.h | |
parent | 2dfb23016c39a331bf5ed4111b630dffa330edbb (diff) | |
download | pcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.tar.gz pcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.tar.bz2 pcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.tar.xz pcitool-a1bf5e300e2345b642d0a13e7e26d22c56156e47.zip |
views with units functionnal (beware, as formulas are completely crap now, we could get segfault, for example if we want to write a negative value in register)
Diffstat (limited to 'pcilib/views.h')
-rw-r--r-- | pcilib/views.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pcilib/views.h b/pcilib/views.h index f186336..33bcf4c 100644 --- a/pcilib/views.h +++ b/pcilib/views.h @@ -38,18 +38,18 @@ struct pcilib_view_formula_s { const char *write_formula; /**<formula to parse to write to a register*/ // **see it later** const char *unit; (?) const char *description; - pcilib_unit_t* units; + pcilib_unit_t base_unit; }; /** * function to read a register using a view */ -int pcilib_read_view(pcilib_t *ctx, const char *bank, const char *regname, const char *view/*, const char *unit*/, size_t value_size, void *value); +int pcilib_read_view(pcilib_t *ctx, const char *bank, const char *regname, const char *unit, size_t value_size, void *value); /** * function to write to a register using a view */ -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_write_view(pcilib_t *ctx, const char *bank, const char *regname, const char *unit, size_t value_size, void *value); int pcilib_add_views_enum(pcilib_t* ctx,size_t n, const pcilib_view_enum2_t* views); |