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