ESP3D
3.0
Firmware for ESP boards connected to 3D Printer
camera.h
Go to the documentation of this file.
1
/*
2
camera.h - camera functions class
3
4
Copyright (c) 2014 Luc Lebosse. All rights reserved.
5
6
This library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
This library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with this library; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
21
22
23
#ifndef _CAMERA_H
24
#define _CAMERA_H
25
26
class
Camera
27
{
28
public
:
29
Camera
();
30
~Camera
();
31
bool
initHardware
(
bool
forceinit =
false
);
32
bool
begin
(
bool
forceinit =
false
);
33
void
end
();
34
void
handle
();
35
int
command
(
const
char
* param,
const
char
* value);
36
uint8_t
GetModel
();
37
const
char
*
GetModelString
();
38
bool
started
()
39
{
40
return
_started;
41
}
42
bool
initialised
()
43
{
44
return
_initialised;
45
}
46
bool
stopHardware
();
47
void
connect
(
bool
status)
48
{
49
_connected = status;
50
}
51
bool
isconnected
()
52
{
53
return
_connected;
54
}
55
uint16_t
port
()
56
{
57
return
_port;
58
}
59
private
:
60
bool
_initialised;
61
bool
_started;
62
bool
_connected;
63
uint16_t _port;
64
};
65
66
extern
Camera
esp3d_camera
;
67
68
#endif //_CAMERA_H
69
Camera::~Camera
~Camera()
Camera::started
bool started()
Definition:
camera.h:38
Camera::begin
bool begin(bool forceinit=false)
Camera::stopHardware
bool stopHardware()
Camera::isconnected
bool isconnected()
Definition:
camera.h:51
Camera::GetModel
uint8_t GetModel()
Camera::command
int command(const char *param, const char *value)
Camera::Camera
Camera()
Camera::initialised
bool initialised()
Definition:
camera.h:42
Camera::GetModelString
const char * GetModelString()
Camera::end
void end()
Camera::connect
void connect(bool status)
Definition:
camera.h:47
Camera::port
uint16_t port()
Definition:
camera.h:55
Camera
Definition:
camera.h:26
esp3d_camera
Camera esp3d_camera
Camera::initHardware
bool initHardware(bool forceinit=false)
Camera::handle
void handle()
esp3d
src
modules
camera
camera.h
Generated by
1.8.17