Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
serial.tools.list_ports_posix Namespace Reference

Functions

def popen
 
def read_line
 
def re_group
 
def usb_sysfs_hw_string
 
def usb_lsusb_string
 
def describe
 
def hwinfo
 
def comports
 

Variables

tuple plat = sys.platform.lower()
 

Function Documentation

def serial.tools.list_ports_posix.comports ( )
scan for available ports. return a list of device names.

Definition at line 120 of file list_ports_posix.py.

def serial.tools.list_ports_posix.describe (   device)
\
Get a human readable description.
For USB-Serial devices try to run lsusb to get a human readable description.
For USB-CDC devices read the description from sysfs.

Definition at line 82 of file list_ports_posix.py.

def serial.tools.list_ports_posix.hwinfo (   device)
Try to get a HW identification using sysfs

Definition at line 100 of file list_ports_posix.py.

def serial.tools.list_ports_posix.popen (   argv)

Definition at line 9 of file list_ports_posix.py.

def serial.tools.list_ports_posix.re_group (   regexp,
  text 
)
search for regexp in text, return 1st group on match

Definition at line 42 of file list_ports_posix.py.

def serial.tools.list_ports_posix.read_line (   filename)
help function to read a single line from a file. returns none

Definition at line 32 of file list_ports_posix.py.

def serial.tools.list_ports_posix.usb_lsusb_string (   sysfs_path)

Definition at line 66 of file list_ports_posix.py.

def serial.tools.list_ports_posix.usb_sysfs_hw_string (   sysfs_path)
given a path to a usb device in sysfs, return a string describing it

Definition at line 52 of file list_ports_posix.py.

Variable Documentation

tuple serial.tools.list_ports_posix.plat = sys.platform.lower()

Definition at line 30 of file list_ports_posix.py.