def METHOD_NAME(self, packet):
    """
    Writes a 32 byte packet to the device. This is typically \x00 + 30 bytes + CRC
    The driver will packetize the \0xA6 writes.
    @param packet: 32 bytes of data to be written to the CH341.
    @return:
    """
    if not self.is_connected():
        raise ConnectionError("Not connected.")
    success = self.driver.CH341EppWriteData(packet)
    if not success:
        raise ConnectionError("Failed to write to CH341:Windll.")