libnx
v4.7.0
|
Bluetooth driver (btdrv) service IPC wrapper. More...
#include "../types.h"
#include "../kernel/event.h"
#include "../services/btdrv_types.h"
#include "../services/set.h"
#include "../sf/service.h"
Go to the source code of this file.
Data Structures | |
struct | BtdrvEventInfo |
Data for btdrvGetEventInfo. The data stored here depends on the BtdrvEventType. More... | |
struct | BtdrvHidEventInfo |
Data for btdrvGetHidEventInfo. The data stored here depends on the BtdrvHidEventType. More... | |
struct | BtdrvHidReportEventInfo |
Data for btdrvGetHidReportEventInfo. The data stored here depends on the BtdrvHidEventType. More... | |
struct | BtdrvHidReportEventInfoBufferData |
The raw sharedmem data for HidReportEventInfo. More... | |
union | BtdrvAudioEventInfo |
Data for btdrvGetAudioEventInfo. The data stored here depends on the BtdrvAudioEventType. More... | |
struct | BtdrvCircularBuffer |
CircularBuffer. More... | |
struct | BtdrvBleEventInfo |
Data for btdrvGetBleManagedEventInfo and btdrvGetLeHidEventInfo. The data stored here depends on the BtdrvBleEventType. More... | |
Functions | |
Result | btdrvInitialize (void) |
Initialize btdrv. | |
void | btdrvExit (void) |
Exit btdrv. | |
Service * | btdrvGetServiceSession (void) |
Gets the Service object for the actual btdrv service session. | |
Result | btdrvInitializeBluetooth (Event *out_event) |
InitializeBluetooth. More... | |
Result | btdrvEnableBluetooth (void) |
EnableBluetooth. More... | |
Result | btdrvDisableBluetooth (void) |
DisableBluetooth. More... | |
Result | btdrvFinalizeBluetooth (void) |
FinalizeBluetooth. More... | |
Result | btdrvLegacyGetAdapterProperties (BtdrvAdapterPropertyOld *properties) |
GetAdapterProperties [1.0.0-11.0.1]. More... | |
Result | btdrvGetAdapterProperties (BtdrvAdapterPropertySet *properties) |
GetAdapterProperties [12.0.0+]. More... | |
Result | btdrvLegacyGetAdapterProperty (BtdrvBluetoothPropertyType type, void *buffer, size_t size) |
GetAdapterProperty [1.0.0-11.0.1]. More... | |
Result | btdrvGetAdapterProperty (BtdrvAdapterPropertyType type, BtdrvAdapterProperty *property) |
GetAdapterProperty [12.0.0+]. More... | |
Result | btdrvLegacySetAdapterProperty (BtdrvBluetoothPropertyType type, const void *buffer, size_t size) |
SetAdapterProperty [1.0.0-11.0.1]. More... | |
Result | btdrvSetAdapterProperty (BtdrvAdapterPropertyType type, const BtdrvAdapterProperty *property) |
SetAdapterProperty [12.0.0+]. More... | |
Result | btdrvLegacyStartInquiry (void) |
StartInquiry [1.0.0-11.0.1]. More... | |
Result | btdrvStartInquiry (u32 services, s64 duration) |
StartInquiry [12.0.0+]. More... | |
Result | btdrvStopInquiry (void) |
This stops Inquiry which was started by btdrvStartInquiry, if it's still active. More... | |
Result | btdrvCreateBond (BtdrvAddress addr, u32 type) |
CreateBond. More... | |
Result | btdrvRemoveBond (BtdrvAddress addr) |
RemoveBond. More... | |
Result | btdrvCancelBond (BtdrvAddress addr) |
CancelBond. More... | |
Result | btdrvLegacyRespondToPinRequest (BtdrvAddress addr, bool flag, const BtdrvBluetoothPinCode *pin_code, u8 length) |
RespondToPinRequest [1.0.0-11.0.1]. More... | |
Result | btdrvRespondToPinRequest (BtdrvAddress addr, const BtdrvPinCode *pin_code) |
RespondToPinRequest [12.0.0+]. More... | |
Result | btdrvRespondToSspRequest (BtdrvAddress addr, u32 variant, bool accept, u32 passkey) |
RespondToSspRequest. More... | |
Result | btdrvGetEventInfo (void *buffer, size_t size, BtdrvEventType *type) |
GetEventInfo. More... | |
Result | btdrvInitializeHid (Event *out_event) |
InitializeHid. More... | |
Result | btdrvOpenHidConnection (BtdrvAddress addr) |
OpenHidConnection. More... | |
Result | btdrvCloseHidConnection (BtdrvAddress addr) |
CloseHidConnection. More... | |
Result | btdrvWriteHidData (BtdrvAddress addr, const BtdrvHidReport *buffer) |
This sends a HID DATA transaction packet with report-type Output. More... | |
Result | btdrvWriteHidData2 (BtdrvAddress addr, const void *buffer, size_t size) |
WriteHidData2. More... | |
Result | btdrvSetHidReport (BtdrvAddress addr, BtdrvBluetoothHhReportType type, const BtdrvHidReport *buffer) |
This sends a HID SET_REPORT transaction packet. More... | |
Result | btdrvGetHidReport (BtdrvAddress addr, u8 report_id, BtdrvBluetoothHhReportType type) |
This sends a HID GET_REPORT transaction packet. More... | |
Result | btdrvTriggerConnection (BtdrvAddress addr, u16 unk) |
TriggerConnection. More... | |
Result | btdrvAddPairedDeviceInfo (const SetSysBluetoothDevicesSettings *settings) |
AddPairedDeviceInfo. More... | |
Result | btdrvGetPairedDeviceInfo (BtdrvAddress addr, SetSysBluetoothDevicesSettings *settings) |
GetPairedDeviceInfo. More... | |
Result | btdrvFinalizeHid (void) |
FinalizeHid. More... | |
Result | btdrvGetHidEventInfo (void *buffer, size_t size, BtdrvHidEventType *type) |
GetHidEventInfo. More... | |
Result | btdrvSetTsi (BtdrvAddress addr, u8 tsi) |
SetTsi. More... | |
Result | btdrvEnableBurstMode (BtdrvAddress addr, bool flag) |
EnableBurstMode. More... | |
Result | btdrvSetZeroRetransmission (BtdrvAddress addr, u8 *report_ids, u8 count) |
SetZeroRetransmission. More... | |
Result | btdrvEnableMcMode (bool flag) |
EnableMcMode. More... | |
Result | btdrvEnableLlrScan (void) |
EnableLlrScan. More... | |
Result | btdrvDisableLlrScan (void) |
DisableLlrScan. More... | |
Result | btdrvEnableRadio (bool flag) |
EnableRadio. More... | |
Result | btdrvSetVisibility (bool inquiry_scan, bool page_scan) |
SetVisibility. More... | |
Result | btdrvEnableTbfcScan (bool flag) |
EnableTbfcScan. More... | |
Result | btdrvRegisterHidReportEvent (Event *out_event) |
RegisterHidReportEvent. More... | |
Result | btdrvGetHidReportEventInfo (void *buffer, size_t size, BtdrvHidEventType *type) |
GetHidReportEventInfo. More... | |
void * | btdrvGetHidReportEventInfoSharedmemAddr (void) |
Gets the SharedMemory addr for HidReportEventInfo (BtdrvCircularBuffer), only valid when btdrvRegisterHidReportEvent was previously used, on [7.0.0+]. | |
Result | btdrvGetLatestPlr (BtdrvPlrList *out) |
GetLatestPlr. More... | |
Result | btdrvGetPendingConnections (void) |
GetPendingConnections. More... | |
Result | btdrvGetChannelMap (BtdrvChannelMapList *out) |
GetChannelMap. More... | |
Result | btdrvEnableTxPowerBoostSetting (bool flag) |
EnableTxPowerBoostSetting. More... | |
Result | btdrvIsTxPowerBoostSettingEnabled (bool *out) |
IsTxPowerBoostSettingEnabled. More... | |
Result | btdrvEnableAfhSetting (bool flag) |
EnableAfhSetting. More... | |
Result | btdrvIsAfhSettingEnabled (bool *out) |
IsAfhSettingEnabled. More... | |
Result | btdrvInitializeBle (Event *out_event) |
InitializeBle. More... | |
Result | btdrvEnableBle (void) |
EnableBle. More... | |
Result | btdrvDisableBle (void) |
DisableBle. More... | |
Result | btdrvFinalizeBle (void) |
FinalizeBle. More... | |
Result | btdrvSetBleVisibility (bool discoverable, bool connectable) |
SetBleVisibility. More... | |
Result | btdrvSetLeConnectionParameter (const BtdrvLeConnectionParams *param) |
SetLeConnectionParameter. More... | |
Result | btdrvSetBleConnectionParameter (BtdrvAddress addr, const BtdrvBleConnectionParameter *param, bool preference) |
SetBleConnectionParameter. More... | |
Result | btdrvSetLeDefaultConnectionParameter (const BtdrvLeConnectionParams *param) |
SetLeDefaultConnectionParameter. More... | |
Result | btdrvSetBleDefaultConnectionParameter (const BtdrvBleConnectionParameter *param) |
SetBleDefaultConnectionParameter. More... | |
Result | btdrvSetBleAdvertiseData (const BtdrvBleAdvertisePacketData *data) |
SetBleAdvertiseData. More... | |
Result | btdrvSetBleAdvertiseParameter (BtdrvAddress addr, u16 min_interval, u16 max_interval) |
SetBleAdvertiseParameter. More... | |
Result | btdrvStartBleScan (void) |
StartBleScan. More... | |
Result | btdrvStopBleScan (void) |
StopBleScan. More... | |
Result | btdrvAddBleScanFilterCondition (const BtdrvBleAdvertiseFilter *filter) |
AddBleScanFilterCondition. More... | |
Result | btdrvDeleteBleScanFilterCondition (const BtdrvBleAdvertiseFilter *filter) |
DeleteBleScanFilterCondition. More... | |
Result | btdrvDeleteBleScanFilter (u8 index) |
DeleteBleScanFilter. More... | |
Result | btdrvClearBleScanFilters (void) |
ClearBleScanFilters. More... | |
Result | btdrvEnableBleScanFilter (bool flag) |
EnableBleScanFilter. More... | |
Result | btdrvRegisterGattClient (const BtdrvGattAttributeUuid *uuid) |
RegisterGattClient. More... | |
Result | btdrvUnregisterGattClient (u8 client_if) |
UnregisterGattClient. More... | |
Result | btdrvUnregisterAllGattClients (void) |
UnregisterAllGattClients. More... | |
Result | btdrvConnectGattServer (u8 client_if, BtdrvAddress addr, bool is_direct, u64 AppletResourceUserId) |
ConnectGattServer. More... | |
Result | btdrvCancelConnectGattServer (u8 client_if, BtdrvAddress addr, bool is_direct) |
CancelConnectGattServer. More... | |
Result | btdrvDisconnectGattServer (u32 conn_id) |
DisconnectGattServer. More... | |
Result | btdrvGetGattAttribute (BtdrvAddress addr, u32 conn_id) |
GetGattAttribute. More... | |
Result | btdrvGetGattService (u32 conn_id, const BtdrvGattAttributeUuid *uuid) |
GetGattService. More... | |
Result | btdrvConfigureAttMtu (u32 conn_id, u16 mtu) |
ConfigureAttMtu. More... | |
Result | btdrvRegisterGattServer (const BtdrvGattAttributeUuid *uuid) |
RegisterGattServer. More... | |
Result | btdrvUnregisterGattServer (u8 server_if) |
UnregisterGattServer. More... | |
Result | btdrvConnectGattClient (u8 server_if, BtdrvAddress addr, bool is_direct) |
ConnectGattClient. More... | |
Result | btdrvDisconnectGattClient (u8 conn_id, BtdrvAddress addr) |
DisconnectGattClient. More... | |
Result | btdrvAddGattService (u8 server_if, const BtdrvGattAttributeUuid *uuid, u8 num_handle, bool is_primary) |
AddGattService. More... | |
Result | btdrvEnableGattService (u8 service_id, const BtdrvGattAttributeUuid *uuid) |
EnableGattService. More... | |
Result | btdrvAddGattCharacteristic (u8 service_id, const BtdrvGattAttributeUuid *serv_uuid, const BtdrvGattAttributeUuid *char_uuid, u8 permissions, u16 property) |
AddGattCharacteristic. More... | |
Result | btdrvAddGattDescriptor (u8 service_id, const BtdrvGattAttributeUuid *serv_uuid, const BtdrvGattAttributeUuid *desc_uuid, u16 permissions) |
AddGattDescriptor. More... | |
Result | btdrvGetBleManagedEventInfo (void *buffer, size_t size, BtdrvBleEventType *type) |
GetBleManagedEventInfo. More... | |
Result | btdrvGetGattFirstCharacteristic (u32 conn_id, const BtdrvGattId *serv_id, bool is_primary, const BtdrvGattAttributeUuid *filter_uuid, u8 *out_property, BtdrvGattId *out_char_id) |
GetGattFirstCharacteristic. More... | |
Result | btdrvGetGattNextCharacteristic (u32 conn_id, const BtdrvGattId *serv_id, bool is_primary, const BtdrvGattId *char_id, const BtdrvGattAttributeUuid *filter_uuid, u8 *out_property, BtdrvGattId *out_char_id) |
GetGattNextCharacteristic. More... | |
Result | btdrvGetGattFirstDescriptor (u32 conn_id, const BtdrvGattId *serv_id, bool is_primary, const BtdrvGattId *char_id, const BtdrvGattAttributeUuid *filter_uuid, BtdrvGattId *out_desc_id) |
GetGattFirstDescriptor. More... | |
Result | btdrvGetGattNextDescriptor (u32 conn_id, const BtdrvGattId *serv_id, bool is_primary, const BtdrvGattId *char_id, const BtdrvGattId *desc_id, const BtdrvGattAttributeUuid *filter_uuid, BtdrvGattId *out_desc_id) |
GetGattNextDescriptor. More... | |
Result | btdrvRegisterGattManagedDataPath (const BtdrvGattAttributeUuid *uuid) |
RegisterGattManagedDataPath. More... | |
Result | btdrvUnregisterGattManagedDataPath (const BtdrvGattAttributeUuid *uuid) |
UnregisterGattManagedDataPath. More... | |
Result | btdrvRegisterGattHidDataPath (const BtdrvGattAttributeUuid *uuid) |
RegisterGattHidDataPath. More... | |
Result | btdrvUnregisterGattHidDataPath (const BtdrvGattAttributeUuid *uuid) |
UnregisterGattHidDataPath. More... | |
Result | btdrvRegisterGattDataPath (const BtdrvGattAttributeUuid *uuid) |
RegisterGattDataPath. More... | |
Result | btdrvUnregisterGattDataPath (const BtdrvGattAttributeUuid *uuid) |
UnregisterGattDataPath. More... | |
Result | btdrvReadGattCharacteristic (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, u8 auth_req) |
ReadGattCharacteristic. More... | |
Result | btdrvReadGattDescriptor (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id, const BtdrvGattId *desc_id, u8 auth_req) |
ReadGattDescriptor. More... | |
Result | btdrvWriteGattCharacteristic (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) |
WriteGattCharacteristic. More... | |
Result | btdrvWriteGattDescriptor (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) |
WriteGattDescriptor. More... | |
Result | btdrvRegisterGattNotification (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id) |
RegisterGattNotification. More... | |
Result | btdrvUnregisterGattNotification (u32 connection_handle, bool is_primary, const BtdrvGattId *serv_id, const BtdrvGattId *char_id) |
UnregisterGattNotification. More... | |
Result | btdrvGetLeHidEventInfo (void *buffer, size_t size, BtdrvBleEventType *type) |
GetLeHidEventInfo. More... | |
Result | btdrvRegisterBleHidEvent (Event *out_event) |
RegisterBleHidEvent. More... | |
Result | btdrvSetBleScanParameter (u16 scan_interval, u16 scan_window) |
SetBleScanParameter. More... | |
Result | btdrvMoveToSecondaryPiconet (BtdrvAddress addr) |
MoveToSecondaryPiconet. More... | |
Result | btdrvIsBluetoothEnabled (bool *out) |
IsBluetoothEnabled. More... | |
Result | btdrvAcquireAudioEvent (Event *out_event, bool autoclear) |
AcquireAudioEvent. More... | |
Result | btdrvGetAudioEventInfo (void *buffer, size_t size, BtdrvAudioEventType *type) |
GetAudioEventInfo. More... | |
Result | btdrvOpenAudioConnection (BtdrvAddress addr) |
OpenAudioConnection. More... | |
Result | btdrvCloseAudioConnection (BtdrvAddress addr) |
CloseAudioConnection. More... | |
Result | btdrvOpenAudioOut (BtdrvAddress addr, u32 *audio_handle) |
OpenAudioOut. More... | |
Result | btdrvCloseAudioOut (u32 audio_handle) |
CloseAudioOut. More... | |
Result | btdrvStartAudioOut (u32 audio_handle, const BtdrvPcmParameter *pcm_param, s64 in_latency, s64 *out_latency, u64 *out1) |
StartAudioOut. More... | |
Result | btdrvStopAudioOut (u32 audio_handle) |
StopAudioOut. More... | |
Result | btdrvGetAudioOutState (u32 audio_handle, BtdrvAudioOutState *out) |
GetAudioOutState. More... | |
Result | btdrvGetAudioOutFeedingCodec (u32 audio_handle, BtdrvAudioCodec *out) |
GetAudioOutFeedingCodec. More... | |
Result | btdrvGetAudioOutFeedingParameter (u32 audio_handle, BtdrvPcmParameter *out) |
GetAudioOutFeedingParameter. More... | |
Result | btdrvAcquireAudioOutStateChangedEvent (u32 audio_handle, Event *out_event, bool autoclear) |
AcquireAudioOutStateChangedEvent. More... | |
Result | btdrvAcquireAudioOutBufferAvailableEvent (u32 audio_handle, Event *out_event, bool autoclear) |
AcquireAudioOutBufferAvailableEvent. More... | |
Result | btdrvSendAudioData (u32 audio_handle, const void *buffer, size_t size, u64 *transferred_size) |
SendAudioData. More... | |
Result | btdrvAcquireAudioControlInputStateChangedEvent (Event *out_event, bool autoclear) |
AcquireAudioControlInputStateChangedEvent. More... | |
Result | btdrvGetAudioControlInputState (BtdrvAudioControlButtonState *states, s32 count, s32 *total_out) |
GetAudioControlInputState. More... | |
Result | btdrvAcquireAudioConnectionStateChangedEvent (Event *out_event, bool autoclear) |
AcquireAudioConnectionStateChangedEvent. More... | |
Result | btdrvGetConnectedAudioDevice (BtdrvAddress *addrs, s32 count, s32 *total_out) |
GetConnectedAudioDevice. More... | |
Result | btdrvCloseAudioControlInput (BtdrvAddress addr) |
CloseAudioControlInput. More... | |
Result | btdrvRegisterAudioControlNotification (BtdrvAddress addr, u32 event_type) |
RegisterAudioControlNotification. More... | |
Result | btdrvSendAudioControlPassthroughCommand (BtdrvAddress addr, u32 op_id, u32 state_type) |
SendAudioControlPassthroughCommand. More... | |
Result | btdrvSendAudioControlSetAbsoluteVolumeCommand (BtdrvAddress addr, s32 val) |
SendAudioControlSetAbsoluteVolumeCommand. More... | |
Result | btdrvIsManufacturingMode (bool *out) |
IsManufacturingMode. More... | |
Result | btdrvEmulateBluetoothCrash (BtdrvFatalReason reason) |
EmulateBluetoothCrash. More... | |
Result | btdrvGetBleChannelMap (BtdrvChannelMapList *out) |
GetBleChannelMap. More... | |
CircularBuffer | |
void * | btdrvCircularBufferRead (BtdrvCircularBuffer *c) |
Read. More... | |
bool | btdrvCircularBufferFree (BtdrvCircularBuffer *c) |
Free. More... | |
Bluetooth driver (btdrv) service IPC wrapper.
Result btdrvAcquireAudioOutBufferAvailableEvent | ( | u32 | audio_handle, |
Event * | out_event, | ||
bool | autoclear | ||
) |
AcquireAudioOutBufferAvailableEvent.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
[out] | out_event | Output Event. |
[in] | autoclear | Event autoclear. |
Result btdrvAcquireAudioOutStateChangedEvent | ( | u32 | audio_handle, |
Event * | out_event, | ||
bool | autoclear | ||
) |
AcquireAudioOutStateChangedEvent.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
[out] | out_event | Output Event. |
[in] | autoclear | Event autoclear. |
Result btdrvAddBleScanFilterCondition | ( | const BtdrvBleAdvertiseFilter * | filter | ) |
AddBleScanFilterCondition.
[in] | filter | BtdrvBleAdvertiseFilter |
Result btdrvAddGattCharacteristic | ( | u8 | service_id, |
const BtdrvGattAttributeUuid * | serv_uuid, | ||
const BtdrvGattAttributeUuid * | char_uuid, | ||
u8 | permissions, | ||
u16 | property | ||
) |
AddGattCharacteristic.
[in] | service_id | Service ID |
[in] | serv_uuid | Service UUID BtdrvGattAttributeUuid |
[in] | char_uuid | Characteristic UUID BtdrvGattAttributeUuid |
[in] | permissions | BtdrvGattAttributePermission |
[in] | property | BtdrvGattCharacteristicProperty |
Result btdrvAddGattDescriptor | ( | u8 | service_id, |
const BtdrvGattAttributeUuid * | serv_uuid, | ||
const BtdrvGattAttributeUuid * | desc_uuid, | ||
u16 | permissions | ||
) |
AddGattDescriptor.
[in] | service_id | Service ID |
[in] | serv_uuid | Service UUID BtdrvGattAttributeUuid |
[in] | desc_uuid | Descriptor UUID BtdrvGattAttributeUuid |
[in] | permissions | BtdrvGattAttributePermission |
Result btdrvAddGattService | ( | u8 | server_if, |
const BtdrvGattAttributeUuid * | uuid, | ||
u8 | num_handle, | ||
bool | is_primary | ||
) |
AddGattService.
[in] | server_if | Server interface ID |
[in] | uuid | BtdrvGattAttributeUuid |
[in] | num_handle | Number of handles |
[in] | is_primary | Is a primary service or not |
Result btdrvAddPairedDeviceInfo | ( | const SetSysBluetoothDevicesSettings * | settings | ) |
AddPairedDeviceInfo.
[in] | settings | SetSysBluetoothDevicesSettings |
Result btdrvCancelBond | ( | BtdrvAddress | addr | ) |
Result btdrvCancelConnectGattServer | ( | u8 | client_if, |
BtdrvAddress | addr, | ||
bool | is_direct | ||
) |
CancelConnectGattServer.
[in] | client_if | Client interface ID |
[in] | addr | BtdrvAddress |
[in] | is_direct | Whether a direct connection or a background auto connection |
bool btdrvCircularBufferFree | ( | BtdrvCircularBuffer * | c | ) |
void* btdrvCircularBufferRead | ( | BtdrvCircularBuffer * | c | ) |
Result btdrvClearBleScanFilters | ( | void | ) |
ClearBleScanFilters.
Result btdrvCloseAudioConnection | ( | BtdrvAddress | addr | ) |
Result btdrvCloseAudioControlInput | ( | BtdrvAddress | addr | ) |
CloseAudioOut.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
Result btdrvCloseHidConnection | ( | BtdrvAddress | addr | ) |
ConfigureAttMtu.
[in] | conn_id | Connection ID |
[in] | mtu | MTU |
Result btdrvConnectGattClient | ( | u8 | server_if, |
BtdrvAddress | addr, | ||
bool | is_direct | ||
) |
ConnectGattClient.
[in] | server_if | Server interface ID |
[in] | addr | BtdrvAddress |
[in] | is_direct | Whether a direct connection or a background auto connection |
Result btdrvConnectGattServer | ( | u8 | client_if, |
BtdrvAddress | addr, | ||
bool | is_direct, | ||
u64 | AppletResourceUserId | ||
) |
ConnectGattServer.
[in] | client_if | Client interface ID |
[in] | addr | BtdrvAddress |
[in] | is_direct | Whether a direct connection or a background auto connection |
[in] | AppletResourceUserId | AppletResourceUserId |
Result btdrvCreateBond | ( | BtdrvAddress | addr, |
u32 | type | ||
) |
CreateBond.
[in] | addr | BtdrvAddress |
[in] | type | TransportType |
DeleteBleScanFilter.
[in] | index | Filter index |
Result btdrvDeleteBleScanFilterCondition | ( | const BtdrvBleAdvertiseFilter * | filter | ) |
DeleteBleScanFilterCondition.
[in] | filter | BtdrvBleAdvertiseFilter |
Result btdrvDisableBle | ( | void | ) |
DisableBle.
Result btdrvDisableBluetooth | ( | void | ) |
DisableBluetooth.
Result btdrvDisableLlrScan | ( | void | ) |
DisableLlrScan.
Result btdrvDisconnectGattClient | ( | u8 | conn_id, |
BtdrvAddress | addr | ||
) |
DisconnectGattClient.
[in] | conn_id | Connection ID |
[in] | addr | BtdrvAddress, only used on pre-9.0.0. |
DisconnectGattServer.
[in] | conn_id | Connection ID |
Result btdrvEmulateBluetoothCrash | ( | BtdrvFatalReason | reason | ) |
Result btdrvEnableAfhSetting | ( | bool | flag | ) |
EnableAfhSetting.
[in] | flag | Input flag. |
Result btdrvEnableBle | ( | void | ) |
EnableBle.
Result btdrvEnableBleScanFilter | ( | bool | flag | ) |
EnableBleScanFilter.
[in] | flag | Flag |
Result btdrvEnableBluetooth | ( | void | ) |
EnableBluetooth.
Result btdrvEnableBurstMode | ( | BtdrvAddress | addr, |
bool | flag | ||
) |
EnableBurstMode.
[in] | addr | BtdrvAddress |
[in] | flag | Flag: true = Set, false = Exit. |
Result btdrvEnableGattService | ( | u8 | service_id, |
const BtdrvGattAttributeUuid * | uuid | ||
) |
EnableGattService.
[in] | service_id | Service ID |
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvEnableLlrScan | ( | void | ) |
EnableLlrScan.
Result btdrvEnableMcMode | ( | bool | flag | ) |
EnableMcMode.
[in] | flag | Flag |
Result btdrvEnableRadio | ( | bool | flag | ) |
EnableRadio.
[in] | flag | Flag |
Result btdrvEnableTbfcScan | ( | bool | flag | ) |
EnableTbfcScan.
[in] | flag | Flag |
Result btdrvEnableTxPowerBoostSetting | ( | bool | flag | ) |
EnableTxPowerBoostSetting.
[in] | flag | Input flag. |
Result btdrvFinalizeBle | ( | void | ) |
FinalizeBle.
Result btdrvFinalizeBluetooth | ( | void | ) |
FinalizeBluetooth.
Result btdrvFinalizeHid | ( | void | ) |
FinalizeHid.
Result btdrvGetAdapterProperties | ( | BtdrvAdapterPropertySet * | properties | ) |
GetAdapterProperties [12.0.0+].
[out] | properties | BtdrvAdapterPropertySet |
Result btdrvGetAdapterProperty | ( | BtdrvAdapterPropertyType | type, |
BtdrvAdapterProperty * | property | ||
) |
GetAdapterProperty [12.0.0+].
[in] | type | BtdrvAdapterPropertyType |
[in] | property | BtdrvAdapterProperty |
Result btdrvGetAudioControlInputState | ( | BtdrvAudioControlButtonState * | states, |
s32 | count, | ||
s32 * | total_out | ||
) |
GetAudioControlInputState.
[out] | states | Output array of BtdrvAudioControlButtonState. |
[in] | count | Size of the states array in entries, the maximum is 0xF. |
[out] | total_out | Total output entries. |
Result btdrvGetAudioEventInfo | ( | void * | buffer, |
size_t | size, | ||
BtdrvAudioEventType * | type | ||
) |
GetAudioEventInfo.
[out] | buffer | Output buffer, see BtdrvAudioEventInfo. |
[in] | size | Output buffer size. |
[out] | type | BtdrvAudioEventType. |
Result btdrvGetAudioOutFeedingCodec | ( | u32 | audio_handle, |
BtdrvAudioCodec * | out | ||
) |
GetAudioOutFeedingCodec.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
[out] | out | BtdrvAudioCodec |
Result btdrvGetAudioOutFeedingParameter | ( | u32 | audio_handle, |
BtdrvPcmParameter * | out | ||
) |
GetAudioOutFeedingParameter.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
[out] | out | BtdrvPcmParameter |
Result btdrvGetAudioOutState | ( | u32 | audio_handle, |
BtdrvAudioOutState * | out | ||
) |
GetAudioOutState.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
[out] | out | BtdrvAudioOutState |
Result btdrvGetBleChannelMap | ( | BtdrvChannelMapList * | out | ) |
Result btdrvGetBleManagedEventInfo | ( | void * | buffer, |
size_t | size, | ||
BtdrvBleEventType * | type | ||
) |
GetBleManagedEventInfo.
[out] | buffer | Output buffer. 0x400-bytes from state is written here. See BtdrvBleEventInfo. |
[in] | size | Output buffer size. |
[out] | type | Output BtdrvBleEventType. |
Result btdrvGetChannelMap | ( | BtdrvChannelMapList * | out | ) |
Result btdrvGetConnectedAudioDevice | ( | BtdrvAddress * | addrs, |
s32 | count, | ||
s32 * | total_out | ||
) |
GetConnectedAudioDevice.
[out] | addrs | Output array of BtdrvAddress. |
[in] | count | Size of the addrs array in entries, the maximum is 0x8. |
[out] | total_out | Total output entries. |
Result btdrvGetEventInfo | ( | void * | buffer, |
size_t | size, | ||
BtdrvEventType * | type | ||
) |
GetEventInfo.
[out] | buffer | Output buffer, see BtdrvEventInfo. |
[in] | size | Output buffer size. |
[out] | type | Output BtdrvEventType. |
Result btdrvGetGattAttribute | ( | BtdrvAddress | addr, |
u32 | conn_id | ||
) |
GetGattAttribute.
[in] | addr | BtdrvAddress, only used on pre-9.0.0. |
[in] | conn_id | Connection ID |
Result btdrvGetGattFirstCharacteristic | ( | u32 | conn_id, |
const BtdrvGattId * | serv_id, | ||
bool | is_primary, | ||
const BtdrvGattAttributeUuid * | filter_uuid, | ||
u8 * | out_property, | ||
BtdrvGattId * | out_char_id | ||
) |
GetGattFirstCharacteristic.
[in] | conn_id | Connection ID |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | is_primary | Is a primary service or not |
[in] | filter_uuid | Characteristic filter UUID BtdrvGattAttributeUuid |
[out] | out_property | Output property BtdrvGattCharacteristicProperty |
[out] | out_char_id | Output characteristic GATT ID BtdrvGattId |
Result btdrvGetGattFirstDescriptor | ( | u32 | conn_id, |
const BtdrvGattId * | serv_id, | ||
bool | is_primary, | ||
const BtdrvGattId * | char_id, | ||
const BtdrvGattAttributeUuid * | filter_uuid, | ||
BtdrvGattId * | out_desc_id | ||
) |
GetGattFirstDescriptor.
[in] | conn_id | Connection ID |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | is_primary | Is a primary service or not |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
[in] | filter_uuid | Descriptor filter UUID BtdrvGattAttributeUuid |
[out] | out_desc_id | Output descriptor GATT ID BtdrvGattId |
Result btdrvGetGattNextCharacteristic | ( | u32 | conn_id, |
const BtdrvGattId * | serv_id, | ||
bool | is_primary, | ||
const BtdrvGattId * | char_id, | ||
const BtdrvGattAttributeUuid * | filter_uuid, | ||
u8 * | out_property, | ||
BtdrvGattId * | out_char_id | ||
) |
GetGattNextCharacteristic.
[in] | conn_id | Connection ID |
[in] | serv_id | Service ID BtdrvGattId |
[in] | is_primary | Is a primary service or not |
[in] | char_id | Previous characteristic GATT ID BtdrvGattId |
[in] | filter_uuid | Characteristic filter UUID BtdrvGattAttributeUuid |
[out] | out_property | Output property BtdrvGattCharacteristicProperty |
[out] | out_char_id | Output characteristic GATT ID BtdrvGattId |
Result btdrvGetGattNextDescriptor | ( | u32 | conn_id, |
const BtdrvGattId * | serv_id, | ||
bool | is_primary, | ||
const BtdrvGattId * | char_id, | ||
const BtdrvGattId * | desc_id, | ||
const BtdrvGattAttributeUuid * | filter_uuid, | ||
BtdrvGattId * | out_desc_id | ||
) |
GetGattNextDescriptor.
[in] | conn_id | Connection ID |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | is_primary | Is a primary service or not |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
[in] | desc_id | Previous descriptor GATT ID BtdrvGattId |
[in] | filter_uuid | Descriptor filter UUID BtdrvGattAttributeUuid |
[out] | out_desc_id | Output descriptor GATT ID BtdrvGattId |
Result btdrvGetGattService | ( | u32 | conn_id, |
const BtdrvGattAttributeUuid * | uuid | ||
) |
GetGattService.
[in] | conn_id | Connection ID |
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvGetHidEventInfo | ( | void * | buffer, |
size_t | size, | ||
BtdrvHidEventType * | type | ||
) |
GetHidEventInfo.
[out] | buffer | Output buffer, see BtdrvHidEventInfo. |
[in] | size | Output buffer size. |
[out] | type | BtdrvHidEventType, always BtdrvHidEventType_Connection or ::BtdrvHidEventType_Ext. |
Result btdrvGetHidReport | ( | BtdrvAddress | addr, |
u8 | report_id, | ||
BtdrvBluetoothHhReportType | type | ||
) |
This sends a HID GET_REPORT transaction packet.
[in] | addr | BtdrvAddress |
[in] | report_id | This is sent in the packet for the Report Id, when non-zero. |
[in] | type | BtdrvBluetoothHhReportType |
Result btdrvGetHidReportEventInfo | ( | void * | buffer, |
size_t | size, | ||
BtdrvHidEventType * | type | ||
) |
GetHidReportEventInfo.
[out] | buffer | Output buffer, see BtdrvHidReportEventInfo. |
[in] | size | Output buffer size. |
[out] | type | BtdrvHidEventType |
Result btdrvGetLatestPlr | ( | BtdrvPlrList * | out | ) |
GetLatestPlr.
[out] | out | Output BtdrvPlrList, on pre-9.0.0 this is BtdrvPlrStatistics. |
Result btdrvGetLeHidEventInfo | ( | void * | buffer, |
size_t | size, | ||
BtdrvBleEventType * | type | ||
) |
GetLeHidEventInfo.
[out] | buffer | Output buffer. 0x400-bytes from state is written here. See BtdrvBleEventInfo. |
[in] | size | Output buffer size. |
[out] | type | BtdrvBleEventType. |
Result btdrvGetPairedDeviceInfo | ( | BtdrvAddress | addr, |
SetSysBluetoothDevicesSettings * | settings | ||
) |
GetPairedDeviceInfo.
[in] | addr | BtdrvAddress |
[out] | settings | SetSysBluetoothDevicesSettings |
Result btdrvGetPendingConnections | ( | void | ) |
GetPendingConnections.
Result btdrvIsAfhSettingEnabled | ( | bool * | out | ) |
IsAfhSettingEnabled.
[out] | out | Output flag. |
Result btdrvIsBluetoothEnabled | ( | bool * | out | ) |
IsBluetoothEnabled.
[out] | out | Output flag. |
Result btdrvIsManufacturingMode | ( | bool * | out | ) |
IsManufacturingMode.
[out] | out | Output flag. |
Result btdrvIsTxPowerBoostSettingEnabled | ( | bool * | out | ) |
IsTxPowerBoostSettingEnabled.
[out] | out | Output flag. |
Result btdrvLegacyGetAdapterProperties | ( | BtdrvAdapterPropertyOld * | properties | ) |
GetAdapterProperties [1.0.0-11.0.1].
[out] | properties | BtdrvAdapterPropertyOld |
Result btdrvLegacyGetAdapterProperty | ( | BtdrvBluetoothPropertyType | type, |
void * | buffer, | ||
size_t | size | ||
) |
GetAdapterProperty [1.0.0-11.0.1].
[in] | type | BtdrvBluetoothPropertyType |
[out] | buffer | Output buffer, see BtdrvBluetoothPropertyType for the contents. |
[in] | size | Output buffer size. |
Result btdrvLegacyRespondToPinRequest | ( | BtdrvAddress | addr, |
bool | flag, | ||
const BtdrvBluetoothPinCode * | pin_code, | ||
u8 | length | ||
) |
RespondToPinRequest [1.0.0-11.0.1].
[in] | addr | BtdrvAddress |
[in] | flag | Flag |
[in] | pin_code | BtdrvBluetoothPinCode |
[in] | length | Length of pin_code |
Result btdrvLegacySetAdapterProperty | ( | BtdrvBluetoothPropertyType | type, |
const void * | buffer, | ||
size_t | size | ||
) |
SetAdapterProperty [1.0.0-11.0.1].
[in] | type | BtdrvBluetoothPropertyType |
[in] | buffer | Input buffer, see BtdrvBluetoothPropertyType for the contents. |
[in] | size | Input buffer size. |
Result btdrvLegacyStartInquiry | ( | void | ) |
StartInquiry [1.0.0-11.0.1].
This starts Inquiry, the output data will be available via btdrvGetEventInfo. Inquiry will automatically stop in 10.24 seconds.
Result btdrvMoveToSecondaryPiconet | ( | BtdrvAddress | addr | ) |
MoveToSecondaryPiconet.
[in] | addr | BtdrvAddress |
Result btdrvOpenAudioConnection | ( | BtdrvAddress | addr | ) |
Result btdrvOpenAudioOut | ( | BtdrvAddress | addr, |
u32 * | audio_handle | ||
) |
OpenAudioOut.
[in] | addr | BtdrvAddress |
[out] | audio_handle | Audio handle. |
Result btdrvOpenHidConnection | ( | BtdrvAddress | addr | ) |
Result btdrvReadGattCharacteristic | ( | u32 | connection_handle, |
bool | is_primary, | ||
const BtdrvGattId * | serv_id, | ||
const BtdrvGattId * | char_id, | ||
u8 | auth_req | ||
) |
ReadGattCharacteristic.
[in] | connection_handle | ConnectionHandle |
[in] | is_primary | Is a primary service or not |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
[in] | auth_req | BtdrvGattAuthReqType |
Result btdrvReadGattDescriptor | ( | u32 | connection_handle, |
bool | is_primary, | ||
const BtdrvGattId * | serv_id, | ||
const BtdrvGattId * | char_id, | ||
const BtdrvGattId * | desc_id, | ||
u8 | auth_req | ||
) |
ReadGattDescriptor.
[in] | connection_handle | ConnectionHandle |
[in] | is_primary | Is a primary service or not |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
[in] | desc_id | Descriptor GATT ID BtdrvGattId |
[in] | auth_req | BtdrvGattAuthReqType |
Result btdrvRegisterAudioControlNotification | ( | BtdrvAddress | addr, |
u32 | event_type | ||
) |
RegisterAudioControlNotification.
[in] | addr | BtdrvAddress |
[in] | event_type | AvrcEventType |
Result btdrvRegisterGattClient | ( | const BtdrvGattAttributeUuid * | uuid | ) |
RegisterGattClient.
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvRegisterGattDataPath | ( | const BtdrvGattAttributeUuid * | uuid | ) |
RegisterGattDataPath.
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvRegisterGattHidDataPath | ( | const BtdrvGattAttributeUuid * | uuid | ) |
RegisterGattHidDataPath.
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvRegisterGattManagedDataPath | ( | const BtdrvGattAttributeUuid * | uuid | ) |
RegisterGattManagedDataPath.
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvRegisterGattNotification | ( | u32 | connection_handle, |
bool | is_primary, | ||
const BtdrvGattId * | serv_id, | ||
const BtdrvGattId * | char_id | ||
) |
RegisterGattNotification.
[in] | connection_handle | ConnectionHandle |
[in] | is_primary | Is a primary service or not |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
Result btdrvRegisterGattServer | ( | const BtdrvGattAttributeUuid * | uuid | ) |
RegisterHidReportEvent.
[out] | out_event | Output Event with autoclear=true. This is signaled when data is available with btdrvGetHidReportEventInfo. |
Result btdrvRemoveBond | ( | BtdrvAddress | addr | ) |
Result btdrvRespondToPinRequest | ( | BtdrvAddress | addr, |
const BtdrvPinCode * | pin_code | ||
) |
RespondToPinRequest [12.0.0+].
[in] | addr | BtdrvAddress |
[in] | pin_code | BtdrvPinCode |
Result btdrvRespondToSspRequest | ( | BtdrvAddress | addr, |
u32 | variant, | ||
bool | accept, | ||
u32 | passkey | ||
) |
RespondToSspRequest.
[in] | addr | BtdrvAddress |
[in] | variant | BluetoothSspVariant |
[in] | accept | Whether the request is accepted. |
[in] | passkey | Passkey. |
Result btdrvSendAudioControlPassthroughCommand | ( | BtdrvAddress | addr, |
u32 | op_id, | ||
u32 | state_type | ||
) |
SendAudioControlPassthroughCommand.
[in] | addr | BtdrvAddress |
[in] | op_id | AvrcOperationId |
[in] | state_type | AvrcStateType |
Result btdrvSendAudioControlSetAbsoluteVolumeCommand | ( | BtdrvAddress | addr, |
s32 | val | ||
) |
SendAudioControlSetAbsoluteVolumeCommand.
[in] | addr | BtdrvAddress |
[in] | val | Input value |
Result btdrvSendAudioData | ( | u32 | audio_handle, |
const void * | buffer, | ||
size_t | size, | ||
u64 * | transferred_size | ||
) |
SendAudioData.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size. |
[out] | Output | transferred size. This is always either 0 (error occured) or the buffer size. |
Result btdrvSetAdapterProperty | ( | BtdrvAdapterPropertyType | type, |
const BtdrvAdapterProperty * | property | ||
) |
SetAdapterProperty [12.0.0+].
[in] | type | BtdrvAdapterPropertyType |
[in] | property | BtdrvAdapterProperty |
Result btdrvSetBleAdvertiseData | ( | const BtdrvBleAdvertisePacketData * | data | ) |
Result btdrvSetBleAdvertiseParameter | ( | BtdrvAddress | addr, |
u16 | min_interval, | ||
u16 | max_interval | ||
) |
SetBleAdvertiseParameter.
[in] | addr | BtdrvAddress |
[in] | min_interval | Minimum advertisement interval |
[in] | max_interval | Maximum advertisement interval |
Result btdrvSetBleConnectionParameter | ( | BtdrvAddress | addr, |
const BtdrvBleConnectionParameter * | param, | ||
bool | preference | ||
) |
SetBleConnectionParameter.
[in] | addr | BtdrvAddress |
[in] | param | BtdrvBleConnectionParameter |
[in] | preference | Unused |
Result btdrvSetBleDefaultConnectionParameter | ( | const BtdrvBleConnectionParameter * | param | ) |
SetBleDefaultConnectionParameter.
[in] | param | BtdrvBleConnectionParameter |
SetBleScanParameter.
[in] | scan_interval | Scan interval |
[in] | scan_window | Scan window |
Result btdrvSetBleVisibility | ( | bool | discoverable, |
bool | connectable | ||
) |
SetBleVisibility.
[in] | discoverable | Whether the BLE device is discoverable. |
[in] | connectable | Whether the BLE device is connectable. |
Result btdrvSetHidReport | ( | BtdrvAddress | addr, |
BtdrvBluetoothHhReportType | type, | ||
const BtdrvHidReport * | buffer | ||
) |
This sends a HID SET_REPORT transaction packet.
[in] | addr | BtdrvAddress |
[in] | type | BtdrvBluetoothHhReportType |
[in] | buffer | Input BtdrvHidReport, on pre-9.0.0 this is BtdrvHidData. |
Result btdrvSetLeConnectionParameter | ( | const BtdrvLeConnectionParams * | param | ) |
SetLeConnectionParameter.
[in] | param | BtdrvLeConnectionParams |
Result btdrvSetLeDefaultConnectionParameter | ( | const BtdrvLeConnectionParams * | param | ) |
SetLeDefaultConnectionParameter.
[in] | param | BtdrvLeConnectionParams |
Result btdrvSetTsi | ( | BtdrvAddress | addr, |
u8 | tsi | ||
) |
SetTsi.
[in] | addr | BtdrvAddress |
[in] | tsi | Tsi: non-value-0xFF to Set, value 0xFF to Exit. See also BtmTsiMode. |
Result btdrvSetVisibility | ( | bool | inquiry_scan, |
bool | page_scan | ||
) |
SetVisibility.
[in] | inquiry_scan | Controls Inquiry Scan, whether the device can be discovered during Inquiry. |
[in] | page_scan | Controls Page Scan, whether the device accepts connections. |
Result btdrvSetZeroRetransmission | ( | BtdrvAddress | addr, |
u8 * | report_ids, | ||
u8 | count | ||
) |
SetZeroRetransmission.
[in] | addr | BtdrvAddress |
[in] | report_ids | Input buffer containing an array of u8s. |
[in] | count | Total u8s in the input buffer. This can be 0, the max is 5. |
Result btdrvStartAudioOut | ( | u32 | audio_handle, |
const BtdrvPcmParameter * | pcm_param, | ||
s64 | in_latency, | ||
s64 * | out_latency, | ||
u64 * | out1 | ||
) |
StartAudioOut.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
[in] | pcm_param | BtdrvPcmParameter |
[in] | in_latency | Input latency in nanoseconds. |
[out] | out_latency | Output latency in nanoseconds. |
[out] | out1 | Unknown output. |
Result btdrvStartBleScan | ( | void | ) |
StartBleScan.
StartInquiry [12.0.0+].
This starts Inquiry, the output data will be available via btdrvGetEventInfo.
[in] | services | Bitfield of allowed services. When -1 the original defaults from pre-12.0.0 are used. |
[in] | duration | Inquiry duration in nanoseconds. |
StopAudioOut.
[in] | audio_handle | Audio handle from btdrvOpenAudioOut. |
Result btdrvStopBleScan | ( | void | ) |
StopBleScan.
Result btdrvStopInquiry | ( | void | ) |
This stops Inquiry which was started by btdrvStartInquiry, if it's still active.
Result btdrvTriggerConnection | ( | BtdrvAddress | addr, |
u16 | unk | ||
) |
TriggerConnection.
[in] | addr | BtdrvAddress |
[in] | unk | [9.0.0+] Unknown |
Result btdrvUnregisterAllGattClients | ( | void | ) |
UnregisterAllGattClients.
UnregisterGattClient.
[in] | client_if | Client interface ID |
Result btdrvUnregisterGattDataPath | ( | const BtdrvGattAttributeUuid * | uuid | ) |
UnregisterGattDataPath.
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvUnregisterGattHidDataPath | ( | const BtdrvGattAttributeUuid * | uuid | ) |
UnregisterGattHidDataPath.
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvUnregisterGattManagedDataPath | ( | const BtdrvGattAttributeUuid * | uuid | ) |
UnregisterGattManagedDataPath.
[in] | uuid | BtdrvGattAttributeUuid |
Result btdrvUnregisterGattNotification | ( | u32 | connection_handle, |
bool | is_primary, | ||
const BtdrvGattId * | serv_id, | ||
const BtdrvGattId * | char_id | ||
) |
UnregisterGattNotification.
[in] | connection_handle | ConnectionHandle |
[in] | is_primary | Is a primary service or not |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
UnregisterGattServer.
[in] | server_if | Server interface ID |
Result btdrvWriteGattCharacteristic | ( | 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 | ||
) |
WriteGattCharacteristic.
[in] | connection_handle | ConnectionHandle |
[in] | is_primary | Is a primary service or not |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size, must be <=0x258. |
[in] | auth_req | BtdrvGattAuthReqType |
[in] | with_response | Whether to use Write-With-Response write type or not |
Result btdrvWriteGattDescriptor | ( | 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 | ||
) |
WriteGattDescriptor.
[in] | connection_handle | ConnectionHandle |
[in] | is_primary | Is a primary service or not |
[in] | serv_id | Service GATT ID BtdrvGattId |
[in] | char_id | Characteristic GATT ID BtdrvGattId |
[in] | desc_id | Descriptor GATT ID BtdrvGattId |
[in] | buffer | Input buffer. |
[in] | size | Input buffer size, must be <=0x258. |
[in] | auth_req | BtdrvGattAuthReqType |
Result btdrvWriteHidData | ( | BtdrvAddress | addr, |
const BtdrvHidReport * | buffer | ||
) |
This sends a HID DATA transaction packet with report-type Output.
[in] | addr | BtdrvAddress |
[in] | buffer | Input BtdrvHidReport, on pre-9.0.0 this is BtdrvHidData. |
Result btdrvWriteHidData2 | ( | BtdrvAddress | addr, |
const void * | buffer, | ||
size_t | size | ||
) |
WriteHidData2.
[in] | addr | BtdrvAddress |
[in] | buffer | Input buffer, same as the buffer for btdrvWriteHidData. |
[in] | size | Input buffer size. |