PTM services: Difference between revisions

Endrift (talk | contribs)
Add some info on the BatteryChargeInfoFields struct
Edited BatteryChargeInfoFields to update some fields. Used Hekate as reference.
Line 139: Line 139:
! Offset || Size || Description
! Offset || Size || Description
|-
|-
| 0x00 || 0x4 || Seems to be a decimal value related to the value at offset 0x4
| 0x00 || 0x4 || u32. Charge current limit in mA
|-
|-
| 0x04 || 0x4 || Seems to be a decimal value related to the value at offset 0x0
| 0x04 || 0x4 || u32. Input current limit in mA
|-
|-
| 0x08 || 0x4 || Possibly a set a flags
| 0x08 || 0x4 || u32. Fast charge current limit in mA
|-
|-
| 0x0C || 0x4 || Possibly a set a flags
| 0x0C || 0x4 || u32. Charge voltage limit in mV
|-
|-
| 0x10 || 0x4 || Possibly an emum
| 0x10 || 0x4 || Possibly an emum
Line 157: Line 157:
| 0x20 || 0x4 || u32. Raw battery charge per cent-mille (i.e. 100% = 100000 pcm)
| 0x20 || 0x4 || u32. Raw battery charge per cent-mille (i.e. 100% = 100000 pcm)
|-
|-
| 0x24 || 0x4 || Unknown
| 0x24 || 0x4 || u32. Voltage now in mV
|-
|-
| 0x28 || 0x4 || u32. Battery age per cent-mille (i.e. 100% = 100000 pcm)
| 0x28 || 0x4 || u32. Battery age per cent-mille (i.e. 100% = 100000 pcm)
Line 163: Line 163:
| 0x2C || 0x4 || Boolean? Receiving voltage?
| 0x2C || 0x4 || Boolean? Receiving voltage?
|-
|-
| 0x30 || 0x4 || Boolean? Receiving current?
| 0x30 || 0x4 || Possibly an enum related to charging
|-
|-
| 0x34 || 0x4 || u32. Input voltage in mV
| 0x34 || 0x4 || u32. Charger voltage limit in mV
|-
|-
| 0x38 || 0x4 || u32. Input current in mA
| 0x38 || 0x4 || u32. Charger current limit in mA
|-
|-
| 0x3C || 0x4 || Possibly a set a flags (potentially 0x100 for charging, 0x1 for undocked)
| 0x3C || 0x4 || Possibly a set a flags (potentially 0x100 for charging, 0x1 for undocked)