diff options
author | zilio nicolas <nicolas.zilio@kit.edu> | 2015-09-10 12:52:27 +0200 |
---|---|---|
committer | zilio nicolas <nicolas.zilio@kit.edu> | 2015-09-10 12:52:27 +0200 |
commit | fd215e3fd7d29c2c8605d8571091dae1c4f133bc (patch) | |
tree | 0f725ce36150ae2408b07a7a7b158d807b0facce /views.h | |
parent | 4763e65fcf6288e94adc76a44c762a904f698e72 (diff) | |
download | pcitool-fd215e3fd7d29c2c8605d8571091dae1c4f133bc.tar.gz pcitool-fd215e3fd7d29c2c8605d8571091dae1c4f133bc.tar.bz2 pcitool-fd215e3fd7d29c2c8605d8571091dae1c4f133bc.tar.xz pcitool-fd215e3fd7d29c2c8605d8571091dae1c4f133bc.zip |
towards better views i hope
Diffstat (limited to 'views.h')
-rw-r--r-- | views.h | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -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); + |