Buffer Interface
SequenceInterface.h
Go to the documentation of this file.
1 #pragma once
2 #include "BufferInterface.h"
3 #include "BiApi.h"
4 
5 namespace BufferAcquisition
6 {
18  class BFDLL SequenceInterface : public BufferInterface
19  {
20  public:
21  // create instance
23 
24  // create instance and open board
25  SequenceInterface (const BFU32 brdNumber);
26 
27  // create instance and open and setup board.
28  SequenceInterface (const BFU32 brdNumber, const BFU32 numBuffers, const BFU32 options);
29 
30  // create instance, open and setup the board with the buffers aligned
31  // on a specified alignment boundary.
32  SequenceInterface (const BFU32 brdNumber, const BFU32 numBuffers, const BFU32 options, const BFSIZET alignment);
33 
35 
36  // Sets up the board for sequence acquisition.
37  BFVOID setup (const BFU32 numBuffers, const BFU32 options);
38 
39  // Sets up the board for sequence acquisition aligning each buffer
40  // on a specified alignment boundary.
41  BFVOID setup (const BFU32 numBuffers, const BFU32 options, const BFSIZET alignment);
42 
43  // Sets up the board for sequence acquisition.
44  BFVOID setup (PBFU32 *const pMemArray, const BFU32 numBuffers, const BFU32 options);
45 
46  // Frees resources allocated by setup.
47  BFVOID cleanup (BFVOID);
48 
49  // Change default acquisition settings.
50  BFVOID setSettings (const BFU32 startFrame, const BFU32 numFrames, const BFU32 skipFrames);
51 
52  // Wait for sequence to be acquired.
53  BFU32 seqWaitDone (const BFU32 timeout) const;
54 
55  // Issue sequence commands.
56  BFVOID seqControl (const BFU32 command, const BFU32 options);
57 
58  // Wait for error.
59  BFU32 seqErrorWait (BFVOID) const;
60 
61  // Returns error from error stack.
62  BFU32 getSeqError (BFVOID);
63 
64  // Returns the current frame being acquired.
65  BFU32 getCurFrameAcquired (BFVOID) const;
66 
67  // Returns when a frame has been DMAed into memory.
68  BFU32 waitDoneFrame (const BFU32 timeout) const;
69 
70  // Returns info about a buffer.
71  BiSeqInfo getBufferInfo (const BFU32 bufferNumber) const;
72 
73  // Clears buffer information for all buffers.
74  BFVOID clearBufferInfo (BFVOID);
75  };
76 
81 }
unsigned long BFU32
Definition: BFTypeNT.h:55
unsigned long * PBFU32
Definition: BFTypeNT.h:55
struct _BiSeqInfo BiSeqInfo
Class library for BitFlow frame grabber acquisition.
Definition: BFGTLUtilities.hpp:114
size_t BFSIZET
Definition: BFTypeNT.h:93
void BFVOID
Definition: BFTypeNT.h:32
Acquire a sequence of images using a BitFlow frame grabber.
Definition: SequenceInterface.h:18
Base class for buffered acquisition using a BitFlow frame grabber.
Definition: BufferInterface.h:63