code: def to_frame(self, slot=SLOT.DEVICE_CONFIG):
          
          data = self.to_string()
          payload = data.ljust(64, b'\0')
          return yubikey_frame.YubiKeyFrame(command=slot, payload=payload)
docs: Return the current configuration as a YubiKeyFrame object.