libnx  v4.2.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  */
58 Result btmsysGetRadioOnOff(bool *out);
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 
btmsysGetPairedGamepadCount
Result btmsysGetPairedGamepadCount(u8 *out)
GetPairedGamepadCount.
btmsysAcquireGamepadPairingEvent
Result btmsysAcquireGamepadPairingEvent(Event *out_event)
AcquireGamepadPairingEvent.
btmsysGetRadioOnOff
Result btmsysGetRadioOnOff(bool *out)
GetRadioOnOff.
btmsysGetServiceSession_IBtmSystemCore
Service * btmsysGetServiceSession_IBtmSystemCore(void)
Gets the Service object for IBtmSystemCore.
u8
uint8_t u8
8-bit unsigned integer.
Definition: types.h:19
Event
Kernel-mode event structure.
Definition: event.h:13
btmsysAcquireRadioEvent
Result btmsysAcquireRadioEvent(Event *out_event)
AcquireRadioEvent.
btmsysGetServiceSession
Result btmsysGetServiceSession(Service *srv_out)
Gets the Service object for the actual btm:sys service session. This object must be closed by the use...
btmsysClearGamepadPairingDatabase
Result btmsysClearGamepadPairingDatabase(void)
ClearGamepadPairingDatabase.
btmsysDisableRadio
Result btmsysDisableRadio(void)
DisableRadio.
btmsysStartGamepadPairing
Result btmsysStartGamepadPairing(void)
StartGamepadPairing.
Result
u32 Result
Function error code result type.
Definition: types.h:44
btmsysEnableRadio
Result btmsysEnableRadio(void)
EnableRadio.
btmsysIsGamepadPairingStarted
Result btmsysIsGamepadPairingStarted(bool *out)
IsGamepadPairingStarted.
btmsysCancelGamepadPairing
Result btmsysCancelGamepadPairing(void)
CancelGamepadPairing.
Service
Service object structure.
Definition: service.h:13
btmsysInitialize
Result btmsysInitialize(void)
Initialize btm:sys.
btmsysExit
void btmsysExit(void)
Exit btm:sys.