2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
9 #define PB_ADDR_QC 0xba
14 class PB0100Sensor
: public CamSensor
{
16 PB0100Sensor(CamDevice
*_camera
);
18 virtual status_t
Probe();
20 virtual uint8
IICReadAddress() const { return PB_ADDR_QC
; };
21 virtual uint8
IICWriteAddress() const { return PB_ADDR_QC
; };
25 PB0100Sensor::PB0100Sensor(CamDevice
*_camera
)
28 Device()->SetIICBitsMode(16);
33 PB0100Sensor::~PB0100Sensor()
44 Device()->SetIICBitsMode(16);
46 err
= Device()->ReadIIC16(PB_IDENT
, &data
);
50 PRINT((CH
": found %s sensor!" CT
, Name()));
57 B_WEBCAM_DECLARE_SENSOR(PB0100Sensor
, pb0100
)