Difference between revisions of "GSPLCD:GetPowerState"

From 3dbrew
Jump to navigation Jump to search
(Created page with "=Request= {| class="wikitable" border="1" |- ! Index Word ! Description |- | 0 | Header code [0x000E0040] |} =Response= {| class="wikitable" border="1" |- ! Index Word !...")
 
 
Line 23: Line 23:
 
| 2
 
| 2
 
| Power state (u8)
 
| Power state (u8)
 +
|}
 +
 +
=Power state flags=
 +
{| class="wikitable" border="1"
 +
|-
 +
!  Bit
 +
!  Description
 +
|-
 +
| 0
 +
| Top backlight on
 +
|-
 +
| 1
 +
| Bottom backlight on
 +
|-
 +
| 2
 +
| LC panel on
 +
|-
 +
| 3
 +
| Operation in process
 +
|-
 +
| 7
 +
| Fatal error
 
|}
 
|}
  
 
=Description=
 
=Description=
Read power state from MCUGPU. Bit 0 = top backlight on, bit 1 = bottom backlight on, bit 2 = GPU on.
+
Read LCD power state. If set, the fatal error bit halts any successive power operation; the result code tells the cause of the error.

Latest revision as of 08:57, 13 October 2023

Request[edit]

Index Word Description
0 Header code [0x000E0040]

Response[edit]

Index Word Description
0 Header code
1 Result code
2 Power state (u8)

Power state flags[edit]

Bit Description
0 Top backlight on
1 Bottom backlight on
2 LC panel on
3 Operation in process
7 Fatal error

Description[edit]

Read LCD power state. If set, the fatal error bit halts any successive power operation; the result code tells the cause of the error.