From 5f4b3a8bb26c54e7dac29ffc580ffd4e4386471a Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sat, 22 Feb 2014 05:20:57 +0100 Subject: Add frame-reject registers to IPECamera model --- pcilib.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pcilib.h') 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; -- cgit v1.2.3