MCURTC:GetBatteryLevel: Difference between revisions

From 3dbrew
Jump to navigation Jump to search
Wwylele (talk | contribs)
No edit summary
Wwylele (talk | contribs)
No edit summary
 
Line 22: Line 22:
|-
|-
| 2
| 2
| u32? output battery level
| u8 output battery level
|}
|}


=Description=
=Description=
This reads the battery level from [[I2C]] MCU register 0xB, via [[I2C_Services|I2CMCU]] service command 0x000D00C0.
This reads the battery level from [[I2C]] MCU register 0xB, via [[I2C_Services|I2CMCU]] service command 0x000D00C0.

Latest revision as of 17:09, 24 March 2017

Request

Index Word Description
0 Header code [0x002D0000]

Response

Index Word Description
0 Header code
1 Result code
2 u8 output battery level

Description

This reads the battery level from I2C MCU register 0xB, via I2CMCU service command 0x000D00C0.