资源简介
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
相关资源
- FX PLC USB-SC09 驱动 CH340/CH341USB转串口
- MSP430F5529LP下的0.96寸7针OLED显示驱动程
- STM32的12864驱动程序(免积分)
- M-150针打驱动程序
- 两相步进电机驱动程序及原理图
- 51单片机的OV7670摄像头驱动程序
- iMX6 EIM总线驱动程序
- lvds_ctr_top 用verilog编写的LVDS接口驱动
- 多磨川绝对值编码器FPGA接口
- 带温度测量的CCD驱动程序
- ZTE中兴U985手机USB驱动程序 官方版
- 中兴N606手机USB驱动程序 官方版
- ZTE中兴U956手机USB驱动程序 官方版
- 中兴手机v970 usb驱动程序 免费版
- 中兴U830手机USB驱动程序 简体中文版
- 中兴ZTE Q505T手机USB驱动程序 官方版
- 基于MicroBlaze软核的液晶驱动程序设计
- 移植到STM32的MFRC522底层驱动程序
-
st-li
nk v2 驱动程序 支持win10 - MLX90614驱动程序
- ONDA昂达主板驱动程序全能版
- freescale单片机控制AD5410驱动程序
- 联想平板yoga tablet 2驱动程序 官方最新
- FM25H20驱动程序
- 树莓派3b+的openwrt 驱动程序
- ORICO BTA-401/402/403/406/407蓝牙4.0驱动程序
- ST7789S显示屏驱动程序
- STM32F103的LD3320驱动程序
- RTL8811AU 新版linux驱动程序
- ADS1252驱动程序
评论
共有 条评论