84PCE:Syscalls:0003B0: Difference between revisions

From WikiTI
Jump to navigationJump to search
No edit summary
Line 1: Line 1:
[[Category:84PCE:CCalls:By Name|GetBatteryStatus]]
[[Category:84PCE:CCalls:By Name|GetBatteryPercent]]
[[Category:84PCE:CCalls:By Address|0003B0 - GetBatteryStatus]]
[[Category:84PCE:CCalls:By Address|0003B0 - GetBatteryPercent]]
== Synopsis ==
== Synopsis ==
'''Hypothesized Official Name:''' GetBatteryStatus
'''Hypothesized Official Name:''' GetBatteryPercent


'''C Function Address:''' 0003B0h
'''C Function Address:''' 0003B0h


Gets the status of the battery voltage. There are five possible values:
Gets the status of the battery percentage. There are five possible values:


<pre>> 75%      ; returns 4  
<pre>> 75%      ; returns 4  
Line 15: Line 15:


=== Function Prototype ===
=== Function Prototype ===
uint8 GetBatteryStatus(void);
uint8 GetBatteryPercent(void);


=== Arguments ===
=== Arguments ===
Line 21: Line 21:


=== Returns ===
=== Returns ===
* The battery voltage status
* The battery voltage percentage.

Revision as of 06:19, 8 September 2015

Synopsis

Hypothesized Official Name: GetBatteryPercent

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 GetBatteryPercent(void);

Arguments

  • None (void)

Returns

  • The battery voltage percentage.