Difference between revisions of "84PCE:Syscalls:0003B0"
From WikiTI
(Created page with "GetBatteryStatus 0003B0 - GetBatteryStatus == Synopsis == '''Hypothesized Official Name:''' GetBatterySt...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:84PCE:CCalls:By Name| | + | [[Category:84PCE:CCalls:By Name|boot_GetBatteryStatus]] |
− | [[Category:84PCE:CCalls:By Address|0003B0 - | + | [[Category:84PCE:CCalls:By Address|0003B0 - boot_GetBatteryStatus]] |
== Synopsis == | == Synopsis == | ||
− | '''Hypothesized Official Name:''' | + | '''Hypothesized Official Name:''' boot_GetBatteryStatus |
'''C Function Address:''' 0003B0h | '''C Function Address:''' 0003B0h | ||
− | Gets the status of the battery | + | Gets the status of the battery percentage. There are five possible values: |
− | < | + | <pre>> 75% ; returns 4 |
50%-75% ; returns 3 | 50%-75% ; returns 3 | ||
25%-50% ; returns 2 | 25%-50% ; returns 2 | ||
5%-25% ; returns 1 | 5%-25% ; returns 1 | ||
− | < 5% ; returns 0</ | + | < 5% ; returns 0</pre> |
=== Function Prototype === | === Function Prototype === | ||
− | uint8 | + | uint8 boot_GetBatteryStatus(void); |
=== Arguments === | === Arguments === | ||
Line 21: | Line 21: | ||
=== Returns === | === Returns === | ||
− | * The battery voltage | + | * The battery voltage percentage. |
Latest revision as of 23:36, 5 March 2016
Synopsis
Hypothesized Official Name: boot_GetBatteryStatus
C Function Address: 0003B0h
Gets the status of the battery percentage. There are five possible values:
> 75% ; returns 4 50%-75% ; returns 3 25%-50% ; returns 2 5%-25% ; returns 1 < 5% ; returns 0
Function Prototype
uint8 boot_GetBatteryStatus(void);
Arguments
- None (void)
Returns
- The battery voltage percentage.