10 #include "../kernel/event.h"
11 #include "../services/btdrv.h"
12 #include "../sf/service.h"
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.
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.
Result btLeClientRegisterNotification(u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1)
LeClientRegisterNotification.
Result btInitialize(void)
Initialize bt. Only available on [5.0.0+].
Result btLeClientReadCharacteristic(u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1, u8 unk)
LeClientReadCharacteristic.
Result btGetLeEventInfo(void *buffer, size_t size, u32 *type)
GetLeEventInfo.
Result btLeClientDeregisterNotification(u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1)
LeClientDeregisterNotification.
void btExit(void)
Exit bt.
Result btLeSendIndication(u8 unk, const BtdrvGattAttributeUuid *uuid0, const BtdrvGattAttributeUuid *uuid1, const void *buffer, size_t size, bool flag)
LeSendIndication.
Service * btGetServiceSession(void)
Gets the Service object for the actual bt service session.
Result btSetLeResponse(u8 unk, const BtdrvGattAttributeUuid *uuid0, const BtdrvGattAttributeUuid *uuid1, const void *buffer, size_t size)
SetLeResponse.
Result btLeClientReadDescriptor(u32 connection_handle, bool primary_service, const BtdrvGattId *id0, const BtdrvGattId *id1, const BtdrvGattId *id2, u8 unk)
LeClientReadDescriptor.
Result btRegisterBleEvent(Event *out_event)
RegisterBleEvent.
GattAttributeUuid.
Definition: btdrv_types.h:370
GattId.
Definition: btdrv_types.h:376
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
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21