Flushes the transmit buffer.

        :raises can.CanError:
            If flushing of the transmit buffer failed.

def flush_tx_buffer(self):
        """
        Flushes the transmit buffer.

        :raises can.CanError:
            If flushing of the transmit buffer failed.
        """
        log.info('Flushing transmit buffer')
        self._ucan.reset_can(self.channel, ResetFlags.RESET_ONLY_TX_BUFF)