Line 133: |
Line 133: |
| | | |
| == GetBatteryChargeInfoFields == | | == GetBatteryChargeInfoFields == |
− | No input, returns an output 0x40-byte struct. | + | No input, returns an output 0x40-byte struct: |
| + | |
| + | {| class="wikitable" border="1" |
| + | |- |
| + | ! Offset || Size || Description |
| + | |- |
| + | | 0x00 || 0x4 || Seems to be a decimal value related to the value at offset 0x4 |
| + | |- |
| + | | 0x04 || 0x4 || Seems to be a decimal value related to the value at offset 0x0 |
| + | |- |
| + | | 0x08 || 0x4 || Possibly a set a flags |
| + | |- |
| + | | 0x0C || 0x4 || Possibly a set a flags |
| + | |- |
| + | | 0x10 || 0x4 || Possibly an emum |
| + | |- |
| + | | 0x14 || 0x4 || Possibly a set a flags |
| + | |- |
| + | | 0x18 || 0x4 || Possibly an enum |
| + | |- |
| + | | 0x1C || 0x4 || Unknown |
| + | |- |
| + | | 0x20 || 0x4 || u32. Raw battery charge per cent-mille (i.e. 100% = 100000 pcm) |
| + | |- |
| + | | 0x24 || 0x4 || Unknown |
| + | |- |
| + | | 0x28 || 0x4 || u32. Battery age per cent-mille (i.e. 100% = 100000 pcm) |
| + | |- |
| + | | 0x2C || 0x4 || Boolean? Receiving voltage? |
| + | |- |
| + | | 0x30 || 0x4 || Boolean? Receiving current? |
| + | |- |
| + | | 0x34 || 0x4 || u32. Input voltage in mV |
| + | |- |
| + | | 0x38 || 0x4 || u32. Input current in mA |
| + | |- |
| + | | 0x3C || 0x4 || Possibly a set a flags (potentially 0x100 for charging, 0x1 for undocked) |
| + | |- |
| + | |} |
| | | |
| == IPsmSession == | | == IPsmSession == |