summaryrefslogtreecommitdiffstats
path: root/pcilib/views.h
diff options
context:
space:
mode:
authornicolas.zilio@hotmail.fr <>2015-09-15 11:45:37 +0200
committernicolas.zilio@hotmail.fr <>2015-09-15 11:45:37 +0200
commit6c47064466d8484813741f347e41af1d4ac90f85 (patch)
treec5b2ff848825c8a4395ca17350c5e85569097c91 /pcilib/views.h
parentc71075ca84d896c650dd0b65c7664149ed51dcec (diff)
downloadpcitool-6c47064466d8484813741f347e41af1d4ac90f85.tar.gz
pcitool-6c47064466d8484813741f347e41af1d4ac90f85.tar.bz2
pcitool-6c47064466d8484813741f347e41af1d4ac90f85.tar.xz
pcitool-6c47064466d8484813741f347e41af1d4ac90f85.zip
cleaning
Diffstat (limited to 'pcilib/views.h')
-rw-r--r--pcilib/views.h30
1 files changed, 0 insertions, 30 deletions
diff --git a/pcilib/views.h b/pcilib/views.h
index 5d9100e..ae92d0d 100644
--- a/pcilib/views.h
+++ b/pcilib/views.h
@@ -6,10 +6,6 @@
typedef struct pcilib_view_enum_s pcilib_view_enum_t;
-typedef struct pcilib_view_formula_s pcilib_view_formula_t;
-
-typedef struct pcilib_view_enum2_s pcilib_view_enum2_t;
-
typedef struct pcilib_view_s pcilib_view_t;
typedef struct pcilib_formula_s pcilib_formula_t;
@@ -29,15 +25,6 @@ struct pcilib_formula_s{
char* write_formula;
};
-/**
- * complete type for an enum view : name will be changed after with the previous one
- */
-struct pcilib_view_enum2_s {
- const char* name;
- pcilib_view_enum_t* enums_list;
- const char* description;
-};
-
struct pcilib_view_s{
const char* name;
const char* description;
@@ -45,17 +32,6 @@ struct pcilib_view_s{
void* parameters;
pcilib_unit_t base_unit;
};
-/**
- * new type to define a formula view
- */
-struct pcilib_view_formula_s {
- const char *name; /**<name of the view*/
- const char *read_formula; /**< formula to parse to read from a register*/
- const char *write_formula; /**<formula to parse to write to a register*/
- // **see it later** const char *unit; (?)
- const char *description;
- pcilib_unit_t base_unit;
-};
/**
* function to read a register using a view
@@ -67,16 +43,10 @@ int pcilib_read_view(pcilib_t *ctx, const char *bank, const char *regname, const
*/
int pcilib_write_view(pcilib_t *ctx, const char *bank, const char *regname, const char *unit, size_t value_size, void *value);
-int pcilib_add_views_enum(pcilib_t* ctx,size_t n, const pcilib_view_enum2_t* views);
-
-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