def METHOD_NAME(self, data) -> None:
    try:
        # Vendor command set transfer length
        self.dev.ctrl_transfer(0x40, 0xA0, wValue=XFER_LEN_CMD, wIndex=len(data), data_or_wLength='')
        # Actual data
        self.dev.METHOD_NAME(self.write_addr, data, timeout=1000)
    except usb.core.USBError as err:
        sys.exit(err)