summaryrefslogtreecommitdiffstats
path: root/pcilib/views.h
diff options
context:
space:
mode:
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