'Clear output buffer, aborting the current output and discarding all
that is in the buffer.'

def reset_output_buffer(self):

    if (not self.is_open):
        raise portNotOpenError
    win32.PurgeComm(self._port_handle, (win32.PURGE_TXCLEAR | win32.PURGE_TXABORT))
