docs: def set_scan_parameters(self, scan_type=ScanType.ACTIVE, interval_ms=10, window_ms=10,
                              address_type=BluetoothAddressType.RANDOM, filter_type=ScanFilter.ALL):
          """"sets the le scan parameters
  
          Args:
              scan_type: ScanType.(PASSIVE|ACTIVE)
              interval: ms (as float) between scans (valid range 2.5ms - 10240ms)
                  ..note:: when interval and window are equal, the scan
                      runs continuos
              window: ms (as float) scan duration (valid range 2.5ms - 10240ms)
              address_type: Bluetooth address type BluetoothAddressType.(PUBLIC|RANDOM)
                  * PUBLIC = use device MAC address
                  * RANDOM = generate a random MAC address and use that
              filter: ScanFilter.(ALL|WHITELIST_ONLY) only ALL is supported, which will
                  return all fetched bluetooth packets (WHITELIST_ONLY is not supported,
                  because OCF_LE_ADD_DEVICE_TO_WHITE_LIST command is not implemented)
  
          Raises:
              ValueError: A value had an unexpected format or was not in range
          """
          interval_fractions = interval_ms / MS_FRACTION_DIVIDER
          if interval_fractions < 0x0004 or interval_fractions > 0x4000:
              raise ValueError(
                  "Invalid interval given {}, must be in range of 2.5ms to 10240ms!".format(
                      interval_fractions))
          window_fractions = window_ms / MS_FRACTION_DIVIDER
          if window_fractions < 0x0004 or window_fractions > 0x4000:
              raise ValueError(
                  "Invalid window given {}, must be in range of 2.5ms to 10240ms!".format(
                      window_fractions))
  
          interval_fractions, window_fractions = int(interval_fractions), int(window_fractions)
  
          scan_parameter_pkg = struct.pack(
              ">BHHBB",
              scan_type,
              interval_fractions,
              window_fractions,
              address_type,
              filter_type)
          self.bluez.hci_send_cmd(self.socket, OGF_LE_CTL, OCF_LE_SET_SCAN_PARAMETERS,
                                  scan_parameter_pkg)