summaryrefslogtreecommitdiffstats
path: root/pcilib.h
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@dside.dyndns.org>2014-02-22 05:20:57 +0100
committerSuren A. Chilingaryan <csa@dside.dyndns.org>2014-02-22 05:20:57 +0100
commit5f4b3a8bb26c54e7dac29ffc580ffd4e4386471a (patch)
treef6b59b2a10ce1b9a345d6939ca85c5b2fa0eb8ea /pcilib.h
parentf83e1d4082d4a7b5802ca665acab088dcea52863 (diff)
downloadipecamera-5f4b3a8bb26c54e7dac29ffc580ffd4e4386471a.tar.gz
ipecamera-5f4b3a8bb26c54e7dac29ffc580ffd4e4386471a.tar.bz2
ipecamera-5f4b3a8bb26c54e7dac29ffc580ffd4e4386471a.tar.xz
ipecamera-5f4b3a8bb26c54e7dac29ffc580ffd4e4386471a.zip
Add frame-reject registers to IPECamera model
Diffstat (limited to 'pcilib.h')
-rw-r--r--pcilib.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/pcilib.h b/pcilib.h
index dfe4b6c..4df7f1a 100644
--- a/pcilib.h
+++ b/pcilib.h
@@ -130,6 +130,8 @@ typedef enum {
#define PCILIB_TIMEOUT_IMMEDIATE 0
#define PCILIB_IRQ_TYPE_ALL 0
#define PCILIB_IRQ_SOURCE_DEFAULT 0
+#define PCILIB_REGISTER_NO_BITS 0
+#define PCILIB_REGISTER_ALL_BITS ((pcilib_register_value_t)-1)
typedef struct {
pcilib_event_t type;
@@ -183,7 +185,9 @@ typedef struct {
pcilib_register_size_t offset;
pcilib_register_size_t bits;
pcilib_register_value_t defvalue;
- pcilib_register_value_t rwmask; /**< 1 - read before write bits, 0 - zero should be written to preserve value */
+ pcilib_register_value_t rwmask; /**< 1 - read before write bits, 0 - zero should be written to preserve value
+ Used to define how external bits of PCILIB_REGISTER_BITS registers are treated.
+ Currently it is a bit confusing, we may find a better way in the next release */
pcilib_register_mode_t mode;
pcilib_register_type_t type;