|
Result | btdevInitialize (void) |
| Initialize bt/btmu.
|
|
void | btdevExit (void) |
| Exit bt/btmu.
|
|
bool | btdevGattAttributeUuidIsSame (const BtdrvGattAttributeUuid *a, const BtdrvGattAttributeUuid *b) |
| Compares two BtdrvGattAttributeUuid, returning whether these match.
|
|
Result | btdevAcquireBleScanEvent (Event *out_event) |
| Wrapper for btmuAcquireBleScanEvent.
|
|
Result | btdevGetBleScanParameter (u16 parameter_id, BtdrvBleAdvertisePacketParameter *out) |
| Wrapper for btmuGetBleScanFilterParameter.
|
|
Result | btdevGetBleScanParameter2 (u16 parameter_id, BtdrvGattAttributeUuid *out) |
| Wrapper for btmuGetBleScanFilterParameter2.
|
|
Result | btdevStartBleScanGeneral (BtdrvBleAdvertisePacketParameter param) |
| Wrapper for btdevStartBleScanGeneral.
|
|
Result | btdevStopBleScanGeneral (void) |
| Wrapper for btmuStopBleScanForGeneral.
|
|
Result | btdevGetBleScanResult (BtdrvBleScanResult *results, u8 count, u8 *total_out) |
| Wrapper for btmuGetBleScanResultsForGeneral and btmuGetBleScanResultsForSmartDevice.
|
|
Result | btdevEnableBleAutoConnection (BtdrvBleAdvertisePacketParameter param) |
| Wrapper for btmuStartBleScanForPaired.
|
|
Result | btdevDisableBleAutoConnection (void) |
| Wrapper for btmuStopBleScanForPaired.
|
|
Result | btdevStartBleScanSmartDevice (const BtdrvGattAttributeUuid *uuid) |
| Wrapper for btmuStartBleScanForSmartDevice.
|
|
Result | btdevStopBleScanSmartDevice (void) |
| Wrapper for btmuStopBleScanForSmartDevice.
|
|
Result | btdevAcquireBleConnectionStateChangedEvent (Event *out_event) |
| Wrapper for btmuAcquireBleConnectionEvent.
|
|
Result | btdevConnectToGattServer (BtdrvAddress addr) |
| Wrapper for btmuBleConnect.
|
|
Result | btdevDisconnectFromGattServer (u32 connection_handle) |
| Wrapper for btmuBleDisconnect.
|
|
Result | btdevGetBleConnectionInfoList (BtdrvBleConnectionInfo *info, u8 count, u8 *total_out) |
| Wrapper for btmuBleGetConnectionState.
|
|
Result | btdevAcquireBleServiceDiscoveryEvent (Event *out_event) |
| Wrapper for btmuAcquireBleServiceDiscoveryEvent.
|
|
Result | btdevGetGattServices (u32 connection_handle, BtdevGattService *services, u8 count, u8 *total_out) |
| Wrapper for btmuGetGattServices.
|
|
Result | btdevGetGattService (u32 connection_handle, const BtdrvGattAttributeUuid *uuid, BtdevGattService *service, bool *flag) |
| Wrapper for btmuGetGattService.
|
|
Result | btdevAcquireBlePairingEvent (Event *out_event) |
| Wrapper for btmuAcquireBlePairingEvent.
|
|
Result | btdevPairGattServer (u32 connection_handle, BtdrvBleAdvertisePacketParameter param) |
| Wrapper for btmuBlePairDevice.
|
|
Result | btdevUnpairGattServer (u32 connection_handle, BtdrvBleAdvertisePacketParameter param) |
| Wrapper for btmuBleUnPairDevice.
|
|
Result | btdevUnpairGattServer2 (BtdrvAddress addr, BtdrvBleAdvertisePacketParameter param) |
| Wrapper for btmuBleUnPairDevice2.
|
|
Result | btdevGetPairedGattServerAddress (BtdrvBleAdvertisePacketParameter param, BtdrvAddress *addrs, u8 count, u8 *total_out) |
| Wrapper for btmuBleGetPairedDevices.
|
|
Result | btdevAcquireBleMtuConfigEvent (Event *out_event) |
| Wrapper for btmuAcquireBleMtuConfigEvent.
|
|
Result | btdevConfigureBleMtu (u32 connection_handle, u16 mtu) |
| Wrapper for btmuConfigureBleMtu.
|
|
Result | btdevGetBleMtu (u32 connection_handle, u16 *out) |
| Wrapper for btmuGetBleMtu.
|
|
Result | btdevAcquireBleGattOperationEvent (Event *out_event) |
| Wrapper for btRegisterBleEvent.
|
|
Result | btdevRegisterGattOperationNotification (const BtdrvGattAttributeUuid *uuid) |
| Wrapper for btmuRegisterBleGattDataPath.
|
|
Result | btdevUnregisterGattOperationNotification (const BtdrvGattAttributeUuid *uuid) |
| Wrapper for btmuUnregisterBleGattDataPath.
|
|
Result | btdevGetGattOperationResult (BtdrvBleClientGattOperationInfo *out) |
| Wrapper for btGetLeEventInfo.
|
|
Result | btdevReadGattCharacteristic (BtdevGattCharacteristic *c) |
| Wrapper for btLeClientReadCharacteristic.
|
|
Result | btdevWriteGattCharacteristic (BtdevGattCharacteristic *c) |
| Wrapper for btLeClientWriteCharacteristic.
|
|
Result | btdevEnableGattCharacteristicNotification (BtdevGattCharacteristic *c, bool flag) |
| Wrapper for btLeClientRegisterNotification / btLeClientDeregisterNotification.
|
|
Result | btdevReadGattDescriptor (BtdevGattDescriptor *d) |
| Wrapper for btLeClientReadDescriptor.
|
|
Result | btdevWriteGattDescriptor (BtdevGattDescriptor *d) |
| Wrapper for btLeClientWriteDescriptor.
|
|
|
void | btdevGattAttributeCreate (BtdevGattAttribute *a, const BtdrvGattAttributeUuid *uuid, u16 handle, u32 connection_handle) |
| Creates a BtdevGattAttribute object.
|
|
static u8 | btdevGattAttributeGetType (BtdevGattAttribute *a) |
| Gets the Type.
|
|
static void | btdevGattAttributeGetUuid (BtdevGattAttribute *a, BtdrvGattAttributeUuid *out) |
| Gets the Uuid.
|
|
static u16 | btdevGattAttributeGetHandle (BtdevGattAttribute *a) |
| Gets the Handle.
|
|
static u32 | btdevGattAttributeGetConnectionHandle (BtdevGattAttribute *a) |
| Gets the ConnectionHandle.
|
|
|
void | btdevGattServiceCreate (BtdevGattService *s, const BtdrvGattAttributeUuid *uuid, u16 handle, u32 connection_handle, u16 instance_id, u16 end_group_handle, bool primary_service) |
| Creates a BtdevGattService object.
|
|
static u16 | btdevGattServiceGetInstanceId (BtdevGattService *s) |
| Gets the InstanceId.
|
|
static u16 | btdevGattServiceGetEndGroupHandle (BtdevGattService *s) |
| Gets the EndGroupHandle.
|
|
static u16 | btdevGattServiceIsPrimaryService (BtdevGattService *s) |
| Gets whether this is the PrimaryService.
|
|
Result | btdevGattServiceGetIncludedServices (BtdevGattService *s, BtdevGattService *services, u8 count, u8 *total_out) |
| Wrapper for btmuGetGattIncludedServices.
|
|
Result | btdevGattServiceGetCharacteristics (BtdevGattService *s, BtdevGattCharacteristic *characteristics, u8 count, u8 *total_out) |
| Wrapper for btmuGetGattCharacteristics.
|
|
Result | btdevGattServiceGetCharacteristic (BtdevGattService *s, const BtdrvGattAttributeUuid *uuid, BtdevGattCharacteristic *characteristic, bool *flag) |
| Same as btdevGattServiceGetCharacteristics except this only returns the BtdevGattCharacteristic which contains a matching BtdrvGattAttributeUuid.
|
|
|
void | btdevGattCharacteristicCreate (BtdevGattCharacteristic *c, const BtdrvGattAttributeUuid *uuid, u16 handle, u32 connection_handle, u16 instance_id, u8 properties) |
| Creates a BtdevGattCharacteristic object.
|
|
static u16 | btdevGattCharacteristicGetInstanceId (BtdevGattCharacteristic *c) |
| Gets the InstanceId.
|
|
static u8 | btdevGattCharacteristicGetProperties (BtdevGattCharacteristic *c) |
| Gets the Properties.
|
|
Result | btdevGattCharacteristicGetService (BtdevGattCharacteristic *c, BtdevGattService *service) |
| Wrapper for btmuGetBelongingGattService.
|
|
Result | btdevGattCharacteristicGetDescriptors (BtdevGattCharacteristic *c, BtdevGattDescriptor *descriptors, u8 count, u8 *total_out) |
| Wrapper for btmuGetGattDescriptors.
|
|
Result | btdevGattCharacteristicGetDescriptor (BtdevGattCharacteristic *c, const BtdrvGattAttributeUuid *uuid, BtdevGattDescriptor *descriptor, bool *flag) |
| Same as btdevGattCharacteristicGetDescriptors except this only returns a BtdevGattDescriptor which contains a matching BtdrvGattAttributeUuid.
|
|
void | btdevGattCharacteristicSetValue (BtdevGattCharacteristic *c, const void *buffer, size_t size) |
| Sets the Value in the object.
|
|
u64 | btdevGattCharacteristicGetValue (BtdevGattCharacteristic *c, void *buffer, size_t size) |
| Gets the Value in the object, returns the copied value size.
|
|
|
void | btdevGattDescriptorCreate (BtdevGattDescriptor *d, const BtdrvGattAttributeUuid *uuid, u16 handle, u32 connection_handle) |
| Creates a BtdevGattDescriptor object.
|
|
Result | btdevGattDescriptorGetService (BtdevGattDescriptor *d, BtdevGattService *service) |
| Wrapper for btmuGetBelongingGattService.
|
|
Result | btdevGattDescriptorGetCharacteristic (BtdevGattDescriptor *d, BtdevGattCharacteristic *characteristic) |
| Wrapper for btmuGetGattCharacteristics.
|
|
void | btdevGattDescriptorSetValue (BtdevGattDescriptor *d, const void *buffer, size_t size) |
| Sets the Value in the object.
|
|
u64 | btdevGattDescriptorGetValue (BtdevGattDescriptor *d, void *buffer, size_t size) |
| Gets the Value in the object, returns the copied value size.
|
|
Wrapper around the bt/btmu services for using bluetooth BLE.
- Note
- Only available on [5.0.0+].
-
See also: https://switchbrew.org/wiki/BTM_services
- Author
- yellows8
- Copyright
- libnx Authors