This commit is contained in:
minjaesong
2021-04-05 16:40:08 +09:00
parent 5a81655dfa
commit 3b11cf60c1
4 changed files with 19 additions and 27 deletions

View File

@@ -84,6 +84,19 @@ MMIO
88 RW: Rom mapping
89 RO: BMS flags
0b b000 00ca
a: 1 if charging (accepting power from the AC adapter)
c: 1 if battery is detected
b: 1 if the device is battery-operated
if the device is battery-operated but currently running off of an AC adapter and there is no battery inserted,
the flag would be 1000 0001
90 RO: BMS calculated battery percentage where 255 is 100%
91 RO: BMS battery voltage multiplied by 10 (127 = "12.7 V")
4076..4079 RW: 8-bit status code for the port
4080..4083 RO: 8-bit status code for connected device