|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /usr/local/lib/python3.6/site-packages/serial/__pycache__/ |
Upload File : |
3
F�Kd7� � @ s� d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZmZm
Z
mZmZmZ G dd� de�Zd Zejj� Zedd� dkr�d dlZdZd Zd
ZdZdZd
ZdZdZdZdZ G dd� de�Z!n�edkr�G dd� de�Z!n�edd� dk�r&d dlZdZ"G dd� de�Z!nzedd� dk�snedd� dk�snedd� dk�snedd� dk�r�G d d!� d!e�Z#G d"d� de�Z!nG d#d� de�Z!e$ed$d%�Z%e$ed&d'�Z&e$ed(d)�Z'e$ed*d+�Z(e$ed,d�Z)e$ed-d�Z*e$ed.d/�Z+e$ed0d1�Z,e$ed2d3�Z-e$ed4d5�Z.e$ed6e,�Z/e$ed7e-�Z0e1ed8��rDej2Z2ne$ed9d:�Z2e$ed;d<�Z3ej4d=d �Z5ej4d=e*�Z6ej4d=e)�Z7e$ed>d?�Z8e$ed@dA�Z9G dBdC� dCee!�Z:G dDdE� dEe:�Z;G dFdG� dGe:�Z<dS )H� )�absolute_importN)�
SerialBase�SerialException�to_bytes�PortNotOpenError�SerialTimeoutException�Timeoutc @ s0 e Zd Zi Zdd� Zdd� Zdd� Zdd� Zd S )
�PlatformSpecificBasec C s t d��d S )Nz9non-standard baudrates are not supported on this platform)�NotImplementedError)�self�baudrate� r
�6/tmp/pip-build-8nxjc3nm/pyserial/serial/serialposix.py�_set_special_baudrate0 s z*PlatformSpecificBase._set_special_baudratec C s t d��d S )Nz$RS485 not supported on this platform)r
)r �rs485_settingsr
r
r �_set_rs485_mode3 s z$PlatformSpecificBase._set_rs485_modec C s t d��d S )Nz*Low latency not supported on this platform)r
)r �low_latency_settingsr
r
r �set_low_latency_mode6 s z)PlatformSpecificBase.set_low_latency_modec C s( | j rtj| jt� ntj| jt� dS )zS Set break: Controls TXD. When active, no transmitting is possible.
N)�_break_state�fcntl�ioctl�fd�TIOCSBRK�TIOCCBRK)r r
r
r �_update_break_state9 s z(PlatformSpecificBase._update_break_stateN)�__name__�
__module__�__qualname__�BAUDRATE_CONSTANTSr r r r r
r
r
r r - s
r � �linuxi @l *TX i+T,@i i.T i/T � � � � c @ sh e Zd Zddddddddd d
ddd
ddddddddddddddddddd �Zd!d"� Zd#d$� Zd%d&� Zd'S )(�PlatformSpecificr r! r"