📄 hv7121b.h
字号:
#ifndef h_HV7121B_h#define h_HV7121B_h/* Define a unique identifier for this sensor (begin of MD5(HV7121B)in Hex) */#define HV7121B 0x495DFE14const signature sig_HV7121B ={ /* Define the read only register address on I2C bus */ .i2c_reg_addr = { 0x54,0x9F,0xA0,0xA1, 0xA2,0xA3,0xA4,0xA5, 0xA7,0xA9,0xAB,0xAD, 0xB0,0xB1}, /* Define the read only register values on I2C bus */ .i2c_ro_value = { 0x04,0x20,0x04,0x8C, 0x03,0x21,0x04,0x64, 0x1A,0x40,0x03,0x80, 0xFC,0x03}, /* Then define the length of the signature */ .signature_length = 0, /* Define the sensor id */ .sensor_id = HV7121B};const SensorConfig sc_HV7121B = { .Addresses = { 0x00 }, .Values = { 0x00 }, .Length = 0};/* HV7121B Sensor initialization */__u8 HV7121B_CMD[]={ 0xFF,0x20,0x00,0x00, 0xF0,0x01,0x03,0x00, 0xF0,0x02,0x03,0x04};__u8 HV7121B_Initial[]={ 0x00,0x00,0x01,0xcc,0x00,0x02,0x00,0xcc,0x00,0x10,0x01,0xcc,0x00,0x01,0x01,0xcc,0x00,0x08,0x03,0xcc, 0x00,0x12,0x03,0xcc,0x00,0x12,0x01,0xcc,0x00,0x03,0x01,0xcc,0x00,0x04,0x60,0xcc,0x00,0x05,0x01,0xcc, 0x00,0x06,0x20,0xcc,0x00,0x98,0x00,0xcc,0x00,0x9a,0x00,0xcc,0x01,0x1a,0x00,0xcc,0x01,0x1c,0x00,0xcc, 0x00,0x30,0x2d,0xaa,0x00,0x11,0x00,0xaa,0x00,0x13,0x00,0xaa,0x00,0x14,0x01,0xaa,0x00,0x15,0x26,0xaa, 0x00,0x16,0x01,0xaa,0x00,0x17,0x66,0xaa,0x00,0x31,0x1d,0xaa,0x00,0x32,0x1d,0xaa,0x00,0x33,0x22,0xaa, 0x01,0x8d,0x70,0xcc,0x01,0xa8,0x50,0xcc,0x00,0x12,0x05,0xcc,0x01,0x81,0x03,0xcc,0x01,0x82,0x08,0xcc, 0x01,0x83,0x16,0xcc,0x01,0x84,0x03,0xcc,0x01,0x85,0x05,0xcc,0x01,0x86,0x14,0xcc,0x01,0x01,0x77,0xcc, 0x00,0x19,0x00,0xcc,0x01,0x80,0x10,0xcc,0x00,0x01,0x05,0xaa,0x01,0x00,0x0d,0xcc,0x01,0x89,0x06,0xcc, 0x01,0xc5,0x03,0xcc,0x01,0xc8,0x08,0xcc,0x01,0xc9,0x0b,0xcc,0x01,0xcb,0x13,0xcc,0x02,0x50,0x08,0xcc, 0x03,0x01,0x08,0xcc};__u8 HV7121B_50HZ[]={ 0x00,0x19,0x00,0xcc,0x00,0x25,0x07,0xaa,0x00,0x26,0x53,0xaa,0x00,0x27,0x00,0xaa,0x00,0x20,0x03,0xaa, 0x00,0x21,0x20,0xaa,0x00,0x22,0x02,0xaa,0x00,0x23,0xac,0xaa,0x01,0x90,0x2f,0xcc,0x01,0x91,0x9b,0xcc, 0x01,0x92,0x80,0xcc,0x01,0x95,0x01,0xcc,0x01,0x96,0xd4,0xcc,0x01,0x97,0xc0,0xcc,0x01,0x8c,0x12,0xcc, 0x01,0x8f,0x30,0xcc,0x01,0xa9,0x10,0xcc,0x01,0xaa,0x24,0xcc,0x00,0x1d,0x32,0xcc,0x00,0x1e,0x65,0xcc, 0x00,0x1f,0x98,0xcc,0x00,0x20,0xcb,0xcc};__u8 HV7121B_60HZ[]={ 0x00,0x19,0x00,0xcc,0x00,0x25,0x07,0xaa,0x00,0x26,0xa1,0xaa,0x00,0x27,0x20,0xaa,0x00,0x20,0x02,0xaa, 0x00,0x21,0x10,0xaa,0x00,0x22,0x02,0xaa,0x00,0x23,0x9c,0xaa,0x01,0x90,0x2f,0xcc,0x01,0x91,0x4d,0xcc, 0x01,0x92,0x60,0xcc,0x01,0x95,0x01,0xcc,0x01,0x96,0x86,0xcc,0x01,0x97,0xa0,0xcc,0x01,0x8c,0x12,0xcc, 0x01,0x8f,0x30,0xcc,0x01,0xa9,0x10,0xcc,0x01,0xaa,0x24,0xcc,0x00,0x1d,0x21,0xcc,0x00,0x1e,0x76,0xcc, 0x00,0x1f,0xcb,0xcc,0x00,0x20,0xf6,0xcc};__u8 HV7121B_NoFliker[]={ 0x00,0x19,0x00,0xcc,0x00,0x25,0x03,0xaa,0x00,0x26,0x00,0xaa,0x00,0x27,0x00,0xaa,0x00,0x20,0x00,0xaa, 0x00,0x21,0x10,0xaa,0x00,0x22,0x00,0xaa,0x00,0x23,0x03,0xaa,0x01,0x90,0x30,0xcc,0x01,0x91,0x00,0xcc, 0x01,0x92,0x00,0xcc,0x01,0x95,0x00,0xcc,0x01,0x96,0x60,0xcc,0x01,0x97,0x00,0xcc,0x01,0x8c,0x10,0xcc, 0x01,0x8f,0x20,0xcc,0x00,0x1d,0x01,0xcc,0x00,0x1e,0x10,0xcc,0x00,0x1f,0x28,0xcc,0x00,0x20,0x4f,0xcc, 0x01,0xa9,0x00,0xcc,0x01,0xaa,0x00,0xcc};/* HV7121B Sensor specific settings */__u8 HV7121B_Gamma[]={ 0x04};__u8 HV7121B_GammaT[]={ 0x13,0x38,0x59,0x79,0x92,0xa7,0xb9,0xc8,0xd4,0xdf,0xe7,0xee,0xf4,0xf9,0xfc,0xff,0x26,0x22,0x20,0x1c, 0x16,0x13,0x10,0x0d,0x0b,0x09,0x07,0x06,0x05,0x04,0x03,0x02};__u8 HV7121B_MatrixT[]={ 0x50,0xf8,0xf8,0xf8,0x50,0xf8,0xf8,0xf8,0x50};__u8 HV7121B_RJMatrixT[]={ 0x50,0xf8,0xf8,0xf8,0x50,0xf8,0xf8,0xf8,0x50};__u8 HV7121B_defaultSettings[]={ 7, /* BandWidth */ 20, /* Brightness */ 20, /* Contrast */ 18, /* Hue */ 50, /* Saturation */ 3, /* Sharpness */ 4, /* Gamma */ 1, /* WhiteBalance */ 0, /* BackLight */ 1, /* ColorEnable */ 7, /* FrameRate */ 5, /* Exposure */ 1, /* Gain */ 0, /* Mirror */ 1, /* Flicker */ 1, /* Default */ 1, /* ExposureAuto */ 1, /* WhiteBalanceAuto */ 1, /* GainAuto */ 1, /* BandWidthAuto */ 0, /* Vertical */ 64, /* Rgain */ 64, /* Ggain */ 64 /* Bgain */};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -