10 #include "../kernel/event.h"
11 #include "../services/btdrv.h"
12 #include "../sf/service.h"
Result btGetLeEventInfo(void *buffer, size_t size, BtdrvBleEventType *type)
GetLeEventInfo.
Result btLeClientWriteDescriptor(u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, const BtdrvGattId *desc_id, const void *buffer, size_t size, u8 auth_req)
LeClientWriteDescriptor.
Result btInitialize(void)
Initialize bt. Only available on [5.0.0+].
void btExit(void)
Exit bt.
Result btLeClientReadDescriptor(u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, const BtdrvGattId *desc_id, u8 auth_req)
LeClientReadDescriptor.
Service * btGetServiceSession(void)
Gets the Service object for the actual bt service session.
Result btLeClientReadCharacteristic(u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, u8 auth_req)
LeClientReadCharacteristic.
Result btLeClientDeregisterNotification(u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id)
LeClientDeregisterNotification.
Result btLeClientRegisterNotification(u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id)
LeClientRegisterNotification.
Result btLeClientWriteCharacteristic(u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, const void *buffer, size_t size, u8 auth_req, bool with_response)
LeClientWriteCharacteristic.
Result btLeSendIndication(u8 server_if, const BtdrvGattAttributeUuid *serv_uuid, const BtdrvGattAttributeUuid *char_uuid, const void *buffer, size_t size, bool noconfirm)
LeSendIndication.
Result btSetLeResponse(u8 server_if, const BtdrvGattAttributeUuid *serv_uuid, const BtdrvGattAttributeUuid *char_uuid, const void *buffer, size_t size)
SetLeResponse.
Result btRegisterBleEvent(Event *out_event)
RegisterBleEvent.
BtdrvBleEventType
BleEventType.
Definition: btdrv_types.h:127
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