⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 zc030x_v4l.h

📁 中星微301摄想头最新驱动
💻 H
字号:
#ifndef h_Zc030x_V4L_h#define h_Zc030x_V4L_h /* Include kernel specific code */#include "zc030x_kerneldef.h"/* Define Video for Linux specific error codes */#define V4L_Error   -1#define V4L_Warning  0#define V4L_OK       1#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 24)inline void * video_get_drvdata(struct video_device *vdev);inline void video_set_drvdata(struct video_device *vdev, void *data);inline struct video_device *video_device_alloc(void);inline void video_device_release(struct video_device *vdev);#endif/* internal functions */int zc030x_do_ioctl (struct inode *inode, struct file *file, unsigned int cmd, void *arg);/* Define hardware number */#define VID_HARDWARE_ZC030X   37/* Fill the video dynamic device object */int zc030x_v4l_initdev(struct file_operations * pFops, struct usb_zc030x * pDev, const char * Name, struct usb_device * udev);/* Release video device */int zc030x_v4l_releasedev(struct video_device * pVideoDevice);/* Video for Linux specific IOCTLs */int zc030x_v4l_ioctl (struct inode *inode, struct file *file, unsigned int cmd, void *arg);/* Get the depth of pixels */int zc030x_v4l_getdepth(int Palette);#endif // __ZC030X_V4L_H

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -