%PDF- %PDF-
Direktori : /lib/python3/dist-packages/serial/__pycache__/ |
Current File : //lib/python3/dist-packages/serial/__pycache__/serialposix.cpython-312.pyc |
� 1�_7� � � � d dl mZ d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl Z d dl mZmZm Z mZmZmZ G d� de� Zd Zej( j+ � Zedd dk( r$d dlZdZd Zd ZdZdZd ZdZdZdZdZ G d� de� Z!nmedk( r G d� de� Z!n\edd dk( rd dlZdZ" G d� de� Z!nBedd dk( sedd dk( sedd dk( sedd dk( r G d � d!e� Z# G d"� de� Z!n G 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-� Z0 e1ed8� r ejd Z2n e$ed9d:� Z2 e$ed;d<� Z3 ejh d=d � Z5 ejh d=e*� Z6 ejh d=e)� Z7 e$ed>d?� Z8 e$ed@dA� Z9 G dB� dCee!� Z: G dD� dEe:� Z; G dF� dGe:� Z<y)H� )�absolute_importN)� SerialBase�SerialException�to_bytes�PortNotOpenError�SerialTimeoutException�Timeoutc �( � e Zd Zi Zd� Zd� Zd� Zd� Zy)�PlatformSpecificBasec � � t d� �)Nz9non-standard baudrates are not supported on this platform��NotImplementedError)�self�baudrates �4/usr/lib/python3/dist-packages/serial/serialposix.py�_set_special_baudratez*PlatformSpecificBase._set_special_baudrate0 s � �!�"]�^�^� c � � t d� �)Nz$RS485 not supported on this platformr )r �rs485_settingss r �_set_rs485_modez$PlatformSpecificBase._set_rs485_mode3 s � �!�"H�I�Ir c � � t d� �)Nz*Low latency not supported on this platformr )r �low_latency_settingss r �set_low_latency_modez)PlatformSpecificBase.set_low_latency_mode6 s � �!�"N�O�Or c � � | j r%t j | j t � yt j | j t � y)zS Set break: Controls TXD. When active, no transmitting is possible. N)�_break_state�fcntl�ioctl�fd�TIOCSBRK�TIOCCBRK�r s r �_update_break_statez(PlatformSpecificBase._update_break_state9 s1 � � ����K�K�����*��K�K�����*r N)�__name__� __module__�__qualname__�BAUDRATE_CONSTANTSr r r r"