diff options
author | nicolas.zilio@hotmail.fr <> | 2015-09-14 11:56:38 +0200 |
---|---|---|
committer | nicolas.zilio@hotmail.fr <> | 2015-09-14 11:56:38 +0200 |
commit | 2dfb23016c39a331bf5ed4111b630dffa330edbb (patch) | |
tree | 995c98cf6c329aaf8996bb57bb95b44198b4a984 /pcilib/views.h | |
parent | 60c6bf9f6916b6ae2c05a499675ff54480256ece (diff) | |
download | pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.tar.gz pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.tar.bz2 pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.tar.xz pcitool-2dfb23016c39a331bf5ed4111b630dffa330edbb.zip |
views working fine, units in progress
Diffstat (limited to 'pcilib/views.h')
-rw-r--r-- | pcilib/views.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pcilib/views.h b/pcilib/views.h index dfc9f70..f186336 100644 --- a/pcilib/views.h +++ b/pcilib/views.h @@ -2,6 +2,7 @@ #define _PCILIB_VIEWS_H #include "pcilib.h" +#include "unit.h" typedef struct pcilib_view_enum_s pcilib_view_enum_t; @@ -37,6 +38,7 @@ 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; }; /** @@ -53,5 +55,6 @@ int pcilib_add_views_enum(pcilib_t* ctx,size_t n, const pcilib_view_enum2_t* vie int pcilib_add_views_formula(pcilib_t* ctx, size_t n, const pcilib_view_formula_t* views); +char* pcilib_view_str_sub(const char* s, unsigned int start, unsigned int end); #endif |