@serial_port.setter<EOL><INDENT>def serial_port(self, serial_port):<DEDENT>
char_size = get_char_size(serial_port.baudrate)<EOL>serial_port.inter_byte_timeout = <NUM_LIT> * char_size<EOL>serial_port.timeout = <NUM_LIT> * char_size<EOL>self._serial_port = serial_port<EOL>
Set timeouts on serial port based on baudrate to detect frames.