libnx  v4.6.0
btmsys.h
Go to the documentation of this file.
1 /**
2  * @file btmsys.h
3  * @brief btm:sys (btm system) service IPC wrapper.
4  * @author yellows8
5  */
6 #pragma once
7 #include "../types.h"
8 #include "../kernel/event.h"
9 #include "../sf/service.h"
10 
11 /// Initialize btm:sys.
13 
14 /// Exit btm:sys.
15 void btmsysExit(void);
16 
17 /// Gets the Service object for the actual btm:sys service session. This object must be closed by the user once finished using cmds with this.
19 
20 /// Gets the Service object for IBtmSystemCore.
22 
23 /**
24  * @brief StartGamepadPairing
25  */
27 
28 /**
29  * @brief CancelGamepadPairing
30  */
32 
33 /**
34  * @brief ClearGamepadPairingDatabase
35  */
37 
38 /**
39  * @brief GetPairedGamepadCount
40  * @param[out] out Output count.
41  */
43 
44 /**
45  * @brief EnableRadio
46  */
48 
49 /**
50  * @brief DisableRadio
51  */
53 
54 /**
55  * @brief GetRadioOnOff
56  * @param[out] out Output flag.
57  */
59 
60 /**
61  * @brief AcquireRadioEvent
62  * @note Only available on [3.0.0+].
63  * @note The Event must be closed by the user once finished with it.
64  * @param[out] out_event Output Event with autoclear=true.
65  */
67 
68 /**
69  * @brief AcquireGamepadPairingEvent
70  * @note Only available on [3.0.0+].
71  * @note The Event must be closed by the user once finished with it.
72  * @param[out] out_event Output Event with autoclear=true.
73  */
75 
76 /**
77  * @brief IsGamepadPairingStarted
78  * @note Only available on [3.0.0+].
79  * @param[out] out Output flag.
80  */
82 
Result btmsysStartGamepadPairing(void)
StartGamepadPairing.
Result btmsysGetServiceSession(Service *srv_out)
Gets the Service object for the actual btm:sys service session. This object must be closed by the use...
Result btmsysDisableRadio(void)
DisableRadio.
Result btmsysGetRadioOnOff(bool *out)
GetRadioOnOff.
Result btmsysAcquireRadioEvent(Event *out_event)
AcquireRadioEvent.
Result btmsysIsGamepadPairingStarted(bool *out)
IsGamepadPairingStarted.
void btmsysExit(void)
Exit btm:sys.
Result btmsysEnableRadio(void)
EnableRadio.
Result btmsysCancelGamepadPairing(void)
CancelGamepadPairing.
Result btmsysClearGamepadPairingDatabase(void)
ClearGamepadPairingDatabase.
Result btmsysAcquireGamepadPairingEvent(Event *out_event)
AcquireGamepadPairingEvent.
Result btmsysInitialize(void)
Initialize btm:sys.
Service * btmsysGetServiceSession_IBtmSystemCore(void)
Gets the Service object for IBtmSystemCore.
Result btmsysGetPairedGamepadCount(u8 *out)
GetPairedGamepadCount.
Kernel-mode event structure.
Definition: event.h:13
Service object structure.
Definition: service.h:14
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
u32 Result
Function error code result type.
Definition: types.h:44