libnx  v4.8.0
bpc.h
Go to the documentation of this file.
1 /**
2  * @file bpc.h
3  * @brief Board power control (bpc) service IPC wrapper.
4  * @author XorTroll, SciresM
5  * @copyright libnx Authors
6  */
7 #pragma once
8 #include "../types.h"
9 #include "../sf/service.h"
10 
11 typedef enum {
12  BpcSleepButtonState_Held = 0,
13  BpcSleepButtonState_Released = 1,
14 } BpcSleepButtonState;
15 
16 /// Initialize bpc.
18 
19 /// Exit bpc.
20 void bpcExit(void);
21 
22 /// Gets the Service object for the actual bpc service session.
24 
25 Result bpcShutdownSystem(void);
26 Result bpcRebootSystem(void);
27 Result bpcGetSleepButtonState(BpcSleepButtonState *out); ///< [2.0.0-13.2.1]
28 Result bpcGetPowerButton(bool* out_is_pushed); ///< [6.0.0+]
void bpcExit(void)
Exit bpc.
Result bpcGetSleepButtonState(BpcSleepButtonState *out)
[2.0.0-13.2.1]
Result bpcInitialize(void)
Initialize bpc.
Result bpcGetPowerButton(bool *out_is_pushed)
[6.0.0+]
Service * bpcGetServiceSession(void)
Gets the Service object for the actual bpc service session.
Service object structure.
Definition: service.h:14
u32 Result
Function error code result type.
Definition: types.h:44