-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAtik16ThreadCB.h
85 lines (67 loc) · 2.6 KB
/
Atik16ThreadCB.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/**
Astronomy USB Appliance - Control Library
Copyright (C) 2009 Martin Burri ([email protected])
This program is free software licensed under LGPL;
you can redistribute it and/or modify it under the terms of
the GNU Lesser General Public License as published by the
Free Software Foundation; either version 3 of the License,
or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
/**
* @file Atik16ThreadCB.h
*****************************************************************************
* abstract class Atik16ThreadCB
*
* Astronomy USB Appliance driver for Linux and Win32
* The camera reader thread callback protorype
* for Artemis/ATIK cameras with USB 1.1 interface
* User of the Thread have to be derived from this class
*
* This is part of the Driver Library of wxAstroCapture
*
* Copyright (C) 2009 Martin Burri ([email protected])
*
*<hr>
*
* @b Project wxAstroCapture<br>
*
* @author M. Burri
* @date 01-Feb-2009
*
*****************************************************************************
*<hr>
* @b Updates
* - dd-mmm-yyyy V. Name: Description
*
*****************************************************************************/
#ifndef _ATIK16THREADCB_H_
#define _ATIK16THREADCB_H_
#include "ArtTypes.h" // enums and structs of the Atik environment
class Atik16ThreadCB
{
public:
Atik16ThreadCB() {};
virtual ~Atik16ThreadCB() {};
//! thread interface
virtual ArtSampleType* GetImageBuffer() =0;
//! Callback if timer expires
virtual void ProcessTimeElapsed() =0;
//! Callback if CCD Readout is needed (thread does not issue CCD commands)
virtual void ProcessTriggerRDCCD() =0;
//! Callback to indicate download percents
virtual void ProcessTriggerDownload(long downloadPercent) =0;
//! Callback to indicate the image was read and can be processed now
virtual void ProcessImageRead(bool readError, long realExpotime, long downloadBps) =0;
//! Callback when the worker is about to start
virtual void ProcessThreadStart() =0;
//! Callback when the worker is about to end
virtual void ProcessThreadEnd(int exitCode) =0;
};
#endif // _ATIK16THREADCB_H_