libnx v4.9.0
Loading...
Searching...
No Matches
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 "../services/btdrv_types.h"
10#include "../services/btm_types.h"
11#include "../sf/service.h"
12
13/// Initialize btm:sys.
15
16/// Exit btm:sys.
17void btmsysExit(void);
18
19/// 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.
21
22/// Gets the Service object for IBtmSystemCore.
24
25/**
26 * @brief StartGamepadPairing
27 */
29
30/**
31 * @brief CancelGamepadPairing
32 */
34
35/**
36 * @brief ClearGamepadPairingDatabase
37 */
39
40/**
41 * @brief GetPairedGamepadCount
42 * @param[out] out Output count.
43 */
45
46/**
47 * @brief EnableRadio
48 */
50
51/**
52 * @brief DisableRadio
53 */
55
56/**
57 * @brief GetRadioOnOff
58 * @param[out] out Output flag.
59 */
61
62/**
63 * @brief AcquireRadioEvent
64 * @note Only available on [3.0.0+].
65 * @note The Event must be closed by the user once finished with it.
66 * @param[out] out_event Output Event with autoclear=true.
67 */
69
70/**
71 * @brief AcquireGamepadPairingEvent
72 * @note Only available on [3.0.0+].
73 * @note The Event must be closed by the user once finished with it.
74 * @param[out] out_event Output Event with autoclear=true.
75 */
77
78/**
79 * @brief IsGamepadPairingStarted
80 * @note Only available on [3.0.0+].
81 * @param[out] out Output flag.
82 */
84
85/**
86 * @brief StartAudioDeviceDiscovery
87 * @note Only available on [13.0.0+].
88 */
90
91/**
92 * @brief StopAudioDeviceDiscovery
93 * @note Only available on [13.0.0+].
94 */
96
97/**
98 * @brief IsDiscoveryingAudioDevice
99 * @note Only available on [13.0.0+].
100 * @param[out] out Output flag.
101 */
103
104/**
105 * @brief GetDiscoveredAudioDevice
106 * @note Only available on [13.0.0+].
107 * @param[out] out Output array of \ref BtmAudioDevice.
108 * @param[in] count Size of the out array in entries. The max is 15.
109 * @param[out] total_out Total output entries.
110 */
112
113/**
114 * @brief AcquireAudioDeviceConnectionEvent
115 * @note Only available on [13.0.0+].
116 * @note The Event must be closed by the user once finished with it.
117 * @param[out] out_event Output Event with autoclear=true.
118 */
120
121/**
122 * @brief ConnectAudioDevice
123 * @note Only available on [13.0.0+].
124 * @param[in] addr \ref BtdrvAddress
125 */
127
128/**
129 * @brief IsConnectingAudioDevice
130 * @note Only available on [13.0.0+].
131 * @param[out] out Output flag.
132 */
134
135/**
136 * @brief GetConnectedAudioDevices
137 * @note Only available on [13.0.0+].
138 * @param[out] out Output array of \ref BtmAudioDevice.
139 * @param[in] count Size of the out array in entries. The max is 8.
140 * @param[out] total_out Total output entries.
141 */
143
144/**
145 * @brief DisconnectAudioDevice
146 * @note Only available on [13.0.0+].
147 * @param[in] addr \ref BtdrvAddress
148 */
150
151/**
152 * @brief AcquirePairedAudioDeviceInfoChangedEvent
153 * @note Only available on [13.0.0+].
154 * @note The Event must be closed by the user once finished with it.
155 * @param[out] out_event Output Event with autoclear=true.
156 */
158
159/**
160 * @brief GetPairedAudioDevices
161 * @note Only available on [13.0.0+].
162 * @param[out] out Output array of \ref BtmAudioDevice.
163 * @param[in] count Size of the out array in entries. The max is 10.
164 * @param[out] total_out Total output entries.
165 */
167
168/**
169 * @brief RemoveAudioDevicePairing
170 * @note Only available on [13.0.0+].
171 * @param[in] addr \ref BtdrvAddress
172 */
174
175/**
176 * @brief RequestAudioDeviceConnectionRejection
177 * @note Only available on [13.0.0+].
178 */
180
181/**
182 * @brief CancelAudioDeviceConnectionRejection
183 * @note Only available on [13.0.0+].
184 */
Result btmsysStartGamepadPairing(void)
StartGamepadPairing.
Result btmsysStopAudioDeviceDiscovery(void)
StopAudioDeviceDiscovery.
Result btmsysDisconnectAudioDevice(BtdrvAddress addr)
DisconnectAudioDevice.
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 btmsysAcquireAudioDeviceConnectionEvent(Event *out_event)
AcquireAudioDeviceConnectionEvent.
Result btmsysDisableRadio(void)
DisableRadio.
Result btmsysGetRadioOnOff(bool *out)
GetRadioOnOff.
Result btmsysGetDiscoveredAudioDevice(BtmAudioDevice *out, s32 count, s32 *total_out)
GetDiscoveredAudioDevice.
Result btmsysRequestAudioDeviceConnectionRejection(void)
RequestAudioDeviceConnectionRejection.
Result btmsysAcquireRadioEvent(Event *out_event)
AcquireRadioEvent.
Result btmsysConnectAudioDevice(BtdrvAddress addr)
ConnectAudioDevice.
Result btmsysIsGamepadPairingStarted(bool *out)
IsGamepadPairingStarted.
Result btmsysGetPairedAudioDevices(BtmAudioDevice *out, s32 count, s32 *total_out)
GetPairedAudioDevices.
Result btmsysIsConnectingAudioDevice(bool *out)
IsConnectingAudioDevice.
void btmsysExit(void)
Exit btm:sys.
Result btmsysIsDiscoveryingAudioDevice(bool *out)
IsDiscoveryingAudioDevice.
Result btmsysCancelAudioDeviceConnectionRejection(void)
CancelAudioDeviceConnectionRejection.
Result btmsysEnableRadio(void)
EnableRadio.
Result btmsysAcquirePairedAudioDeviceInfoChangedEvent(Event *out_event)
AcquirePairedAudioDeviceInfoChangedEvent.
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.
Result btmsysGetConnectedAudioDevices(BtmAudioDevice *out, s32 count, s32 *total_out)
GetConnectedAudioDevices.
Result btmsysRemoveAudioDevicePairing(BtdrvAddress addr)
RemoveAudioDevicePairing.
Result btmsysStartAudioDeviceDiscovery(void)
StartAudioDeviceDiscovery.
Address.
Definition btdrv_types.h:245
AudioDevice.
Definition btm_types.h:302
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
int32_t s32
32-bit signed integer.
Definition types.h:27