1/* sane - Scanner Access Now Easy.
2
3   Copyright (C) 2019 Povilas Kanapickas <povilas@radix.lt>
4
5   This file is part of the SANE package.
6
7   This program is free software; you can redistribute it and/or
8   modify it under the terms of the GNU General Public License as
9   published by the Free Software Foundation; either version 2 of the
10   License, or (at your option) any later version.
11
12   This program is distributed in the hope that it will be useful, but
13   WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15   General Public License for more details.
16
17   You should have received a copy of the GNU General Public License
18   along with this program.  If not, see <https://www.gnu.org/licenses/>.
19*/
20
21#ifndef BACKEND_GENESYS_COMMAND_SET_COMMON_H
22#define BACKEND_GENESYS_COMMAND_SET_COMMON_H
23
24#include "command_set.h"
25
26namespace genesys {
27
28
29/** Common command set functionality
30 */
31class CommandSetCommon : public CommandSet
32{
33public:
34    ~CommandSetCommon() override;
35
36    bool is_head_home(Genesys_Device& dev, ScanHeadId scan_head) const override;
37
38    void set_xpa_lamp_power(Genesys_Device& dev, bool set) const override;
39
40    void set_motor_mode(Genesys_Device& dev, Genesys_Register_Set& regs,
41                        MotorMode mode) const override;
42};
43
44} // namespace genesys
45
46#endif // BACKEND_GENESYS_COMMAND_SET_COMMON_H
47