libnx
v4.7.0
|
Bluetooth user (bt) service IPC wrapper. More...
#include "../types.h"
#include "../kernel/event.h"
#include "../services/btdrv.h"
#include "../sf/service.h"
Go to the source code of this file.
Functions | |
Result | btInitialize (void) |
Initialize bt. Only available on [5.0.0+]. | |
void | btExit (void) |
Exit bt. | |
Service * | btGetServiceSession (void) |
Gets the Service object for the actual bt service session. | |
Result | btLeClientReadCharacteristic (u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1, u8 unk) |
LeClientReadCharacteristic. More... | |
Result | btLeClientReadDescriptor (u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1, const BtdrvGattId *id2, u8 unk) |
LeClientReadDescriptor. More... | |
Result | btLeClientWriteCharacteristic (u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1, const void *buffer, size_t size, u8 unk, bool flag) |
LeClientWriteCharacteristic. More... | |
Result | btLeClientWriteDescriptor (u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1, const BtdrvGattId *id2, const void *buffer, size_t size, u8 unk) |
LeClientWriteDescriptor. More... | |
Result | btLeClientRegisterNotification (u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1) |
LeClientRegisterNotification. More... | |
Result | btLeClientDeregisterNotification (u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1) |
LeClientDeregisterNotification. More... | |
Result | btSetLeResponse (u8 unk, const BtdrvGattAttributeUuid *uuid0, const BtdrvGattAttributeUuid *uuid1, const void *buffer, size_t size) |
SetLeResponse. More... | |
Result | btLeSendIndication (u8 unk, const BtdrvGattAttributeUuid *uuid0, const BtdrvGattAttributeUuid *uuid1, const void *buffer, size_t size, bool flag) |
LeSendIndication. More... | |
Result | btGetLeEventInfo (void *buffer, size_t size, u32 *type) |
GetLeEventInfo. More... | |
Result | btRegisterBleEvent (Event *out_event) |
RegisterBleEvent. More... | |
Bluetooth user (bt) service IPC wrapper.
GetLeEventInfo.
[in] | buffer | Output buffer. 0x400-bytes from state is written here. See BtdrvLeEventInfo. |
[in] | size | Output buffer size. |
[out] | type | Output BleEventType. |
Result btLeClientDeregisterNotification | ( | u32 | connection_handle, |
bool | primary_service, | ||
const BtdrvGattId * | id0, | ||
const BtdrvGattId * | id1 | ||
) |
LeClientDeregisterNotification.
[in] | connection_handle | ConnectionHandle |
[in] | primary_service | PrimaryService |
[in] | id0 | BtdrvGattId |
[in] | id1 | BtdrvGattId |
Result btLeClientReadCharacteristic | ( | u32 | connection_handle, |
bool | primary_service, | ||
const BtdrvGattId * | id0, | ||
const BtdrvGattId * | id1, | ||
u8 | unk | ||
) |
LeClientReadCharacteristic.
[in] | connection_handle | ConnectionHandle |
[in] | primary_service | PrimaryService |
[in] | id0 | BtdrvGattId |
[in] | id1 | BtdrvGattId |
[in] | unk | Unknown |
Result btLeClientReadDescriptor | ( | u32 | connection_handle, |
bool | primary_service, | ||
const BtdrvGattId * | id0, | ||
const BtdrvGattId * | id1, | ||
const BtdrvGattId * | id2, | ||
u8 | unk | ||
) |
LeClientReadDescriptor.
[in] | connection_handle | ConnectionHandle |
[in] | primary_service | PrimaryService |
[in] | id0 | BtdrvGattId |
[in] | id1 | BtdrvGattId |
[in] | id2 | BtdrvGattId |
[in] | unk | Unknown |
Result btLeClientRegisterNotification | ( | u32 | connection_handle, |
bool | primary_service, | ||
const BtdrvGattId * | id0, | ||
const BtdrvGattId * | id1 | ||
) |
LeClientRegisterNotification.
[in] | connection_handle | ConnectionHandle |
[in] | primary_service | PrimaryService |
[in] | id0 | BtdrvGattId |
[in] | id1 | BtdrvGattId |
Result btLeClientWriteCharacteristic | ( | u32 | connection_handle, |
bool | primary_service, | ||
const BtdrvGattId * | id0, | ||
const BtdrvGattId * | id1, | ||
const void * | buffer, | ||
size_t | size, | ||
u8 | unk, | ||
bool | flag | ||
) |
LeClientWriteCharacteristic.
[in] | connection_handle | ConnectionHandle |
[in] | primary_service | PrimaryService |
[in] | id0 | BtdrvGattId |
[in] | id1 | BtdrvGattId |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size, must be <=0x258. |
[in] | unk | Unknown |
[in] | flag | Flag |
Result btLeClientWriteDescriptor | ( | u32 | connection_handle, |
bool | primary_service, | ||
const BtdrvGattId * | id0, | ||
const BtdrvGattId * | id1, | ||
const BtdrvGattId * | id2, | ||
const void * | buffer, | ||
size_t | size, | ||
u8 | unk | ||
) |
LeClientWriteDescriptor.
[in] | connection_handle | ConnectionHandle |
[in] | primary_service | PrimaryService |
[in] | id0 | BtdrvGattId |
[in] | id1 | BtdrvGattId |
[in] | id2 | BtdrvGattId |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size, must be <=0x258. |
[in] | unk | Unknown |
Result btLeSendIndication | ( | u8 | unk, |
const BtdrvGattAttributeUuid * | uuid0, | ||
const BtdrvGattAttributeUuid * | uuid1, | ||
const void * | buffer, | ||
size_t | size, | ||
bool | flag | ||
) |
LeSendIndication.
[in] | unk | Unknown |
[in] | uuid0 | BtdrvGattAttributeUuid |
[in] | uuid1 | BtdrvGattAttributeUuid |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size, clamped to max size 0x258. |
[in] | flag | Flag |
RegisterBleEvent.
[out] | out_event | Output Event with autoclear=true. |
Result btSetLeResponse | ( | u8 | unk, |
const BtdrvGattAttributeUuid * | uuid0, | ||
const BtdrvGattAttributeUuid * | uuid1, | ||
const void * | buffer, | ||
size_t | size | ||
) |
SetLeResponse.
[in] | unk | Unknown |
[in] | uuid0 | BtdrvGattAttributeUuid |
[in] | uuid1 | BtdrvGattAttributeUuid |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size, must be <=0x258. |