libnx v4.9.0
Loading...
Searching...
No Matches
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
11typedef enum {
12 BpcSleepButtonState_Held = 0,
13 BpcSleepButtonState_Released = 1,
14} BpcSleepButtonState;
15
16/// Initialize bpc.
18
19/// Exit bpc.
20void bpcExit(void);
21
22/// Gets the Service object for the actual bpc service session.
24
25Result bpcShutdownSystem(void);
26Result bpcRebootSystem(void);
27Result bpcGetSleepButtonState(BpcSleepButtonState *out); ///< [2.0.0-13.2.1]
28Result bpcGetPowerButton(bool* out_is_pushed); ///< [6.0.0+]
Service * bpcGetServiceSession(void)
Gets the Service object for the actual bpc service session.
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 object structure.
Definition service.h:14
u32 Result
Function error code result type.
Definition types.h:44