summaryrefslogtreecommitdiffstats
path: root/pcilib/views.h
diff options
context:
space:
mode:
authornicolas.zilio@hotmail.fr <>2015-09-14 11:56:38 +0200
committernicolas.zilio@hotmail.fr <>2015-09-14 11:56:38 +0200
commit2dfb23016c39a331bf5ed4111b630dffa330edbb (patch)
tree995c98cf6c329aaf8996bb57bb95b44198b4a984 /pcilib/views.h
parent60c6bf9f6916b6ae2c05a499675ff54480256ece (diff)
downloadpcitool-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.h3
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