'Recommend a buffer size to the driver (device driver can ignore this
value). Must be called before the port is opened.'

def set_buffer_size(self, rx_size=4096, tx_size=None):

    if (tx_size is None):
        tx_size = rx_size
    win32.SetupComm(self._port_handle, rx_size, tx_size)
