资源简介

编程器CH341A-1.31软件及驱动 有软件 有并口驱动 有串口驱动

资源截图

代码片段和文件信息

/*
ch34x USB to serial adaptor driver
http://www.wch.cn
http://www.winchiphead.cn  
*/

// This module is ch34x USB to serial adaptor driver on linux 2.4.20 base on usb_serial.o
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#ifdef CONFIG_USB_SERIAL_DEBUG
static int debug=1;
#else
static int debug;
#endif

#include “usb-serial.h“

/*
* Version Information
*/
#define DRIVER_VERSION “v1.0“
#define DRIVER_DESC “NanJing QinHeng ch34x USB to serial adaptor driver“
#define FALSE -1

#define ch34x_VENDOR_ID_1  0x4348 // old vid
#define ch34x_VENDOR_ID_2  0x1a86 // new vid
#define ch34x_PRODUCT_ID_1 0x5523 // pid
#define ch34x_PRODUCT_ID_2 0x7523 // pid
#define CONTROL_DTR      0x20
#define CONTROL_RTS      0x40
#define BREAK_ON      0xffff
#define BREAK_OFF      0x0000
#define VENDOR_READ_REQUEST_TYPE 0xc0
#define VENDOR_READ_REQUEST     0x01
#define VENDOR_WRITE_REQUEST_TYPE 0x40
#define VENDOR_WRITE_REQUEST 0x01

static struct usb_device_id id_table [] = 
{
{ USB_DEVICE(ch34x_VENDOR_ID_1 ch34x_PRODUCT_ID_1) }
{ USB_DEVICE(ch34x_VENDOR_ID_1 ch34x_PRODUCT_ID_2) }
{ USB_DEVICE(ch34x_VENDOR_ID_2 ch34x_PRODUCT_ID_1) }
{ USB_DEVICE(ch34x_VENDOR_ID_2 ch34x_PRODUCT_ID_2) }
{ } /* Terminating entry */
};

MODULE_DEVICE_TABLE (usb id_table);

static int  ch34x_open (struct usb_serial_port *port struct file *filp);
static void ch34x_close (struct usb_serial_port *port struct file *filp);
static void ch34x_set_termios (struct usb_serial_port *portstruct termios *old);
static int  ch34x_ioctl (struct usb_serial_port *port struct file *fileunsigned int cmd unsigned long arg);
static void ch34x_read_int_callback (struct urb *urb);
static void ch34x_read_bulk_callback (struct urb *urb);
static void ch34x_write_bulk_callback (struct urb *urb);
static int  ch34x_write (struct usb_serial_port *port int from_userconst unsigned char*buf int count);
static void ch34x_break_ctl(struct usb_serial_port *portint break_state);
static int  ch34x_startup (struct usb_serial *serial);
static void ch34x_shutdown (struct usb_serial *serial);
static int SetBaudrate( unsigned int value struct usb_serial_port *port);

static struct usb_serial_device_type ch34x_device = {
.owner =         THIS_MODULE
.name =           “ch34x“
.id_table =          id_table
.num_interrupt_in =     NUM_DONT_CARE
.num_bulk_in =        1
.num_bulk_out =      1
.num_ports =      1
.open =             ch34x_open
.close =         ch34x_close
.write =         ch34x_write
.ioctl =         ch34x_ioctl
.break_ctl =      ch34x_break_ctl
.set_termios =      ch34x_set_termios
.read_bulk_callbac

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      35185  1981-08-02 09:36  编程器CH341A-1.31软件及驱动\CH341A编程器\CH341A.DLL

    .......   1467904  1981-08-02 09:36  编程器CH341A-1.31软件及驱动\CH341A编程器\CH341AFree.exe

     文件        629  2019-07-02 09:43  编程器CH341A-1.31软件及驱动\CH341A编程器\Config.ini

     文件    1314360  1981-08-02 09:36  编程器CH341A-1.31软件及驱动\CH341A编程器\Database.Dat

     文件       8040  1981-08-02 09:36  编程器CH341A-1.31软件及驱动\CH341A编程器\Languages\ChineseSimp.ini

     文件      90112  1981-08-02 09:36  编程器CH341A-1.31软件及驱动\CH341A编程器\Zlib1.dll

     文件       6712  2005-07-30 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\CH341PT.DLL

     文件      58368  2011-11-05 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\CH341S64.SYS

     文件      19680  2007-06-12 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\CH341S98.SYS

     文件       9822  2011-11-25 07:22  编程器CH341A-1.31软件及驱动\CH341串口驱动\ch341SER.CAT

    .......     83800  2012-02-15 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\CH341SER.EXE

     文件       5895  2011-11-04 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\CH341SER.INF

     文件      39696  2011-11-05 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\CH341SER.SYS

     文件      20089  2008-12-18 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\CH341SER.VXD

    .......     42328  2012-02-15 00:00  编程器CH341A-1.31软件及驱动\CH341串口驱动\DRVSETUP64\DRVSETUP64.exe

     文件      16559  2010-03-19 08:38  编程器CH341A-1.31软件及驱动\CH341串口驱动\Linux\ch34x.c

     文件       2322  2007-10-25 14:15  编程器CH341A-1.31软件及驱动\CH341串口驱动\Linux\Makefile

     文件        364  2004-03-29 18:55  编程器CH341A-1.31软件及驱动\CH341串口驱动\Linux\ReadMe.txt

     文件      31012  2008-10-15 00:00  编程器CH341A-1.31软件及驱动\CH341并口驱动\CH341DLL.DLL

     文件      98304  2011-03-14 00:00  编程器CH341A-1.31软件及驱动\CH341并口驱动\CH341PAR.EXE

     文件      31232  2009-06-12 00:00  编程器CH341A-1.31软件及驱动\CH341并口驱动\CH341W64.SYS

     文件       8508  2010-12-23 08:56  编程器CH341A-1.31软件及驱动\CH341并口驱动\CH341WDM.CAT

     文件       5531  2010-11-03 08:59  编程器CH341A-1.31软件及驱动\CH341并口驱动\CH341WDM.INF

     文件      20464  2009-06-12 00:00  编程器CH341A-1.31软件及驱动\CH341并口驱动\CH341WDM.SYS

    .......     36352  2011-03-14 00:00  编程器CH341A-1.31软件及驱动\CH341并口驱动\DRVSETUP64\DRVSETUP64.exe

     目录          0  1981-08-02 09:36  编程器CH341A-1.31软件及驱动\CH341A编程器\Languages

     目录          0  2019-06-17 10:24  编程器CH341A-1.31软件及驱动\CH341串口驱动\DRVSETUP64

     目录          0  2019-06-17 10:24  编程器CH341A-1.31软件及驱动\CH341串口驱动\Linux

     目录          0  2019-06-17 10:24  编程器CH341A-1.31软件及驱动\CH341并口驱动\DRVSETUP64

     目录          0  2019-07-02 09:34  编程器CH341A-1.31软件及驱动\CH341A编程器

............此处省略6个文件信息

评论

共有 条评论