�
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 � � � Zedd� dk r'd dlZdZd Zd
ZdZdZd
ZdZdZdZdZ G d� de� � Z!n�edk r G d� de� � Z!n�edd� dk rd dlZdZ" G d� de� � Z!ncedd� dk s*edd� 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� � rej2 Z2n
e$ed9d:� � Z2 e$ed;d<� � Z3 ej4 d=d � � Z5 ej4 d=e*� � Z6 ej4 d=e)� � Z7 e$ed>d?� � Z8 e$ed@dA� � Z9 G dB� dCee!� � Z: G dD� dEe:� � Z; G dF� dGe:� � Z<dS )H� )�absolute_importN)�
SerialBase�SerialException�to_bytes�PortNotOpenError�SerialTimeoutException�Timeoutc �* � e Zd Zi Zd� Zd� Zd� Zd� ZdS )�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�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�O�Or c � � | j r!t j | j t � � dS t j | j t
� � dS )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 sC � � �� +��K����*�*�*�*�*��K����*�*�*�*�*r N)�__name__�
__module__�__qualname__�BAUDRATE_CONSTANTSr r r r" |