From 6a8b4a516689daa34951ccca841c2a4f57412b0e Mon Sep 17 00:00:00 2001 From: "nicolas.zilio@hotmail.fr" <> Date: Tue, 15 Sep 2015 09:34:52 +0200 Subject: first compil ok with addition of generic views --- pcilib/views.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pcilib/views.h') 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 -- cgit v1.2.3