libnx  v4.2.2
Functions
btmsys.h File Reference

btm:sys (btm system) service IPC wrapper. More...

#include "../types.h"
#include "../kernel/event.h"
#include "../sf/service.h"

Go to the source code of this file.

Functions

Result btmsysInitialize (void)
 Initialize btm:sys.
 
void btmsysExit (void)
 Exit btm:sys.
 
Result btmsysGetServiceSession (Service *srv_out)
 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.
 
ServicebtmsysGetServiceSession_IBtmSystemCore (void)
 Gets the Service object for IBtmSystemCore.
 
Result btmsysStartGamepadPairing (void)
 StartGamepadPairing.
 
Result btmsysCancelGamepadPairing (void)
 CancelGamepadPairing.
 
Result btmsysClearGamepadPairingDatabase (void)
 ClearGamepadPairingDatabase.
 
Result btmsysGetPairedGamepadCount (u8 *out)
 GetPairedGamepadCount. More...
 
Result btmsysEnableRadio (void)
 EnableRadio.
 
Result btmsysDisableRadio (void)
 DisableRadio.
 
Result btmsysGetRadioOnOff (bool *out)
 GetRadioOnOff. More...
 
Result btmsysAcquireRadioEvent (Event *out_event)
 AcquireRadioEvent. More...
 
Result btmsysAcquireGamepadPairingEvent (Event *out_event)
 AcquireGamepadPairingEvent. More...
 
Result btmsysIsGamepadPairingStarted (bool *out)
 IsGamepadPairingStarted. More...
 

Detailed Description

btm:sys (btm system) service IPC wrapper.

Author
yellows8

Function Documentation

◆ btmsysAcquireGamepadPairingEvent()

Result btmsysAcquireGamepadPairingEvent ( Event out_event)

AcquireGamepadPairingEvent.

Note
Only available on [3.0.0+].
The Event must be closed by the user once finished with it.
Parameters
[out]out_eventOutput Event with autoclear=true.

◆ btmsysAcquireRadioEvent()

Result btmsysAcquireRadioEvent ( Event out_event)

AcquireRadioEvent.

Note
Only available on [3.0.0+].
The Event must be closed by the user once finished with it.
Parameters
[out]out_eventOutput Event with autoclear=true.

◆ btmsysGetPairedGamepadCount()

Result btmsysGetPairedGamepadCount ( u8 out)

GetPairedGamepadCount.

Parameters
[out]outOutput count.

◆ btmsysGetRadioOnOff()

Result btmsysGetRadioOnOff ( bool *  out)

GetRadioOnOff.

Parameters
[out]outOutput flag.

◆ btmsysIsGamepadPairingStarted()

Result btmsysIsGamepadPairingStarted ( bool *  out)

IsGamepadPairingStarted.

Note
Only available on [3.0.0+].
Parameters
[out]outOutput flag.