11 #include "../kernel/event.h"
12 #include "../services/btdrv_types.h"
13 #include "../services/btm.h"
14 #include "../sf/service.h"
Result btmuGetGattCharacteristics(u32 connection_handle, u16 service_handle, BtmGattCharacteristic *characteristics, u8 count, u8 *total_out)
GetGattCharacteristics.
Result btmuInitialize(void)
Initialize btm:u.
Result btmuGetBelongingGattService(u32 connection_handle, u16 attribute_handle, BtmGattService *service, bool *flag)
This is similar to btmuGetGattIncludedServices except this only returns 1 BtmGattService.
Result btmuGetBleScanResultsForGeneral(BtdrvBleScanResult *results, u8 count, u8 *total_out)
GetBleScanResultsForGeneral.
Result btmuStopBleScanForSmartDevice(void)
StopBleScanForSmartDevice.
Result btmuStartBleScanForGeneral(BtdrvBleAdvertisePacketParameter param)
StartBleScanForGeneral.
Result btmuGetGattServices(u32 connection_handle, BtmGattService *services, u8 count, u8 *total_out)
GetGattServices.
void btmuExit(void)
Exit btm:u.
Result btmuStartBleScanForPaired(BtdrvBleAdvertisePacketParameter param)
StartBleScanForPaired.
Result btmuRegisterBleGattDataPath(const BtmBleDataPath *path)
RegisterBleGattDataPath.
Result btmuGetBleScanFilterParameter(u16 parameter_id, BtdrvBleAdvertisePacketParameter *out)
GetBleScanFilterParameter.
Result btmuGetGattService(u32 connection_handle, const BtdrvGattAttributeUuid *uuid, BtmGattService *service, bool *flag)
Same as btmuGetGattServices except this only returns the BtmGattService which matches the input Btdrv...
Result btmuBleDisconnect(u32 connection_handle)
BleDisconnect.
Result btmuBleUnPairDevice2(BtdrvAddress addr, BtdrvBleAdvertisePacketParameter param)
BleUnPairDevice2.
Result btmuBlePairDevice(u32 connection_handle, BtdrvBleAdvertisePacketParameter param)
BlePairDevice.
Result btmuGetGattDescriptors(u32 connection_handle, u16 char_handle, BtmGattDescriptor *descriptors, u8 count, u8 *total_out)
GetGattDescriptors.
Result btmuStartBleScanForSmartDevice(const BtdrvGattAttributeUuid *uuid)
StartBleScanForSmartDevice.
Result btmuBleGetPairedDevices(BtdrvBleAdvertisePacketParameter param, BtdrvAddress *addrs, u8 count, u8 *total_out)
BleGetPairedDevices.
Result btmuBleUnPairDevice(u32 connection_handle, BtdrvBleAdvertisePacketParameter param)
BleUnPairDevice.
Result btmuGetBleMtu(u32 connection_handle, u16 *out)
GetBleMtu.
Result btmuGetGattIncludedServices(u32 connection_handle, u16 service_handle, BtmGattService *services, u8 count, u8 *out)
Same as btmuGetGattServices except this only returns BtmGattService entries where various checks pass...
Result btmuUnregisterBleGattDataPath(const BtmBleDataPath *path)
UnregisterBleGattDataPath.
Result btmuStopBleScanForPaired(void)
StopBleScanForPaired.
Result btmuGetBleScanResultsForSmartDevice(BtdrvBleScanResult *results, u8 count, u8 *total_out)
GetBleScanResultsForSmartDevice.
Result btmuStopBleScanForGeneral(void)
StopBleScanForGeneral.
Result btmuConfigureBleMtu(u32 connection_handle, u16 mtu)
ConfigureBleMtu.
Result btmuAcquireBleMtuConfigEvent(Event *out_event)
AcquireBleMtuConfigEvent.
Result btmuBleConnect(BtdrvAddress addr)
BleConnect.
Result btmuGetBleScanFilterParameter2(u16 parameter_id, BtdrvGattAttributeUuid *out)
GetBleScanFilterParameter2.
Service * btmuGetServiceSession_IBtmUserCore(void)
Gets the Service object for IBtmUserCore.
Result btmuAcquireBleScanEvent(Event *out_event)
AcquireBleScanEvent.
Result btmuAcquireBleConnectionEvent(Event *out_event)
AcquireBleConnectionEvent.
Result btmuGetServiceSession(Service *srv_out)
Gets the Service object for the actual btm:u service session. This object must be closed by the user ...
Result btmuAcquireBlePairingEvent(Event *out_event)
AcquireBlePairingEvent.
Result btmuAcquireBleServiceDiscoveryEvent(Event *out_event)
AcquireBleServiceDiscoveryEvent.
Result btmuBleGetConnectionState(BtdrvBleConnectionInfo *info, u8 count, u8 *total_out)
BleGetConnectionState.
Address.
Definition: btdrv_types.h:214
BleAdvertisePacketParameter.
Definition: btdrv_types.h:348
BleConnectionInfo.
Definition: btdrv_types.h:363
BleScanResult.
Definition: btdrv_types.h:354
GattAttributeUuid.
Definition: btdrv_types.h:370
BleDataPath.
Definition: btm_types.h:294
GattCharacteristic.
Definition: btm_types.h:275
GattDescriptor.
Definition: btm_types.h:286
GattService.
Definition: btm_types.h:263
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
uint16_t u16
16-bit unsigned integer.
Definition: types.h:20
u32 Result
Function error code result type.
Definition: types.h:44
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21