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
8static const uint8 sProbeAddressList[] = {
9	0x00,0x01,0x02,0x11,0x13,0x14,0x15,0x16,0x17
10};
11static const uint8 sProbeMatchList[] = {
12	0x02,0x09,0x01,0x02,0x02,0x01,0xe2,0x02,0x82
13};
14
15class HV7131E1Sensor : public CamSensor {
16public:
17	HV7131E1Sensor(CamDevice *_camera);
18	~HV7131E1Sensor();
19	status_t	Probe();
20	const char*	Name();
21
22//XXX not sure
23	virtual bool		Use400kHz() const { return false; };
24	virtual bool		UseRealIIC() const { return false; };
25
26};
27
28
29HV7131E1Sensor::HV7131E1Sensor(CamDevice *_camera)
30	: CamSensor(_camera)
31{
32
33}
34
35
36HV7131E1Sensor::~HV7131E1Sensor()
37{
38}
39
40
41status_t
42HV7131E1Sensor::Probe()
43{
44	return ProbeByIICSignature(sProbeAddressList, sProbeMatchList,
45		sizeof(sProbeMatchList));
46}
47
48
49const char *
50HV7131E1Sensor::Name()
51{
52	return "Hynix hv7131e1";
53}
54
55
56B_WEBCAM_DECLARE_SENSOR(HV7131E1Sensor, hv7131e1)
57
58