3 M�]W�s � @ sX d dl Z d dlZd dlZd dlZd dlZd dlZd dlZd dlZd dlZd dl m Z mZmZm Z mZ G dd� de�Zejj� Zedd� dkr�d dlZdZdZd Zd ZdZdZd ZdZdZG dd� de�ZnZedkr�G dd� de�Zn@edd� dk�rd dlZdZG dd� de�ZnG dd� de�Ze edd�Z!e edd�Z"e edd�Z#e edd �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+e(�Z+e ed,e)�Z,e-ed-��r�ej.Z.ne ed.d/�Z.e ed0d1�Z/ej0d2d �Z1ej0d2e&�Z2ej0d2e%�Z3e ed3d4�Z4e ed5d6�Z5d7Z6G d8d9� d9e e�Z7G d:d;� d;e7�Z8G d<d=� d=e7�Z9dS )>� N)� SerialBase�SerialException�to_bytes�portNotOpenError�writeTimeoutErrorc @ s e Zd Zi Zdd� Zdd� ZdS )�PlatformSpecificBasec C s t d��d S )Nz9non-standard baudrates are not supported on this platform)�NotImplementedError)�self�baudrate� r �!/usr/lib/python3.6/serialposix.py�_set_special_baudrate. 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_mode1 s z$PlatformSpecificBase._set_rs485_modeN)�__name__� __module__�__qualname__�BAUDRATE_CONSTANTSr r r r r r r + s r � �linuxl *TX i+T,@i i.T i/T � � � � c @ s` e Zd Zddddddddd d ddd ddddddddddddddddddd �Zd!d"� Zd#d$� Zd%S )&�PlatformSpecificr r r � r r � � � � � � � � � � i i i i i i i i i i i i i i i )r �2 �K �n � � �� i, iX i� i i` i� i�% i K i � i � i � i � i i � i � i i@B i � i`� i�� i�%&