应用介绍
此项目是ADV7842—abc芯片linux驱动。
支持hdmi/vga自适应分辨率(在海思sdk中需要自己根据芯片返回的时序调整VI)
#ifndef ADV7842_H_
#define ADV7842_H_
typedef enum ADV7842_CTRL_CMD_E
{
CMD_DEVICE_INIT,
CMD_QUERY_TIMINGS,
} ADV7842_CTRL_CMD;
typedef enum ADV7842_CMODE_E
{
MODE_HDMI,
MODE_VGA
} ADV7842_MODE;
typedef enum ADV7842_HDMI_PORT_E
{
HDMI_PORT_A,
HDMI_PORT_B
} ADV7842_HDMI_PORT;
/** struct bt_timings - BT.656/BT.1120 timing data
* @width: total width of the active video in pixels
* @height: total height of the active video in lines
* @interlaced: Interlaced or progressive
* @polarities: Positive or negative polarities
* @pixelclock: Pixel clock in HZ. Ex. 74.25MHz->74250000
* @hfrontporch:Horizontal front porch in pixels
* @hsync: Horizontal Sync length in pixels
* @hbackporch: Horizontal back porch in pixels
* @vfrontporch:Vertical front porch in lines
* @vsync: Vertical Sync length in lines
* @vbackporch: Vertical back porch in lines
* @il_vfrontporch:Vertical front porch for the even field
* (aka field 2) of interlaced field formats
* @il_vsync: Vertical Sync length for the even field
* (aka field 2) of interlaced field formats
* @il_vbackporch:Vertical back porch for the even field
* (aka field 2) of interlaced field formats
* @standards: Standards the timing belongs to
*
* A note regarding vertical interlaced timings: height refers to the total
* height of the active video frame (= two fields). The blanking timings refer
* to the blanking of each field. So the height of the total frame is
* calculated as follows:
*
* tot_height = height + vfrontporch + vsync + vbackporch +
* il_vfrontporch + il_vsync + il_vbackporch
*
* The active height of each field is height / 2.
*/
struct bt_timings
{
unsigned int width;
unsigned int height;
unsigned int interlaced;
unsigned int polarities;
unsigned int pixelclock;
unsigned int hfrontporch;
unsigned int hsync;
unsigned int hbackporch;
unsigned int vfrontporch;
unsigned int vsync;
unsigned int vbackporch;
unsigned int il_vfrontporch;
unsigned int il_vsync;
unsigned int il_vbackporch;
unsigned int standards;
unsigned int flags;
unsigned int hdmi_colorspace;
};
#define SYSTEM_CLOCK_PERIOD 28636363
#endif /* ADV7842_H_ */
了解详情请下载附件查看。
©版权声明:本文内容由互联网用户自发贡献,版权归原创作者所有,本站不拥有所有权,也不承担相关法律责任。如果您发现本站中有涉嫌抄袭的内容,欢迎发送邮件至: www_apollocode_net@163.com 进行举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。
转载请注明出处: apollocode » ADV7842—adc芯片linux驱动
文件列表(部分)
名称 | 大小 | 修改日期 |
---|---|---|
adv7842.c | 1.33 KB | 2020-01-19 |
adv7842.h | 0.77 KB | 2020-01-19 |
adv7842_3routes_i2c.h | 0.24 KB | 2020-01-19 |
adv7842_define.h | 0.23 KB | 2020-01-19 |
gpio_i2c.h | 0.27 KB | 2020-01-19 |
Makefile | 0.28 KB | 2020-01-19 |
private_i2c.h | 0.96 KB | 2020-01-19 |
rx_detect.c | 3.62 KB | 2020-01-19 |
rx_detect.h | 0.11 KB | 2020-01-19 |
rx_detect_define.h | 1.89 KB | 2020-01-19 |
v4l2-dv-timings.h | 2.80 KB | 2020-01-19 |
adv7842 | 0.00 KB | 2020-08-02 |
发表评论 取消回复