480
- 收藏
- 点赞
- 分享
- 举报
hisi外接设备检测
hisi 自带HDMI 外接设备检测 直接调用该接口
HI_S32 HI_MPI_HDMI_Force_GetEDID(HI_HDMI_ID_E enHdmi, HI_HDMI_EDID_S
*pstEdidData);
enHdmi 0 pstEdidData hdmi edid 信息
it66121 HDMI 外接设备检测
typedef struct _66121_out_device_cheak{
char PEDID[128] ;
char have_devie;
}T_66121_out_device_cheak;
T_66121_out_device_cheak t_66121_out_device_cheak;
int main()
{
int i =0 ;
int cheak_falg = 0;
memset(&t_66121_out_device_cheak,0,sizeof(T_66121_out_device_cheak));
int fd = open("/dev/it66121_dev", O_RDONLY);
if(fd < 0)
{
printf("open file error!\n");
return -1;
}
if(ioctl(fd, CHEAK_6612_OUT_DEVICE_EDID, (void *)&t_66121_out_device_cheak));
if(t_66121_out_device_cheak.have_devie == 1)
{
printf("have device bt1102 out \n");
printf("the edid value is \n");
for(i =0 ;i< 128 ;i++)
{
printf(" %x",t_66121_out_device_cheak.PEDID);
}
}
else
{
printf("d'not have device bt1102 out \n");
}
close(fd);
}
VGA 外接设备检测
T_vga_out_device_cheak t_vga_out_device_cheak;
int main(int argc, char* argv[])
{
memset(&t_vga_out_device_cheak,0,sizeof(T_vga_out_device_cheak));
int dev_fd = open("/dev/device_vga_cheak",O_RDWR);
if(dev_fd < 0)
{
printf("open dev/device_vga_cheak failure\n");
}
ioctl(dev_fd, cheak_vga_out_device,&t_vga_out_device_cheak);
if(t_vga_out_device_cheak.have_vga_out_devie == 1)
{
printf("have vga out \n");
}
else
{
printf("D'not have vga out \n");
}
close(dev_fd); //调用完毕请一定关闭文件描述符
return 0;
}
HI_S32 HI_MPI_HDMI_Force_GetEDID(HI_HDMI_ID_E enHdmi, HI_HDMI_EDID_S
*pstEdidData);
enHdmi 0 pstEdidData hdmi edid 信息
it66121 HDMI 外接设备检测
typedef struct _66121_out_device_cheak{
char PEDID[128] ;
char have_devie;
}T_66121_out_device_cheak;
T_66121_out_device_cheak t_66121_out_device_cheak;
int main()
{
int i =0 ;
int cheak_falg = 0;
memset(&t_66121_out_device_cheak,0,sizeof(T_66121_out_device_cheak));
int fd = open("/dev/it66121_dev", O_RDONLY);
if(fd < 0)
{
printf("open file error!\n");
return -1;
}
if(ioctl(fd, CHEAK_6612_OUT_DEVICE_EDID, (void *)&t_66121_out_device_cheak));
if(t_66121_out_device_cheak.have_devie == 1)
{
printf("have device bt1102 out \n");
printf("the edid value is \n");
for(i =0 ;i< 128 ;i++)
{
printf(" %x",t_66121_out_device_cheak.PEDID);
}
}
else
{
printf("d'not have device bt1102 out \n");
}
close(fd);
}
VGA 外接设备检测
T_vga_out_device_cheak t_vga_out_device_cheak;
int main(int argc, char* argv[])
{
memset(&t_vga_out_device_cheak,0,sizeof(T_vga_out_device_cheak));
int dev_fd = open("/dev/device_vga_cheak",O_RDWR);
if(dev_fd < 0)
{
printf("open dev/device_vga_cheak failure\n");
}
ioctl(dev_fd, cheak_vga_out_device,&t_vga_out_device_cheak);
if(t_vga_out_device_cheak.have_vga_out_devie == 1)
{
printf("have vga out \n");
}
else
{
printf("D'not have vga out \n");
}
close(dev_fd); //调用完毕请一定关闭文件描述符
return 0;
}
我来回答
回答0个
时间排序
认可量排序

或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片
相关问答
-
2019-10-22 11:15:18
-
2012-12-04 13:21:01
-
2019-06-21 17:23:50
-
2018-08-10 16:47:56
-
2018-12-28 16:18:38
-
2019-02-20 15:27:34
-
2015-12-18 14:03:40
-
2017-06-13 11:52:03
-
2019-03-29 10:08:27
-
2016-08-10 16:23:49
-
2018-10-29 10:19:25
-
2019-12-25 11:31:25
-
2018-12-25 09:34:42
-
2016-12-20 11:25:28
-
2016-04-04 20:06:53
-
52020-07-17 16:03:04
-
2018-12-26 11:13:18
-
2018-05-09 17:15:38
-
12019-03-05 11:10:58
无更多相似问答 去提问

点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认