diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2015-03-29 18:05:58 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2015-03-29 18:05:58 +0200 |
commit | adb36212be886985dbaf397d7d2dd875b3d4aab8 (patch) | |
tree | 292b252b22f823eb4eb8753c7d437b723e23a85b /ipecamera/private.h | |
parent | b222af943c405df509eb9df084d203da4fbd324e (diff) | |
download | ipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.tar.gz ipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.tar.bz2 ipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.tar.xz ipecamera-adb36212be886985dbaf397d7d2dd875b3d4aab8.zip |
Fix frame size computation in ipecamera and few debuging options
Diffstat (limited to 'ipecamera/private.h')
-rw-r--r-- | ipecamera/private.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ipecamera/private.h b/ipecamera/private.h index b6fd0f7..db5298e 100644 --- a/ipecamera/private.h +++ b/ipecamera/private.h @@ -4,9 +4,10 @@ #include "ipecamera.h" #define IPECAMERA_BUG_EXTRA_DATA -#define IPECAMERA_BUG_MULTIFRAME_PACKETS +#define IPECAMERA_BUG_MULTIFRAME_PACKETS //**< this is by design, start of packet comes directly after the end of last one in streaming mode */ //#define IPECAMERA_BUG_INCOMPLETE_PACKETS #define IPECAMERA_BUG_POSTPONED_READ +#define IPECAMERA_DEBUG_BROKEN_FRAMES "/mnt/frames" //#define IPECAMERA_DEBUG_RAW_PACKETS "/mnt/frames" //#define IPECAMERA_ANNOUNCE_READY //**< announce new event only after the reconstruction is done */ @@ -16,6 +17,9 @@ #define IPECAMERA_SLEEP_TIME 250000 //**< Michele thinks 250 should be enough, but reset failing in this case */ #define IPECAMERA_NEXT_FRAME_DELAY 1000 //**< Michele requires 30000 to sync between End Of Readout and next Frame Req */ #define IPECAMERA_WAIT_FRAME_RCVD_TIME 0 //**< by Uros ,wait 6 ms */ +#define IPECAMERA_TRIGGER_WAIT_IDLE 200000 //**< In trigger call allow specified timeout for camera to get out of busy state. Set 0 to fail immideatly */ +#define IPECAMERA_READ_STATUS_DELAY 1000 //**< According to Uros, 1ms delay needed before consequitive reads from status registers */ + #define IPECAMERA_NOFRAME_SLEEP 100 #define IPECAMERA_NOFRAME_PREPROC_SLEEP 100 @@ -83,7 +87,7 @@ struct ipecamera_s { pcilib_register_t packet_len_reg; pcilib_register_t control_reg, status_reg; - pcilib_register_t status3_reg; + pcilib_register_t status2_reg, status3_reg; pcilib_register_t n_lines_reg; uint16_t line_reg; pcilib_register_t exposure_reg; |