tinyqirx.conf 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. [tinyqirx]
  2. # Manufacturer code, 16-bit integer in hex
  3. ManufacturerCode = 0x0010
  4. # Qi receiver device unique identifier, must be a 32-bit integer in hex from
  5. # 0x00000000 to 0x7FFFFFFF
  6. DeviceIdentifier = 0x001b2529
  7. # Preamble length (must be at least 5.5 ms, but not longer than 12.5 ms)
  8. PreambleLength = 11 [ms]
  9. # Pause between packets (must be at least 6 ms, but not longer than
  10. # [22 ms - PreambleLength])
  11. SilentWindow = 7 [ms]
  12. # Power measurement window size (must be a multiple of 4 ms and at least 8 ms)
  13. WindowSize = 8 [ms]
  14. # Power measurement window offset (must be a multiple of 4 ms and at least as
  15. # long as the preamble length)
  16. WindowOffset = 12 [ms]
  17. # The target voltage on the rectifier
  18. SetpointVoltage = 7.5 [V]
  19. # Allowed variation of the target voltage on the rectifier
  20. SetpointVoltageTolerance = 1.0 [V]
  21. # Maximum expected voltage on the rectifier output. Exceeding this value will
  22. # shut down the receiver.
  23. MaximumExpectedVoltage = 12 [V]
  24. # Maximum expected current. Exceeding this value will shut down the receiver.
  25. MaximumExpectedCurrent = 1000 [mA]
  26. # Portion of current flowing through the current-measuring resistor, per a bit
  27. # returned by the function which performs the measurement of this current
  28. CurrentPerBit = 10.7422 [mA]
  29. # Portion of the voltage on the rectifier, per a bit returned by the function
  30. # which performs the measurement of this voltage
  31. VoltagePerBit = 47.266 [mV]
  32. # Reference power, must be from 0.5 to 5.0 W. This is roughly the maximum
  33. # expected received power.
  34. ReferencePower = 5.0 [W]
  35. # Power overestimation factor
  36. PowerOverestimationFactor = 1.5
  37. # Whether cutoff current should be used
  38. UseCutoffCurrent = no
  39. # Cutoff current
  40. CutoffCurrent = 1 [mA]
  41. # Whether the current setup facilitates battery temperature measurement
  42. UseTemperatureControl = no
  43. # Whether precise division should be used in calculation. Most cheap
  44. # microcontrollers do not implement division in hardware, so enabling this will
  45. # lead to inclusion of code implementing software division. This may increase
  46. # the firmware size severely. If left disabled approximate software division by
  47. # a constant will be used instead, which has a 1% error but takes only a few
  48. # processor instructions. This approximate division works as follows. First,
  49. # (2^24 / divisor) is precalculated before compilation. This is multiplied by
  50. # the dividend in runtime, all in 32-bit values. Finally, the result is
  51. # right-shifted by 16 bits, resulting in (256 * dividend / divisor) with 1%
  52. # accuracy.
  53. # 256 * dividend / divisor =~= [(2^24 / divisor) * dividend] / 2^16.
  54. UsePreciseDivision = no