AppleHDQGasGaugeControl: Difference between revisions

From iPhone Development Wiki
(Created page with "'''AppleHDQGasGaugeControl''' is a kernel extension for managing the gas gauge device that monitors the battery. == Methods == {| class="wikitable" |- ! Selector !! Action !!...")
 
(Fixed selector incorrect)
 
(5 intermediate revisions by the same user not shown)
Line 8: Line 8:
| 0 || reset || int flag || -
| 0 || reset || int flag || -
|-
|-
| 1 || getHDQState || - || -
| 1 || getHDQState || - || uint64_t state
|-
|-
| 2 || getDeviceConfiguration || - || -
| 2 || getDeviceConfiguration || - || 354 bytes of stuff
|-
|-
| 3 || enableCurrentLog || - || -  
| 3 || enableCurrentLog || - || -  
Line 30: Line 30:
| 15 || writeBlock || - || -
| 15 || writeBlock || - || -
|-
|-
| 15 || interrupts || - || -
| 16 || interrupts || - || -
|-
|-
|}
|}


'''NOTE:''' this table currently is only showing the selectors, the input / output will be documented later.
'''NOTE:''' this table currently is only showing the selectors, the input / output will be documented later.

Latest revision as of 16:30, 27 April 2020

AppleHDQGasGaugeControl is a kernel extension for managing the gas gauge device that monitors the battery.

Methods

Selector Action Input Output
0 reset int flag -
1 getHDQState - uint64_t state
2 getDeviceConfiguration - 354 bytes of stuff
3 enableCurrentLog - -
6 hdqBreak - -
7 hdqReadWriteByte - -
8 hdqReadWord - -
9 readBlock - -
10 ctlWriteWord - -
11 ctlReadWord - -
14 drainDataLog - -
15 writeBlock - -
16 interrupts - -

NOTE: this table currently is only showing the selectors, the input / output will be documented later.