Home | History | Annotate | Download | only in serial

Lines Matching refs:to_bytes

85 IAC  = to_bytes([255]) # Interpret As Command
86 DONT = to_bytes([254])
87 DO = to_bytes([253])
88 WONT = to_bytes([252])
89 WILL = to_bytes([251])
90 IAC_DOUBLED = to_bytes([IAC, IAC])
92 SE = to_bytes([240]) # Subnegotiation End
93 NOP = to_bytes([241]) # No Operation
94 DM = to_bytes([242]) # Data Mark
95 BRK = to_bytes([243]) # Break
96 IP = to_bytes([244]) # Interrupt process
97 AO = to_bytes([245]) # Abort output
98 AYT = to_bytes([246]) # Are You There
99 EC = to_bytes([247]) # Erase Character
100 EL = to_bytes([248]) # Erase Line
101 GA = to_bytes([249]) # Go Ahead
102 SB = to_bytes([250]) # Subnegotiation Begin
105 BINARY = to_bytes([0]) # 8-bit data path
106 ECHO = to_bytes([1]) # echo
107 SGA = to_bytes([3]) # suppress go ahead
110 COM_PORT_OPTION = to_bytes([44])
113 SET_BAUDRATE = to_bytes([1])
114 SET_DATASIZE = to_bytes([2])
115 SET_PARITY = to_bytes([3])
116 SET_STOPSIZE = to_bytes([4])
117 SET_CONTROL = to_bytes([5])
118 NOTIFY_LINESTATE = to_bytes([6])
119 NOTIFY_MODEMSTATE = to_bytes([7])
120 FLOWCONTROL_SUSPEND = to_bytes([8])
121 FLOWCONTROL_RESUME = to_bytes([9])
122 SET_LINESTATE_MASK = to_bytes([10])
123 SET_MODEMSTATE_MASK = to_bytes([11])
124 PURGE_DATA = to_bytes([12])
126 SERVER_SET_BAUDRATE = to_bytes([101])
127 SERVER_SET_DATASIZE = to_bytes([102])
128 SERVER_SET_PARITY = to_bytes([103])
129 SERVER_SET_STOPSIZE = to_bytes([104])
130 SERVER_SET_CONTROL = to_bytes([105])
131 SERVER_NOTIFY_LINESTATE = to_bytes([106])
132 SERVER_NOTIFY_MODEMSTATE = to_bytes([107])
133 SERVER_FLOWCONTROL_SUSPEND = to_bytes([108])
134 SERVER_FLOWCONTROL_RESUME = to_bytes([109])
135 SERVER_SET_LINESTATE_MASK = to_bytes([110])
136 SERVER_SET_MODEMSTATE_MASK = to_bytes([111])
137 SERVER_PURGE_DATA = to_bytes([112])
154 SET_CONTROL_REQ_FLOW_SETTING = to_bytes([0]) # Request Com Port Flow Control Setting (outbound/both)
155 SET_CONTROL_USE_NO_FLOW_CONTROL = to_bytes([1]) # Use No Flow Control (outbound/both)
156 SET_CONTROL_USE_SW_FLOW_CONTROL = to_bytes([2]) # Use XON/XOFF Flow Control (outbound/both)
157 SET_CONTROL_USE_HW_FLOW_CONTROL = to_bytes([3]) # Use HARDWARE Flow Control (outbound/both)
158 SET_CONTROL_REQ_BREAK_STATE = to_bytes([4]) # Request BREAK State
159 SET_CONTROL_BREAK_ON = to_bytes([5]) # Set BREAK State ON
160 SET_CONTROL_BREAK_OFF = to_bytes([6]) # Set BREAK State OFF
161 SET_CONTROL_REQ_DTR = to_bytes([7]) # Request DTR Signal State
162 SET_CONTROL_DTR_ON = to_bytes([8]) # Set DTR Signal State ON
163 SET_CONTROL_DTR_OFF = to_bytes([9]) # Set DTR Signal State OFF
164 SET_CONTROL_REQ_RTS = to_bytes([10]) # Request RTS Signal State
165 SET_CONTROL_RTS_ON = to_bytes([11]) # Set RTS Signal State ON
166 SET_CONTROL_RTS_OFF = to_bytes([12]) # Set RTS Signal State OFF
167 SET_CONTROL_REQ_FLOW_SETTING_IN = to_bytes([13]) # Request Com Port Flow Control Setting (inbound)
168 SET_CONTROL_USE_NO_FLOW_CONTROL_IN = to_bytes([14]) # Use No Flow Control (inbound)
169 SET_CONTROL_USE_SW_FLOW_CONTOL_IN = to_bytes([15]) # Use XON/XOFF Flow Control (inbound)
170 SET_CONTROL_USE_HW_FLOW_CONTOL_IN = to_bytes([16]) # Use HARDWARE Flow Control (inbound)
171 SET_CONTROL_USE_DCD_FLOW_CONTROL = to_bytes([17]) # Use DCD Flow Control (outbound/both)
172 SET_CONTROL_USE_DTR_FLOW_CONTROL = to_bytes([18]) # Use DTR Flow Control (inbound)
173 SET_CONTROL_USE_DSR_FLOW_CONTROL = to_bytes([19]) # Use DSR Flow Control (outbound/both)
193 PURGE_RECEIVE_BUFFER = to_bytes([1]) # Purge access server receive data buffer
194 PURGE_TRANSMIT_BUFFER = to_bytes([2]) # Purge access server transmit data buffer
195 PURGE_BOTH_BUFFERS = to_bytes([3]) # Purge both the access server receive data buffer and the access server transmit data buffer
595 self._socket.sendall(to_bytes(data).replace(IAC, IAC_DOUBLED))
818 self._internal_raw_write(to_bytes([IAC, action, option]))
823 self._internal_raw_write(to_bytes([IAC, SB, COM_PORT_OPTION, option] + list(value) + [IAC, SE]))
966 self.connection.write(to_bytes([IAC, action, option]))
971 self.connection.write(to_bytes([IAC, SB, COM_PORT_OPTION, option] + list(value) + [IAC, SE]))
999 to_bytes([modemstate & self.modemstate_mask])
1257 to_bytes([0]) # sorry, nothing like that implemented