资源简介
linux下usb转串口系列驱动,支持cp21xx系列
代码片段和文件信息
/*
* Silicon Laboratories CP2101/CP2102 USB to RS232 serial adaptor driver
*
* Copyright (C) 2005 Craig Shelley (craig@microtron.org.uk)
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License version
* 2 as published by the Free Software Foundation.
*
* Support to set flow control line levels using TIOCMGET and TIOCMSET
* thanks to Karl Hiramoto karl@hiramoto.org. RTSCTS hardware flow
* control thanks to Munir Nassar nassarmu@real-time.com
*
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
/*
* Version Information
*/
#define DRIVER_VERSION “v0.08“
#define DRIVER_DESC “Silicon Labs CP2101/CP2102 RS232 serial adaptor driver“
/*
* Function Prototypes
*/
static int cp2101_open(struct tty_struct * struct usb_serial_port *
struct file *);
static void cp2101_cleanup(struct usb_serial_port *);
static void cp2101_close(struct tty_struct * struct usb_serial_port *
struct file*);
static void cp2101_get_termios(struct tty_struct *
struct usb_serial_port *port);
static void cp2101_get_termios_port(struct usb_serial_port *port
unsigned int *cflagp unsigned int *baudp);
static void cp2101_set_termios(struct tty_struct * struct usb_serial_port *
struct ktermios*);
static int cp2101_tiocmget(struct tty_struct * struct file *);
static int cp2101_tiocmset(struct tty_struct * struct file *
unsigned int unsigned int);
static int cp2101_tiocmset_port(struct usb_serial_port *port struct file *
unsigned int unsigned int);
static void cp2101_break_ctl(struct tty_struct * int);
static int cp2101_startup(struct usb_serial *);
static void cp2101_disconnect(struct usb_serial *);
static int debug;
static struct usb_device_id id_table [] = {
{ USB_DEVICE(0x0471 0x066A) } /* AKTAKOM ACE-1001 cable */
{ USB_DEVICE(0x0489 0xE000) } /* Pirelli Broadband S.p.A DP-L10 SIP/GSM Mobile */
{ USB_DEVICE(0x08e6 0x5501) } /* Gemalto Prox-PU/CU contactless smartcard reader */
{ USB_DEVICE(0x0FCF 0x1003) } /* Dynastream ANT development board */
{ USB_DEVICE(0x0FCF 0x1004) } /* Dynastream ANT2USB */
{ USB_DEVICE(0x0FCF 0x1006) } /* Dynastream ANT development board */
{ USB_DEVICE(0x10A6 0xAA26) } /* Knock-off DCU-11 cable */
{ USB_DEVICE(0x10AB 0x10C5) } /* Siemens MC60 Cable */
{ USB_DEVICE(0x10B5 0xAC70) } /* Nokia CA-42 USB */
{ USB_DEVICE(0x10C4 0x800A) } /* SPORTident BSM7-D-USB main station */
{ USB_DEVICE(0x10C4 0x803B) } /* Pololu USB-serial converter */
{ USB_DEVICE(0x10C4 0x8053) } /* Enfora EDG1228 */
{ USB_DEVICE(0x10C4 0x8054) } /* Enfora GSM2228 */
{ USB_DEVICE(0x10C4 0x8066) } /* Argussoft In-System Programmer */
{ USB_DEVICE(0x10C4 0x807A) } /* Crumb128 board */
{ USB_DEVICE(0x10C4
相关资源
- elantech触控板驱动程序 v13.6.11 官方最
- USB转串口驱动,FT232R驱动程序,最新
- WinCE下CP210x的驱动程序
- RA8806液晶驱动程序
- STM32F103 DS18B20 V3.5.0固件库驱动程序工
- windows ce 系统的GPIO驱动程序
- 2440 cs8900a 网卡驱动程序
- 探讨研华32位DLL驱动程序
- 多普达USB Modem驱动(适用于818、828、
- SX126x_LORA驱动程序(包含完整的工程文
- ch452串口键盘驱动程序
- Vxworks下网卡驱动程序的开发
- USB转串口(RS232/RS485/RS422)驱动程序文
- 映泰Biostar TA870网
- ASUS华硕K45VD|A45VD主板驱动程序 v9.3.0
- 华硕ASUS K42JZ BIOS主板驱动程序 v9.1.1
- ASUS华硕B85主板BIOS驱动程序 官方版
- Samsung三星R439-DS系列网卡驱动程序 v
- 索尼SONY VPCM125JC网卡驱动程序 v6.0.14
- 清华同方手写板万能驱动程序
- ASUS华硕a550笔记本电脑网卡驱动程序
- oppo智能手机adb驱动程序
- ACS读卡器USB驱动程序 v4.0 官方版
- 基于STM32F103C8单片机的晶联讯电子JL
- 手机usb通用驱动程序(手机USB万能驱
- broadcom 802.11g 网络适配器驱动程序 v
- 英特尔USB3.0可扩展主机控制器驱动程
- TD-SCDMA网络测试仪中E1数据采集卡的驱
- Lenovo ThinkPad T42笔记本电脑声卡驱动程
- Lenovo联想 IBM ThinkPad笔记本声卡驱动程
评论
共有 条评论