HomeSort by relevance Sort by last modified time
    Searched refs:Serial (Results 1 - 25 of 31) sorted by null

1 2

  /external/chromium_org/tools/telemetry/third_party/pyserial/serial/urlhandler/
protocol_rfc2217.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
11 from serial.rfc2217 import Serial
protocol_hwgrep.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
14 import serial namespace
15 import serial.tools.list_ports namespace
17 class Serial(serial.Serial):
18 """Just inherit the native Serial port implementation and patch the open function."""
23 serial.Serial.setPort(self, self.fromURL(value))
25 serial.Serial.setPort(self, value
    [all...]
protocol_loop.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
18 from serial.serialutil import *
33 """Serial port implementation that simulates a loop back connection in plain software."""
118 """Read size bytes from the serial port. If a timeout is set it may
143 """Output the given string over the serial port. Can block if the
239 # assemble Serial class with the platform specific implementation and the base
246 class Serial(LoopbackSerial, FileLike):
250 class Serial(LoopbackSerial, io.RawIOBase):
257 s = Serial('loop://')
protocol_socket.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
11 # TCP/IP to serial port converters that do not support RFC 2217.
20 from serial.serialutil import *
36 """Serial port implementation for plain sockets."""
135 """Read size bytes from the serial port. If a timeout is set it may
166 """Output the given string over the serial port. Can block if the
248 # assemble Serial class with the platform specific implementation and the base
255 class Serial(SocketSerial, FileLike):
259 class Serial(SocketSerial, io.RawIOBase):
266 s = Serial('socket://localhost:7000'
    [all...]
  /device/google/accessory/arduino/AndroidAccessory/
AndroidAccessory.cpp 43 const char *serial) : manufacturer(manufacturer),
48 serial(serial),
87 Serial.print("device supports protocol 1 or higher\n");
89 Serial.print("could not read device protocol version\n");
98 sendString(addr, ACCESSORY_STRING_SERIAL, serial);
123 Serial.print("Can't get config descriptor length\n");
130 Serial.print("config descriptor too large\n");
137 Serial.print("Can't get config descriptor\n");
152 Serial.print("config desc\n")
    [all...]
  /external/smack/src/org/xbill/DNS/
Serial.java 6 * Helper functions for doing serial arithmetic. These should be used when
7 * setting/checking SOA serial numbers. SOA serial number arithmetic is
13 public final class Serial {
18 Serial() {
22 * Compares two numbers using serial arithmetic. The numbers are assumed
45 * Increments a serial number. The number is assumed to be a 32 bit unsigned
48 * @param serial The serial number
49 * @return The incremented serial numbe
    [all...]
ZoneTransferIn.java 74 /** The starting serial number of this delta. */
77 /** The ending serial number of this delta. */
170 ZoneTransferIn(Name zone, int xfrtype, long serial, boolean fallback,
188 ixfr_serial = serial;
243 * @param serial The existing serial number.
251 newIXFR(Name zone, long serial, boolean fallback, SocketAddress address,
254 return new ZoneTransferIn(zone, Type.IXFR, serial, fallback, address,
262 * @param serial The existing serial number
    [all...]
  /external/chromium_org/tools/telemetry/third_party/pyserial/serial/
__init__.py 3 # portable serial port access with python
14 from serial.serialcli import *
19 from serial.serialwin32 import *
21 from serial.serialposix import *
23 from serial.serialjava import *
29 'serial.urlhandler',
34 Get an instance of the Serial class, depending on port/url. The port is not
47 # check remove extra parameter to not confuse the Serial class
51 klass = Serial # 'native' implementation
68 klass = sys.modules[module_name].Serial
    [all...]
sermsdos.py 41 import serial.serialutil namespace
66 class Serial(serialutil.FileLike):
145 """Read num bytes from serial port"""
153 """Write string to serial port"""
194 return string.join(( "<Serial>: ", self.portstr
199 s = Serial(0)
serialcli.py 2 # Python Serial Port Extension for Win32, Linux, BSD, Jython and .NET/Mono
3 # serial driver for .NET/Mono (IronPython), .NET >= 2
12 from serial.serialutil import *
27 """Serial port implementation for .NET/Mono."""
134 # ignore errors. can happen for unplugged USB serial devices
153 """Read size bytes from the serial port. If a timeout is set it may
170 """Output the given string over the serial port."""
241 # assemble Serial class with the platform specific implementation and the base
248 class Serial(IronSerial, FileLike):
252 class Serial(IronSerial, io.RawIOBase)
    [all...]
serialjava.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
4 # module for serial IO for Jython and JavaComm
10 from serial.serialutil import *
53 """Serial port class, implemented with Java Communications API and
68 self.sPort = portId.open("python serial module", 10)
153 """Read size bytes from the serial port. If a timeout is set it may
169 """Output the given string over the serial port."""
228 # assemble Serial class with the platform specific implementation and the base
235 class Serial(JavaSerial, FileLike):
239 class Serial(JavaSerial, io.RawIOBase)
    [all...]
serialwin32.py 2 # Python Serial Port Extension for Win32, Linux, BSD, Jython
3 # serial driver for win32
12 from serial import win32
14 from serial.serialutil import *
23 """Serial port implementation for Win32 based on ctypes."""
243 """Read size bytes from the serial port. If a timeout is set it may
278 """Output the given string over the serial port."""
432 # assemble Serial class with the platform specific implementation and the base
439 class Serial(Win32Serial, FileLike):
443 class Serial(Win32Serial, io.RawIOBase)
    [all...]
serialposix.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
4 # module for serial IO for POSIX compatible systems, like Linux
13 # references: http://www.easysw.com/~mike/serial/serial.html
16 from serial.serialutil import *
141 # Tiger or above can support arbitrary serial speeds
220 also add the device name of the serial port and where the
221 counting starts for the first serial port.
222 e.g. 'first serial port: /dev/ttyS0'
275 """Serial port class POSIX implementation. Serial port configuration is
    [all...]
rfc2217.py 3 # Python Serial Port Extension for Win32, Linux, BSD, Jython
7 # protocol to access serial ports over TCP/IP and allows setting the baud rate,
23 # - http://www.ibiblio.org/pub/Linux/system/serial/ sredird-2.2.2.tar.gz
62 from serial.serialutil import *
363 """Serial port implementation for RFC 2217 remote serial ports."""
570 Read size bytes from the serial port. If a timeout is set it may
587 Output the given string over the serial port. Can block if the
    [all...]
  /external/arduino/hardware/arduino/cores/arduino/
HardwareSerial.h 2 HardwareSerial.h - Hardware serial library for Wiring
62 extern HardwareSerial Serial;
HardwareSerial.cpp 2 HardwareSerial.cpp - Hardware serial library for Wiring
36 // Define constants and variables for buffering incoming serial data. We're
132 #warning Serial(0) is on USB interface
283 HardwareSerial Serial(&rx_buffer, &UBRRH, &UBRRL, &UCSRA, &UCSRB, &UDR, RXEN, TXEN, RXCIE, UDRE, U2X);
285 HardwareSerial Serial(&rx_buffer, &UBRR0H, &UBRR0L, &UCSR0A, &UCSR0B, &UDR0, RXEN0, TXEN0, RXCIE0, UDRE0, U2X0);
287 #warning no serial port defined (port 0)
289 #error no serial port defined (port 0)
  /external/qemu/android/
hw-qemud.c 37 /* max serial MTU. Don't change this without modifying
82 * We use one charpipe to connect the emulated serial port to the 'QemudSerial'
83 * object. This object is used to receive data from the serial port, and
88 * through the serial port (see qemud_serial_send())
183 /** HANDLING SERIAL PORT CONNECTION
186 /* The QemudSerial object receives data from the serial port charpipe.
194 * messages back through the serial port.
227 CharDriverState* cs; /* serial charpipe endpoint */
229 /* managing incoming packets from the serial port */
257 /* state of incoming packets from the serial port *
672 QemudSerial* serial; member in struct:QemudClient::__anon33742::__anon33743
1290 QemudSerial serial[1]; member in struct:QemudMultiplexer
    [all...]
  /device/google/accessory/arduino/USB_Host_Shield/
Usb.cpp 105 //Serial.println("Setup packet"); //DEBUG
107 Serial.print("Setup packet error: ");
108 Serial.print( rcode, HEX );
111 //Serial.println( direction, HEX );
116 Serial.print("Data packet error: ");
117 Serial.print( rcode, HEX );
363 //Serial.print("USB task state: ");
364 //Serial.println( usb_task_state, HEX );
Max3421e.cpp 276 Serial.println("Error: OSCOKIRQ failed to assert");
294 //Serial.print("Vbus state: ");
295 //Serial.println( vbusState, HEX );
  /external/chromium_org/extensions/test/data/
serial_unittest.js 6 * Unit tests for the JS serial service client.
10 * extensions/renderer/api/serial/serial_api_unittest.cc.
14 var serial = require('serial').binding; variable
33 serial.connect('device', options, test.callbackPass(function(connectionInfo) {
73 serial.disconnect(connectionId, test.callbackPass(function(success) {
103 test.listenOnce(serial.onReceiveError, function(result) {
104 serial.getInfo(connectionId, test.callbackPass(function(connectionInfo) {
116 serial.send(connectionId, buffer, test.callbackPass(function(sendInfo) {
131 return utils.promise(serial.send, connectionId, buffer)
    [all...]
  /external/chromium_org/tools/telemetry/telemetry/core/platform/profiler/
monsoon.py 21 import serial # pylint: disable=F0401 namespace
22 import serial.tools.list_ports # pylint: disable=F0401,E0611 namespace
48 assert float(serial.VERSION) >= 2.7, \
49 'Monsoon requires pyserial v2.7 or later. You have %s' % serial.VERSION
57 self.ser = serial.Serial(device, timeout=1)
61 for (port, desc, _) in serial.tools.list_ports.comports():
75 self.ser = serial.Serial(port, timeout=1)
254 logging.error('timeout reading from serial port'
    [all...]
  /device/generic/goldfish/qemud/
qemud.c 20 * - qemud communicates with the emulator program through a single serial
28 * emulator <==serial==> qemud <---> /dev/socket/qemud <-+--> client1
299 #define MAX_EVENTS (MAX_CHANNELS+1) /* each channel + the serial fd */
1029 /** SERIAL CONNECTION STATE
1032 ** used on the serial port connection.
1051 /* The Serial object receives data from the serial port,
1056 * the serial port.
1058 typedef struct Serial {
1059 FDHandler* fdhandler; /* used to monitor serial port fd *
1238 Serial serial[1]; member in struct:Multiplexer
    [all...]
  /cts/apps/CtsVerifier/assets/scripts/power_monitors/
monsoon.py 32 import serial # http://pyserial.sourceforge.net/ namespace
100 if isinstance( device, serial.Serial ):
109 logging.info("No power monitor serial devices found. Retrying...")
111 logging.error("No power monitor serial devices found. Exiting")
113 sys.exit("No power monitor serial devices found")
137 self.ser = serial.Serial(device, timeout= TIMEOUT_SERIAL)
208 ser = serial.Serial( dev, timeout=TIMEOUT_SERIAL
    [all...]
  /cts/tools/utils/
monsoon.py 50 import serial # http://pyserial.sourceforge.net/ namespace
81 self.ser = serial.Serial(device, timeout=1)
100 self.ser = serial.Serial("/dev/%s" % dev, timeout=1)
111 print >>sys.stderr, ("Note: another device serial #%d seen on %s" %
278 print >>sys.stderr, "timeout reading from serial port"
290 print >>sys.stderr, "invalid checksum from serial port"
301 print >>sys.stderr, "exception from serial port"
417 flags.DEFINE_integer("serialno", None, "Look for a device with this serial number"
    [all...]
  /external/chromium_org/extensions/renderer/resources/
serial_custom_bindings.js 6 * Custom bindings for the Serial API.
14 var binding = require('binding').Binding.create('serial');
26 // is necessary for serial connections created in one window to be usable
62 'serial.onReceive', [{connectionId: id, data: data}]);
66 'serial.onReceiveError', [{connectionId: id, error: error}]);

Completed in 1095 milliseconds

1 2