2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
9 #define HDCS_ADDR_QC 0xaa
11 #define HDCS_IDENT 0x00
13 class HDCS1000Sensor
: public CamSensor
{
15 HDCS1000Sensor(CamDevice
*_camera
);
18 virtual status_t
Probe();
20 virtual uint8
IICReadAddress() const { return HDCS_ADDR_QC
; };
21 virtual uint8
IICWriteAddress() const { return HDCS_ADDR_QC
; };
25 HDCS1000Sensor::HDCS1000Sensor(CamDevice
*_camera
)
31 HDCS1000Sensor::~HDCS1000Sensor()
37 HDCS1000Sensor::Probe()
42 Device()->SetIICBitsMode(8);
44 err
= Device()->ReadIIC8(HDCS_IDENT
+1, &data
);
48 PRINT((CH
": found %s sensor!" CT
, Name()));
55 B_WEBCAM_DECLARE_SENSOR(HDCS1000Sensor
, hdcs1000
)