summaryrefslogtreecommitdiffstats
path: root/pcilib/views.h
diff options
context:
space:
mode:
authornicolas.zilio@hotmail.fr <>2015-09-15 09:34:52 +0200
committernicolas.zilio@hotmail.fr <>2015-09-15 09:34:52 +0200
commit6a8b4a516689daa34951ccca841c2a4f57412b0e (patch)
tree01a4131c8df90a2c726d134a488ec7818712fa0b /pcilib/views.h
parentaaadfff471f02444b2936d824b055e2354b6c725 (diff)
downloadpcitool-6a8b4a516689daa34951ccca841c2a4f57412b0e.tar.gz
pcitool-6a8b4a516689daa34951ccca841c2a4f57412b0e.tar.bz2
pcitool-6a8b4a516689daa34951ccca841c2a4f57412b0e.tar.xz
pcitool-6a8b4a516689daa34951ccca841c2a4f57412b0e.zip
first compil ok with addition of generic views
Diffstat (limited to 'pcilib/views.h')
-rw-r--r--pcilib/views.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/pcilib/views.h b/pcilib/views.h
index c7dee6b..5d9100e 100644
--- a/pcilib/views.h
+++ b/pcilib/views.h
@@ -45,7 +45,6 @@ struct pcilib_view_s{
void* parameters;
pcilib_unit_t base_unit;
};
-
/**
* new type to define a formula view
*/
@@ -72,6 +71,12 @@ 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);
+int operation_enum(pcilib_t *ctx, void *params, char* name, int view2reg, pcilib_register_value_t *regval, size_t viewval_size, void* viewval);
+
+int operation_formula(pcilib_t *ctx, void *params, char* unit, int view2reg, pcilib_register_value_t *regval, size_t viewval_size, void* viewval);
+
+int pcilib_add_views(pcilib_t *ctx, size_t n, const pcilib_view_t* views);
+
char* pcilib_view_str_sub(const char* s, unsigned int start, unsigned int end);
#endif