1 /*
2 * Copyright 2004-2008, François Revol, <revol@free.fr>.
3 * Distributed under the terms of the MIT License.
4 */
5
6 #include "CamSensor.h"
7
8 static const uint8 sProbeAddressList[] = {
9 0x00,0x01,0x02,0x11,0x13,0x14,0x15,0x16,0x17
10 };
11 static const uint8 sProbeMatchList[] = {
12 0x02,0x09,0x01,0x02,0x02,0x01,0xe2,0x02,0x82
13 };
14
15 class HV7131E1Sensor : public CamSensor {
16 public:
17 HV7131E1Sensor(CamDevice *_camera);
18 ~HV7131E1Sensor();
19 status_t Probe();
20 const char* Name();
21
22 //XXX not sure
Use400kHz() const23 virtual bool Use400kHz() const { return false; };
UseRealIIC() const24 virtual bool UseRealIIC() const { return false; };
25
26 };
27
28
HV7131E1Sensor(CamDevice * _camera)29 HV7131E1Sensor::HV7131E1Sensor(CamDevice *_camera)
30 : CamSensor(_camera)
31 {
32
33 }
34
35
~HV7131E1Sensor()36 HV7131E1Sensor::~HV7131E1Sensor()
37 {
38 }
39
40
41 status_t
Probe()42 HV7131E1Sensor::Probe()
43 {
44 return ProbeByIICSignature(sProbeAddressList, sProbeMatchList,
45 sizeof(sProbeMatchList));
46 }
47
48
49 const char *
Name()50 HV7131E1Sensor::Name()
51 {
52 return "Hynix hv7131e1";
53 }
54
55
56 B_WEBCAM_DECLARE_SENSOR(HV7131E1Sensor, hv7131e1)
57
58