亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? uspp.py

?? 在linux系統(tǒng)下開發(fā)的GPS接收程序,具有良好的圖形操作界面.
?? PY
字號:
#! /usr/bin/env python

##########################################################################
# USPP Library (Universal Serial Port Python Library)
#
# Copyright (C) 2001 Isaac Barona <ibarona@tid.es>
# 
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; version 2 dated
# June, 1991.
# 
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Library General Public License for more details.
# 
# You should have received a copy of the GNU General Public
# License along with this library; if not, write to the
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.
##########################################################################

#-------------------------------------------------------------------------
# Project:   USPP Library (Universal Serial Port Python Library)
# Name:      uspp.py
# Purpose:   Main module. Imports the correct module for the platform
#            in which it is running.
#
# Author:    Isaac Barona Mart韓ez <ibarona@tid.es>
# Copyright: (c) 2001 by Isaac Barona Mart韓ez
# Licence:   GPL
#
# Created:   26 June 2001
# History:
#            05/08/2001: Release version 0.1.
#
#-------------------------------------------------------------------------


"""
USPP - Universal Serial Port Python Library

This module exports a SerialPort class to access serial ports in
different platforms (currently W9X and Linux) with the same code.

When the library user import the uspp module,  it automatically 
loads the correct class implementation for the platform in which
is running.

The public classes, exceptions and methods are the following:

SerialPortException
===================
Exception raised in the SerialPort methods.


SerialPort
==========
Class that encapsulate methods to access serial ports. It has the
following public methods:

* __init__(self, dev, timeout=None, speed=None, mode='232', params=None)

  Create an object to access serial port 'dev'

  Arguments:

    dev: String that indicate the name of the port. Possible values are:
        In Linux: '/dev/ttyS0', '/dev/ttyS1', ..., '/dev/ttySX' or
                  '/dev/cua0', '/dev/cua1', ..., '/dev/cuaX'
        In W9X: 'COM1', 'COM2', ..., 'COMX'
        
    timeout: specifies in milliseconds the inter-byte timeout. Possible
        values are:
        * None: For blocking readings. Time-outs are not used for reading
          operations.
        * 0: For non-blocking readings. The reading operation is to return 
          inmediately with the characters that have already been received, 
          even if no characters have been received.
        * >0: For time-out readings. A character must be read in less than
          this value.

    speed: integer that specifies the input and output baud rate to
        use. Possible values are: 110, 300, 600, 1200, 2400, 4800, 9600,
        19200, 38400, 57600 and 115200.
        If None a default speed of 9600 bps is selected.

    mode: string that specifies RS-232 or RS-485 mode. The RS-485 mode
        is half duplex and use the RTS signal to indicate the
        direction of the communication (transmit or recive).
        Posible values are: '232' or '485'. Default to RS232 mode (the
        only implemented just now).

    params: list that specifies properties of the serial communication.
        If params=None it uses default values for the number of bits
        per byte (8), the parity (NOPARITY) and the number of stop bits (1)
        else:
            * In W9X: params must be a list with three items setting up the 
              these values in this order.
            * In Linux: params must is the termios package mode array to use 
              for initialization. 



* __del__(self):

  Destroy the SerialPort object and close the serial port. It is a good
  idea that when you finish working with the serial port you explicity
  do: del tty (where tty is a SerialPort object).

* fileno(self):

  Returns the file descriptor of the serial port. This information is
  sometimes necessary for example if you want to use the select function.

* read(self, num=1):

  Read num bytes from the serial port. Depending the timeout value used in
  the inicialitation this operation can be:

    - Blocking (if timeout=None): The operation blocks until num bytes 
      arrive the serial port.
    - Non-blocking (if timeout=0): The operation returns inmediatelly
      with as many as num bytes that were waiting in the serial port to be read.
    - Time-out (if timeout>0): A byte must arrive in less milliseconds than
      the specified. If the number of read bytes is less than num a
      SerialPortException is raised because a time-out has happened.

* write(self, s):
  
  Write the string s to the serial port.

* inWaiting(self):

  Returns the number of bytes waiting to be read.
  NOTE: This method does not work in Linux!!!!! I need help.

* flush(self):
  
  Discards all characters from the output or input buffer.



NOTE ON CHARACTERS AND BYTES
============================

The write and read methods of the SerialPort class expect data 
in string buffers. Do not think this library only works for 
ASCII communications. To interpret string elements as bytes (integer number)
you only have to use the built-in ord() function. To convert a byte
into a string element, use chr().

Example: Suppose you want to transmit the following three bytes:
0x02, 0x10, 0x30. You only have to do:

packet = ''
packet = packet + chr(0x02) + chr(0x10) + chr(0x30)
tty.write(packet)

So, you can see the bytes you send or receive as integers or as characters
depending the situation.



"""



__author__="Isaac Barona Mart韓ez <ibarona@tid.es>"

__copyright__="""
Copyright (C) 2001 Isaac Barona Mart韓ez <ibarona@tid.es>

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2 dated
June, 1991.
"""

__version__="0.1"


import sys

if sys.platform=='win32':
    from SerialPort_win import *
elif sys.platform=='linux2':
    from SerialPort_linux import *
else:
    sys.exit('Sorry, no implemented for this platform yet')

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www.欧美色图| 国产露脸91国语对白| 国产999精品久久| 欧美男女性生活在线直播观看| 久久九九国产精品| 五月综合激情婷婷六月色窝| 成人精品免费看| 精品国产电影一区二区| 亚洲成年人影院| 91首页免费视频| 久久精品日韩一区二区三区| 日韩和的一区二区| 一本色道**综合亚洲精品蜜桃冫| 国产日韩影视精品| 毛片av中文字幕一区二区| 欧美中文字幕久久| 国产精品久久久久影院色老大| 毛片av一区二区三区| 欧美日韩国产综合一区二区| 亚洲视频图片小说| 国产成人精品影视| 加勒比av一区二区| 欧美二区三区91| 亚洲综合丝袜美腿| 色婷婷国产精品综合在线观看| 国产精品素人一区二区| 国产一区二区三区视频在线播放| 91精品欧美一区二区三区综合在 | 久久亚洲一区二区三区四区| 五月天激情小说综合| 91国偷自产一区二区三区成为亚洲经典| 国产亚洲精品免费| 国内成人自拍视频| 日韩美女一区二区三区| 日日摸夜夜添夜夜添国产精品| 日本韩国一区二区| 亚洲女人小视频在线观看| 99久久精品久久久久久清纯| 欧美国产禁国产网站cc| 国产成人在线视频网站| 欧美精品一区二区三区在线播放| 精品一区二区三区香蕉蜜桃| 欧美日韩一区二区三区视频| 亚洲综合在线五月| 欧美日韩亚洲另类| 日韩主播视频在线| 日韩一级免费观看| 久久国产精品露脸对白| 精品不卡在线视频| 国产精品一区一区| 国产清纯白嫩初高生在线观看91 | 国产资源在线一区| 久久久久久久久久久99999| 国产成人综合在线播放| 亚洲国产成人私人影院tom| av在线这里只有精品| 1区2区3区国产精品| 一本色道a无线码一区v| 亚洲bdsm女犯bdsm网站| 欧美高清性hdvideosex| 国产精品女人毛片| 亚洲国产成人精品视频| 在线电影院国产精品| 久久精品免费观看| 中文在线免费一区三区高中清不卡| 成人免费毛片aaaaa**| 亚洲人成亚洲人成在线观看图片 | 国产精品久久久久久亚洲毛片| 在线观看亚洲成人| 一区二区在线观看视频| 国产精品一区一区| 亚洲男人的天堂av| 不卡一卡二卡三乱码免费网站| 亚洲天堂中文字幕| 成人h动漫精品一区二区| 日韩精品最新网址| 国产成人一级电影| 精品久久久久香蕉网| 成人h动漫精品一区二区| 久久精品免视看| 美腿丝袜亚洲综合| 日本一区二区三级电影在线观看| 蜜臀a∨国产成人精品| 日本一区二区在线不卡| 国产成人免费xxxxxxxx| 夜夜亚洲天天久久| 91久久人澡人人添人人爽欧美| 欧美成人激情免费网| 国产成人午夜片在线观看高清观看| 日韩女优av电影| 不卡的看片网站| 国产精品久久福利| 美女视频黄 久久| 99久久er热在这里只有精品15| 国产欧美在线观看一区| 欧美视频自拍偷拍| 亚洲自拍偷拍av| 精品国产第一区二区三区观看体验| 国产毛片精品视频| 欧美日韩精品福利| 丁香天五香天堂综合| 欧美激情一区二区三区| 7777女厕盗摄久久久| 日本不卡的三区四区五区| 国产精品视频观看| 色婷婷精品久久二区二区蜜臀av| 欧美xxxx老人做受| 欧美午夜片在线看| 午夜精品一区二区三区电影天堂 | 韩国v欧美v日本v亚洲v| 国产欧美精品一区二区色综合| 欧美日韩大陆在线| 蜜臀久久久99精品久久久久久| 日韩一区二区精品在线观看| 99视频精品全部免费在线| 亚洲欧美偷拍另类a∨色屁股| 日韩欧美电影一区| 成人av在线资源网站| 中文字幕在线不卡一区| 欧美色涩在线第一页| 日韩国产精品久久| 一级做a爱片久久| 日韩午夜电影在线观看| 在线观看免费成人| 久久99热99| 欧美日韩一区三区四区| 韩国精品久久久| 国产精品久久二区二区| 久久人人超碰精品| 91在线云播放| 免费人成在线不卡| 亚洲色图欧洲色图婷婷| 欧美一区二区三区视频在线| 日韩精品亚洲专区| 欧美影视一区二区三区| 亚洲综合免费观看高清完整版| 欧美一区二区视频在线观看2022| 日本高清不卡视频| 精品亚洲免费视频| 国产精品久久久爽爽爽麻豆色哟哟| 精品乱人伦一区二区三区| jvid福利写真一区二区三区| 国产成人啪免费观看软件| 亚洲九九爱视频| 亚洲欧美一区二区视频| 日韩午夜精品视频| 中文字幕不卡在线观看| 国产视频一区在线播放| 欧美天天综合网| 欧美日韩三级视频| 国产不卡在线播放| 国产成人精品综合在线观看 | 日韩一区在线免费观看| 精品国产乱码久久久久久浪潮| 一本大道av一区二区在线播放| av男人天堂一区| 狠狠狠色丁香婷婷综合激情| 黄色日韩三级电影| 午夜日韩在线电影| 51精品国自产在线| 在线观看中文字幕不卡| 亚洲成a人片综合在线| 天天影视色香欲综合网老头| 亚洲色图视频免费播放| 一区二区欧美精品| 国产精品色哟哟| 亚洲欧美日韩国产一区二区三区 | 亚洲国产cao| 国产精品国产三级国产普通话蜜臀| 国产精品久久三| 精品99一区二区| 中文无字幕一区二区三区 | 国产精品久久看| 久久一区二区三区四区| 国产午夜精品美女毛片视频| 欧美一区二区二区| 久久久亚洲精品石原莉奈| 欧美一级xxx| 国产亚洲欧美一级| 日韩你懂的电影在线观看| 国产婷婷色一区二区三区四区| 欧美成人伊人久久综合网| 久久一区二区三区四区| 精品国产免费人成电影在线观看四季| 日韩一区二区三区在线观看| 欧美日韩国产精品自在自线| 日韩av高清在线观看| 国产成人在线网站| 国产露脸91国语对白| 一本大道av伊人久久综合| 91玉足脚交白嫩脚丫在线播放| 欧美日韩一区中文字幕| 欧美性色综合网| 久久在线观看免费| 精品国产91九色蝌蚪| 最新成人av在线| 亚洲人成7777| 激情欧美日韩一区二区| 精品一区二区免费看| 色综合色综合色综合|