9 #include "../kernel/event.h"
10 #include "../services/btdrv_types.h"
11 #include "../services/btm_types.h"
12 #include "../sf/service.h"
Result btmAddDeviceInfo(const BtmDeviceInfo *info)
AddDeviceInfo.
Result btmLlrNotify(BtdrvAddress addr, s32 unk)
LlrNotify.
Result btmBleUnPairDevice(BtdrvAddress addr, BtdrvBleAdvertisePacketParameter param)
BleUnPairDevice.
Result btmBleUnpairDeviceOnBoth(u32 connection_handle, BtdrvBleAdvertisePacketParameter param)
BleUnpairDeviceOnBoth.
Result btmBleGetGattClientConditionList(BtmGattClientConditionList *list)
BleGetGattClientConditionList.
Result btmSetBluetoothMode(BtmBluetoothMode mode)
SetBluetoothMode.
Result btmRegisterAppletResourceUserId(u64 AppletResourceUserId, u32 unk)
RegisterAppletResourceUserId.
Result btmGetBleScanParameterSmartDevice(u16 parameter_id, BtdrvGattAttributeUuid *out)
GetBleScanParameterSmartDevice.
Result btmHidSetRetransmissionMode(BtdrvAddress addr, const BtmZeroRetransmissionList *list)
HidSetRetransmissionMode.
Result btmSetWlanMode(BtmWlanMode mode)
SetWlanMode.
Result btmStartBleScanForGeneral(BtdrvBleAdvertisePacketParameter param)
StartBleScanForGeneral.
Result btmDisableRadio(void)
DisableRadio.
Result btmGetDeviceInfo(BtmProfile profile, BtmDeviceInfoV13 *out, size_t count, s32 *total_out)
GetDeviceInfo [13.0.0+].
Result btmAcquireDeviceConditionEvent(Event *out_event)
AcquireDeviceConditionEvent.
Result btmAcquireBlePairingEvent(Event *out_event)
AcquireBlePairingEvent.
Result btmLegacyGetDeviceCondition(BtmDeviceCondition *out)
GetDeviceCondition [1.0.0-12.1.0].
Result btmGetGattService(u32 connection_handle, const BtdrvGattAttributeUuid *uuid, BtmGattService *service, bool *flag)
Same as btmGetGattServices except this only returns the BtmGattService which matches the input BtdrvG...
Result btmInitialize(void)
Initialize btm.
Result btmStartBleScanForSmartDevice(const BtdrvGattAttributeUuid *uuid)
StartBleScanForSmartDevice.
Result btmRemoveDeviceInfo(BtdrvAddress addr)
RemoveDeviceInfo.
Result btmBleConnect(BtdrvAddress addr)
BleConnect.
Result btmSetAppletResourceUserId(u64 AppletResourceUserId)
SetAppletResourceUserId.
Result btmHidDisconnect(BtdrvAddress addr)
HidDisconnect.
Result btmEnableSlotSaving(bool flag)
EnableSlotSaving.
Result btmGetBelongingService(u32 connection_handle, u16 attribute_handle, BtmGattService *service, bool *flag)
This is similar to btmGetGattIncludedServices except this only returns 1 BtmGattService.
Result btmGetGattIncludedServices(u32 connection_handle, u16 service_handle, BtmGattService *services, u8 count, u8 *out)
Same as btmGetGattServices except this only returns BtmGattService entries where various checks pass ...
Result btmAcquireBleConnectionEvent(Event *out_event)
AcquireBleConnectionEvent.
Result btmLegacyGetDeviceInfo(BtmDeviceInfoList *out)
GetDeviceInfo [1.0.0-12.1.0].
Result btmIsLlrStarted(bool *out)
IsLlrStarted.
Result btmGetBleScanResultsForSmartDevice(BtdrvBleScanResult *results, u8 count, u8 *total_out)
GetBleScanResultsForSmartDevice.
Result btmStartBleScanForPaired(BtdrvBleAdvertisePacketParameter param)
StartBleScanForPaired.
Result btmGetBleMtu(u32 connection_handle, u16 *out)
GetBleMtu.
Result btmGetGattServices(u32 connection_handle, BtmGattService *services, u8 count, u8 *total_out)
GetGattServices.
Result btmUnregisterAppletResourceUserId(u64 AppletResourceUserId)
UnregisterAppletResourceUserId.
Result btmGetState(BtmState *out)
GetState.
Result btmSetBurstMode(BtdrvAddress addr, bool flag)
SetBurstMode.
Result btmSetSlotMode(const BtmDeviceSlotModeList *list)
SetSlotMode.
Result btmAcquireBleScanEvent(Event *out_event)
AcquireBleScanEvent.
Result btmAcquireAwakeReqEvent(Event *out_event)
AcquireAwakeReqEvent.
Result btmRegisterBleGattDataPath(const BtmBleDataPath *path)
RegisterBleGattDataPath.
Result btmConfigureBleMtu(u32 connection_handle, u16 mtu)
ConfigureBleMtu.
Result btmAcquireBleServiceDiscoveryEvent(Event *out_event)
AcquireBleServiceDiscoveryEvent.
Result btmBleOverrideConnection(u32 id)
BleOverrideConnection.
Result btmAcquireLlrStateEvent(Event *out_event)
AcquireLlrStateEvent.
void btmExit(void)
Exit btm.
Result btmBleGetPairedAddresses(BtdrvBleAdvertisePacketParameter param, BtdrvAddress *addrs, u8 count, u8 *total_out)
BleGetPairedAddresses.
Result btmBleGetConnectionState(BtdrvBleConnectionInfo *info, u8 count, u8 *total_out)
BleGetConnectionState.
Result btmGetGattDescriptors(u32 connection_handle, u16 char_handle, BtmGattDescriptor *descriptors, u8 count, u8 *total_out)
GetGattDescriptors.
Result btmAcquireDeviceInfoEvent(Event *out_event)
AcquireDeviceInfoEvent.
Result btmBlePairDevice(u32 connection_handle, BtdrvBleAdvertisePacketParameter param)
BlePairDevice.
Result btmGetHostDeviceProperty(BtmHostDeviceProperty *out)
GetHostDeviceProperty.
Result btmIncreaseDeviceInfoOrder(BtdrvAddress addr)
IncreaseDeviceInfoOrder.
Result btmUnregisterBleGattDataPath(const BtmBleDataPath *path)
UnregisterBleGattDataPath.
Result btmGetBleScanParameterGeneral(u16 parameter_id, BtdrvBleAdvertisePacketParameter *out)
GetBleScanParameterGeneral.
Result btmGetGattCharacteristics(u32 connection_handle, u16 service_handle, BtmGattCharacteristic *characteristics, u8 count, u8 *total_out)
GetGattCharacteristics.
Result btmGetDeviceCondition(BtmProfile profile, BtmConnectedDeviceV13 *out, size_t count, s32 *total_out)
GetDeviceCondition [13.0.0+].
Result btmEnableRadio(void)
EnableRadio.
Result btmStopBleScanForPaired(void)
StopBleScanForPaired.
Result btmStopBleScanForGeneral(void)
StopBleScanForGeneral.
Result btmStopBleScanForSmartDevice(void)
StopBleScanForSmartDevice.
Result btmAcquireBleMtuConfigEvent(Event *out_event)
AcquireBleMtuConfigEvent.
Result btmProtectDeviceInfo(BtdrvAddress addr, bool flag)
ProtectDeviceInfo.
Service * btmGetServiceSession(void)
Gets the Service object for the actual btm service session.
Result btmBleDisconnect(u32 connection_handle)
BleDisconnect.
Result btmGetBleScanResultsForGeneral(BtdrvBleScanResult *results, u8 count, u8 *total_out)
GetBleScanResultsForGeneral.
BtmBluetoothMode
BluetoothMode.
Definition: btm_types.h:23
BtmProfile
Profile.
Definition: btm_types.h:60
BtmState
BtmState.
Definition: btm_types.h:11
BtmWlanMode
WlanMode.
Definition: btm_types.h:29
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:295
BtmConnectedDevice [13.0.0+].
Definition: btm_types.h:119
DeviceInfoList.
Definition: btm_types.h:233
DeviceInfo [13.0.0+].
Definition: btm_types.h:211
DeviceSlotModeList.
Definition: btm_types.h:189
GattCharacteristic.
Definition: btm_types.h:276
GattClientConditionList.
Definition: btm_types.h:259
GattDescriptor.
Definition: btm_types.h:287
GattService.
Definition: btm_types.h:264
HostDeviceProperty.
Definition: btm_types.h:88
ZeroRetransmissionList.
Definition: btm_types.h:253
Kernel-mode event structure.
Definition: event.h:13
Service object structure.
Definition: service.h:14
uint64_t u64
64-bit unsigned integer.
Definition: types.h:22
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
int32_t s32
32-bit signed integer.
Definition: types.h:27
uint32_t u32
32-bit unsigned integer.
Definition: types.h:21
DeviceCondition [1.0.0-12.1.0].
Definition: btm_types.h:174
DeviceInfo [1.0.0-13.0.0].
Definition: btm_types.h:227