kopia lustrzana https://gitlab.com/sane-project/backends
genesys: Add include guards to headers where missing
rodzic
dc1350781f
commit
b09aa6584d
|
@ -41,6 +41,9 @@
|
|||
If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
#ifndef BACKEND_GENESYS_GL124_H
|
||||
#define BACKEND_GENESYS_GL124_H
|
||||
|
||||
#include "genesys.h"
|
||||
|
||||
#define SETREG(adr,val) { dev->reg.init_reg(adr, val); }
|
||||
|
@ -123,3 +126,5 @@ static void gl124_stop_action(Genesys_Device* dev);
|
|||
|
||||
static void gl124_send_slope_table(Genesys_Device* dev, int table_nr,
|
||||
const std::vector<uint16_t>& slope_table, int steps);
|
||||
|
||||
#endif // BACKEND_GENESYS_GL124_H
|
||||
|
|
|
@ -44,6 +44,9 @@
|
|||
If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
#ifndef BACKEND_GENESYS_GL646_H
|
||||
#define BACKEND_GENESYS_GL646_H
|
||||
|
||||
#include "genesys.h"
|
||||
|
||||
static void gl646_set_fe(Genesys_Device* dev, const Genesys_Sensor& sensor, uint8_t set, int dpi);
|
||||
|
@ -242,3 +245,5 @@ static Motor_Master motor_master[] = {
|
|||
{MOTOR_5345, 1200, 1, QUATER_STEP, SANE_FALSE, SANE_TRUE , 0, 16, 2750, 2750, 255, 2000, 300, 0.3, 0.4, 146},
|
||||
{MOTOR_5345, 2400, 1, QUATER_STEP, SANE_FALSE, SANE_TRUE , 0, 16, 5500, 5500, 255, 2000, 300, 0.3, 0.4, 146}, /* 5500 guessed */
|
||||
};
|
||||
|
||||
#endif // BACKEND_GENESYS_GL646_H
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
|
||||
#include "genesys.h"
|
||||
|
||||
#ifndef BACKEND_GENESYS_GL841_H
|
||||
#define BACKEND_GENESYS_GL841_H
|
||||
|
||||
#define INITREG(adr,val) {dev->reg.init_reg(adr, val); }
|
||||
|
||||
/**
|
||||
|
@ -55,3 +58,5 @@ int gl841_exposure_time(Genesys_Device *dev, const Genesys_Sensor& sensor,
|
|||
int scan_step_type,
|
||||
int start,
|
||||
int used_pixels);
|
||||
|
||||
#endif // BACKEND_GENESYS_GL841_H
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
|
||||
#include "genesys.h"
|
||||
|
||||
#ifndef BACKEND_GENESYS_GL843_H
|
||||
#define BACKEND_GENESYS_GL843_H
|
||||
|
||||
#define SCAN_TABLE 0 /* table 1 at 0x4000 */
|
||||
#define BACKTRACK_TABLE 1 /* table 2 at 0x4800 */
|
||||
#define STOP_TABLE 2 /* table 3 at 0x5000 */
|
||||
|
@ -58,3 +61,5 @@
|
|||
#define SCAN_FLAG_DYNAMIC_LINEART 0x080
|
||||
|
||||
#define SETREG(adr,val) { dev->reg.init_reg(adr, val); }
|
||||
|
||||
#endif // BACKEND_GENESYS_GL843_H
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
|
||||
#include "genesys.h"
|
||||
|
||||
#ifndef BACKEND_GENESYS_GL846_H
|
||||
#define BACKEND_GENESYS_GL846_H
|
||||
|
||||
// Send the low-level scan command
|
||||
static void gl846_begin_scan(Genesys_Device* dev, const Genesys_Sensor& sensor,
|
||||
Genesys_Register_Set* reg, SANE_Bool start_motor);
|
||||
|
@ -140,3 +143,6 @@ static Memory_layout layouts[]={
|
|||
/* list terminating entry */
|
||||
{ NULL, 0, 0, 0, 0, {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0} }
|
||||
};
|
||||
|
||||
|
||||
#endif // BACKEND_GENESYS_GL846_H
|
||||
|
|
|
@ -41,6 +41,9 @@
|
|||
If you do not wish that, delete this exception notice.
|
||||
*/
|
||||
|
||||
#ifndef BACKEND_GENESYS_GL847_H
|
||||
#define BACKEND_GENESYS_GL847_H
|
||||
|
||||
#include "genesys.h"
|
||||
|
||||
/** set up registers for an actual scan
|
||||
|
@ -124,3 +127,6 @@ static Memory_layout layouts[]={
|
|||
0x02, 0x14, 0x09, 0x09, 0x09, 0x0a, 0x0f, 0xff
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
#endif // BACKEND_GENESYS_GL847_H
|
||||
|
|
Ładowanie…
Reference in New Issue