mipi

所属分类:软件工程
开发工具:C/C++
文件大小:38KB
下载次数:19
上传日期:2019-05-09 05:54:09
上 传 者jerry_xxh
说明:  华为mpp代码,海思芯片3516摄像头代码
(huawei mpp source code, including HI3516 chip sensor)

文件列表:
mipi\hi_mipi.h (11958, 2018-09-26)
mipi\hi_type.h (2190, 2018-09-26)
mipi\Makefile (2672, 2018-09-26)
mipi\mipi.c (75481, 2018-09-26)
mipi\mipi.c.h (118, 2018-09-26)
mipi\mipi_hal.c (94529, 2018-09-26)
mipi\mipi_hal.h (8529, 2018-09-26)
mipi\mipi_reg.h (85887, 2018-09-26)
mipi (0, 2018-09-26)

combo_dev_attr_t for mipi combo configuration, must be configured according to sensor data sheet. input_mode: MIPI/LVDS/SUBLVDS/HISPI/DC mipi_dev_attr_t: should be configured in MIPI input mode lvds_dev_attr_t: should be configured in LVDS/SUB_LVDS/HISPI input mode mipi_dev_attr_t: raw_data_type: 10/12/14 bit data type wdr_mode: none/2f/3f/4f lane_id: -1 means disable, should be configured according to sensor data lane lvds_dev_attr_t: img_size: oringnal sensor input image size raw_data_type: 8/10/12/14/16 bit data type wdr_mode: none/2f/3f/4f/dol_2f/dol_3f/dol_4f sync_mode: sol/sav vsync_type: normal/share/hconnect data_endian: little/big fidtype: in_sav/in_data sync_code_endian: little/big lane_id: -1 means disable, should be configured according to sensor data lane sync_code: each lane and each vc may have diffent sync_code, each sync code has 4 params: sync_mode is SYNC_MODE_SOL: SOL, EOL, SOF, EOF sync_mode is SYNC_MODE_SAV: valid sav, valid eav, invalid sav, invalid eav ----------------------------------------------------------------------------------- example: 1. mn34220 12bit sensor wdr output: combo_dev_attr_t SUBLVDS_4lane_SENSOR_MN34220_12BIT_1080_2WDR1_ATTR = { .devno = 0, /* input mode */ .input_mode = INPUT_MODE_SUBLVDS, { .lvds_attr = { .img_size = {SENSOR_WIDTH, SENSOR_HEIGHT}, .raw_data_type = RAW_DATA_12BIT, .wdr_mode = HI_WDR_MODE_2F, .sync_mode = LVDS_SYNC_MODE_SOF, .vsync_type = {LVDS_VSYNC_NORMAL, 0, 0}, .fid_type = {LVDS_FID_NONE, HI_TRUE}, .data_endian = LVDS_ENDIAN_BIG, sync_code_endian = LVDS_ENDIAN_BIG, .lane_id = {0, 2, -1, -1, 1, 3, -1, -1, -1, -1, -1, -1}, .sync_code = { {{0x002, 0x003, 0x000, 0x001}, //PHY0_lane0 {0x202, 0x203, 0x200, 0x201}, {0x102, 0x103, 0x100, 0x101}, {0x302, 0x303, 0x300, 0x301}}, {{0x006, 0x007, 0x004, 0x005}, //PHY0_lane1 {0x206, 0x207, 0x204, 0x205}, {0x106, 0x107, 0x104, 0x105}, {0x306, 0x307, 0x304, 0x305}}, {{0x00a, 0x00b, 0x008, 0x009}, //PHY0_lane2 {0x20a, 0x20b, 0x208, 0x209}, {0x10a, 0x10b, 0x108, 0x109}, {0x30a, 0x30b, 0x308, 0x309}}, {{0x00a, 0x00b, 0x008, 0x009}, //PHY0_lane3 {0x20a, 0x20b, 0x208, 0x209}, {0x10a, 0x10b, 0x108, 0x109}, {0x30a, 0x30b, 0x308, 0x309}}, {{0x012, 0x013, 0x010, 0x011},//PHY1_lane0 {0x212, 0x213, 0x210, 0x211}, {0x112, 0x113, 0x110, 0x111}, {0x312, 0x313, 0x310, 0x311}}, {{0x016, 0x017, 0x014, 0x015}, //PHY1_lane1 {0x216, 0x217, 0x214, 0x215}, {0x116, 0x117, 0x114, 0x115}, {0x316, 0x317, 0x314, 0x315}}, {{0x01a, 0x01b, 0x018, 0x019}, //PHY1_lane2 {0x21a, 0x21b, 0x218, 0x219}, {0x11a, 0x11b, 0x118, 0x119}, {0x31a, 0x31b, 0x318, 0x319}}, {{0x01a, 0x01b, 0x018, 0x019}, //PHY1_lane3 {0x21a, 0x21b, 0x218, 0x219}, {0x11a, 0x11b, 0x118, 0x119}, {0x31a, 0x31b, 0x318, 0x319}} } } } }; 2. imx185 mipi input mode: combo_dev_attr_t MIPI_4lane_SENSOR_IMX185_12BIT_ATTR = { .devno = 0, .input_mode = INPUT_MODE_MIPI, { .mipi_attr = { .raw_data_type = RAW_DATA_12BIT, .wdr_mode = HI_WDR_MODE_NONE, .lane_id = {0, 1, 2, 3, -1, -1, -1, -1} } } };

近期下载者

相关文件


收藏者