From fd215e3fd7d29c2c8605d8571091dae1c4f133bc Mon Sep 17 00:00:00 2001 From: zilio nicolas Date: Thu, 10 Sep 2015 12:52:27 +0200 Subject: towards better views i hope --- views.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 views.h (limited to 'views.h') diff --git a/views.h b/views.h new file mode 100644 index 0000000..988e376 --- /dev/null +++ b/views.h @@ -0,0 +1,15 @@ +typedef struct pcilib_view_enum_s pcilib_view_enum_t; + +typedef struct pcilib_view_formula_s pcilib_view_formula_t; + + +/** + * function to read a register using a view + */ +int pcilib_read_view(pcilib_t *ctx, const char *bank, const char *regname, const char *view/*, const char *unit*/, size_t value_size, void *value); + +/** + * function to write to a register using a view + */ +int pcilib_write_view(pcilib_t *ctx, const char *bank, const char *regname, const char *view/*, const char *unit*/, size_t value_size, void *value); + -- cgit v1.2.3